LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File launcher-theme-icon.diff of Package gnome-panel-nld (Project home:winddss:gnome-panel-nld)

--- gnome-panel/launcher.c
+++ gnome-panel/launcher.c
@@ -802,6 +802,12 @@
         GtkWidget *help;
         GtkWidget *close;
         GtkWidget *revert;
+	char *icon = NULL;
+	char *themeicon = NULL;
+	GnomeIconTheme *panel_icon_theme = NULL;
+	panel_icon_theme = gnome_icon_theme_new ();
+	gnome_icon_theme_set_allow_svg (panel_icon_theme, TRUE);
+
 
 	dialog = gtk_dialog_new ();
 
@@ -823,6 +829,11 @@
 
 	launcher->dedit = gnome_ditem_edit_new ();
 	gtk_container_set_border_width (GTK_CONTAINER (launcher->dedit), 5);
+
+	icon = gnome_desktop_item_get_string (launcher->ditem, GNOME_DESKTOP_ITEM_ICON);
+	themeicon = gnome_desktop_item_find_icon (panel_icon_theme, icon, 48, 0);
+	gnome_desktop_item_set_string (launcher->ditem, GNOME_DESKTOP_ITEM_ICON, themeicon);
+
 	gtk_box_pack_start (GTK_BOX (GTK_DIALOG (dialog)->vbox),
 			    launcher->dedit, TRUE, TRUE, 0);