diff options
author | Matthias Clasen <mclasen@fedoraproject.org> | 2010-01-17 23:40:43 +0000 |
---|---|---|
committer | Matthias Clasen <mclasen@fedoraproject.org> | 2010-01-17 23:40:43 +0000 |
commit | 89bad3c54e40962a01b366c5658054f2d541c16d (patch) | |
tree | b755351c06ce545e8c332329114a37fb152106b0 /launcher-desktop-files.patch | |
parent | 0a91edfa8bea352d84a847cf9ad7294cf3b24da1 (diff) | |
download | gnome-panel-89bad3c54e40962a01b366c5658054f2d541c16d.tar.gz gnome-panel-89bad3c54e40962a01b366c5658054f2d541c16d.tar.xz gnome-panel-89bad3c54e40962a01b366c5658054f2d541c16d.zip |
2.29.5.1
Diffstat (limited to 'launcher-desktop-files.patch')
-rw-r--r-- | launcher-desktop-files.patch | 78 |
1 files changed, 39 insertions, 39 deletions
diff --git a/launcher-desktop-files.patch b/launcher-desktop-files.patch index 27b09fb..c0287b1 100644 --- a/launcher-desktop-files.patch +++ b/launcher-desktop-files.patch @@ -1,59 +1,59 @@ -diff -up gnome-panel-2.19.92/gnome-panel/panel-ditem-editor.c.launcher-desktop-files gnome-panel-2.19.92/gnome-panel/panel-ditem-editor.c ---- gnome-panel-2.19.92/gnome-panel/panel-ditem-editor.c.launcher-desktop-files 2007-09-04 13:34:26.000000000 -0400 -+++ gnome-panel-2.19.92/gnome-panel/panel-ditem-editor.c 2007-09-13 12:13:36.000000000 -0400 -@@ -973,6 +973,51 @@ panel_ditem_editor_icon_changed (PanelDI - g_free (file); +diff -up gnome-panel-2.29.5.1/gnome-panel/panel-ditem-editor.c.launcher-desktop-files gnome-panel-2.29.5.1/gnome-panel/panel-ditem-editor.c +--- gnome-panel-2.29.5.1/gnome-panel/panel-ditem-editor.c.launcher-desktop-files 2010-01-13 22:26:27.000000000 -0500 ++++ gnome-panel-2.29.5.1/gnome-panel/panel-ditem-editor.c 2010-01-17 18:05:34.492279538 -0500 +@@ -960,6 +960,51 @@ panel_ditem_editor_icon_changed (PanelDI + icon); } +static gboolean +update_editor_from_desktop_file (PanelDItemEditor *dialog, -+ const gchar *uri) ++ const gchar *uri) +{ -+ GKeyFile *key_file; -+ char *name; -+ char *comment; -+ char *exec; -+ char *icon; -+ gboolean retval = FALSE; ++ GKeyFile *key_file; ++ char *name; ++ char *comment; ++ char *exec; ++ char *icon; ++ gboolean retval = FALSE; + -+ key_file = g_key_file_new (); -+ if (g_key_file_load_from_file (key_file, uri, 0, NULL)) { -+ 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); ++ key_file = g_key_file_new (); ++ if (g_key_file_load_from_file (key_file, uri, 0, NULL)) { ++ 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_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"); ++ 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 : ""); -+ gtk_entry_set_text (GTK_ENTRY (dialog->priv->command_entry), exec ? 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 : ""); ++ gtk_entry_set_text (GTK_ENTRY (dialog->priv->command_entry), exec ? exec : ""); + -+ /* Note: we need to set the icon last, since the editor -+ * tries to guess the icon when the command is modified -+ */ -+ setup_icon_entry (dialog, icon); ++ /* Note: we need to set the icon last, since the editor ++ * tries to guess the icon when the command is modified ++ */ ++ setup_icon_entry (dialog, icon); + -+ g_free (name); -+ g_free (comment); -+ g_free (icon); -+ g_free (exec); ++ g_free (name); ++ g_free (comment); ++ g_free (icon); ++ g_free (exec); + -+ retval = TRUE; -+ } ++ retval = TRUE; ++ } + -+ g_key_file_free (key_file); ++ g_key_file_free (key_file); + -+ return retval; ++ return retval; +} + static void command_browse_chooser_response (GtkFileChooser *chooser, gint response_id, -@@ -986,7 +1031,11 @@ command_browse_chooser_response (GtkFile +@@ -973,7 +1018,11 @@ command_browse_chooser_response (GtkFile case PANEL_DITEM_EDITOR_TYPE_APPLICATION: case PANEL_DITEM_EDITOR_TYPE_TERMINAL_APPLICATION: text = gtk_file_chooser_get_filename (GTK_FILE_CHOOSER (chooser)); @@ -66,7 +66,7 @@ diff -up gnome-panel-2.19.92/gnome-panel/panel-ditem-editor.c.launcher-desktop-f g_free (text); break; case PANEL_DITEM_EDITOR_TYPE_LINK: -@@ -996,8 +1045,9 @@ command_browse_chooser_response (GtkFile +@@ -983,8 +1032,9 @@ command_browse_chooser_response (GtkFile g_assert_not_reached (); } |