diff --git a/desktop-file-monitoring.patch b/desktop-file-monitoring.patch index 7048299..14a5ea3 100644 --- a/desktop-file-monitoring.patch +++ b/desktop-file-monitoring.patch @@ -135,7 +135,7 @@ diff -up gnome-panel-2.21.91/gnome-panel/launcher.c.desktop-file-monitoring gnom + if (entry) { + key_file = g_key_file_new (); + if (!g_key_file_load_from_file (key_file, entry, 0, NULL) || -+ !panel_util_key_file_get_boolean (key_file, "X-Panel-Monitor", FALSE)) ++ !panel_key_file_get_boolean (key_file, "X-Panel-Monitor", FALSE)) + entry = NULL; + g_key_file_free (key_file); + } diff --git a/launcher-desktop-files.patch b/launcher-desktop-files.patch index f42379d..27b09fb 100644 --- a/launcher-desktop-files.patch +++ b/launcher-desktop-files.patch @@ -18,15 +18,15 @@ diff -up gnome-panel-2.19.92/gnome-panel/panel-ditem-editor.c.launcher-desktop-f + + key_file = g_key_file_new (); + if (g_key_file_load_from_file (key_file, uri, 0, NULL)) { -+ if (panel_util_key_file_get_boolean (key_file, "Terminal", FALSE)) ++ if (panel_key_file_get_boolean (key_file, "Terminal", FALSE)) + gtk_combo_box_set_active (GTK_COMBO_BOX (dialog->priv->type_combo), 1); + else + gtk_combo_box_set_active (GTK_COMBO_BOX (dialog->priv->type_combo), 0); + -+ name = panel_util_key_file_get_locale_string (key_file, "Name"); -+ comment = panel_util_key_file_get_locale_string (key_file, "Comment"); -+ icon = panel_util_key_file_get_locale_string (key_file, "Icon"); -+ exec = panel_util_key_file_get_string (key_file, "Exec"); ++ name = panel_key_file_get_locale_string (key_file, "Name"); ++ comment = panel_key_file_get_locale_string (key_file, "Comment"); ++ icon = panel_key_file_get_locale_string (key_file, "Icon"); ++ exec = panel_key_file_get_string (key_file, "Exec"); + + gtk_entry_set_text (GTK_ENTRY (dialog->priv->name_entry), name ? name : ""); + gtk_entry_set_text (GTK_ENTRY (dialog->priv->comment_entry), comment ? comment : ""); diff --git a/preferred-apps.patch b/preferred-apps.patch index 89357af..74f51ae 100644 --- a/preferred-apps.patch +++ b/preferred-apps.patch @@ -99,9 +99,9 @@ diff -up gnome-panel-2.21.91/gnome-panel/launcher.c.preferred-apps gnome-panel-2 + + location = find_desktop_file_from_exec (exec); + key_file = g_key_file_new (); -+ if (!panel_util_key_file_load_from_uri (key_file, location, -+ G_KEY_FILE_KEEP_COMMENTS|G_KEY_FILE_KEEP_TRANSLATIONS, -+ NULL)) { ++ if (!panel_key_file_load_from_uri (key_file, location, ++ G_KEY_FILE_KEEP_COMMENTS|G_KEY_FILE_KEEP_TRANSLATIONS, ++ NULL)) { + /* FIXME would be much better if preferred apps were backed by desktop files */ + g_key_file_set_string (key_file, "Desktop Entry", "Version", "1.0"); + g_key_file_set_string (key_file, "Desktop Entry", "Encoding", "UTF-8");