Merge branch 'appinfo-shellany' into 'master'

GWin32AppInfo: Support verbs other than "open"

See merge request GNOME/glib!1502
This commit is contained in:
Philip Withnall 2020-10-01 16:37:36 +00:00
commit 37d04c2f6b
3 changed files with 1962 additions and 2099 deletions

File diff suppressed because it is too large Load Diff

View File

@ -946,7 +946,7 @@ g_win32_registry_subkey_iter_next (GWin32RegistrySubkeyIter *iter,
**/
gboolean
g_win32_registry_subkey_iter_get_name_w (GWin32RegistrySubkeyIter *iter,
gunichar2 **subkey_name,
const gunichar2 **subkey_name,
gsize *subkey_name_len,
GError **error)
{
@ -988,7 +988,7 @@ g_win32_registry_subkey_iter_get_name_w (GWin32RegistrySubkeyIter *iter,
**/
gboolean
g_win32_registry_subkey_iter_get_name (GWin32RegistrySubkeyIter *iter,
gchar **subkey_name,
const gchar **subkey_name,
gsize *subkey_name_len,
GError **error)
{
@ -1013,13 +1013,15 @@ g_win32_registry_subkey_iter_get_name (GWin32RegistrySubkeyIter *iter,
&subkey_name_len_glong,
error);
if (iter->subkey_name_u8 != NULL)
{
*subkey_name_len = subkey_name_len_glong;
return TRUE;
}
if (iter->subkey_name_u8 == NULL)
return FALSE;
*subkey_name = iter->subkey_name_u8;
if (subkey_name_len)
*subkey_name_len = subkey_name_len_glong;
return TRUE;
}
/**

View File

@ -191,12 +191,12 @@ gboolean g_win32_registry_subkey_iter_next (GWin32RegistrySubk
GError **error);
GLIB_AVAILABLE_IN_2_46
gboolean g_win32_registry_subkey_iter_get_name (GWin32RegistrySubkeyIter *iter,
gchar **subkey_name,
const gchar **subkey_name,
gsize *subkey_name_len,
GError **error);
GLIB_AVAILABLE_IN_2_46
gboolean g_win32_registry_subkey_iter_get_name_w (GWin32RegistrySubkeyIter *iter,
gunichar2 **subkey_name,
const gunichar2 **subkey_name,
gsize *subkey_name_len,
GError **error);