[gnome-panel] panel: Always keep the same window icon for run dialog



commit f83c844e307ecae1d0ee83ff147e84a37c38316a
Author: Vincent Untz <vuntz gnome org>
Date:   Fri Jul 22 11:53:13 2011 +0200

    panel: Always keep the same window icon for run dialog
    
    We used to change the icon, depending on the app that was selected, but
    this actually doesn't make sense; it's just confusing when people look
    at the window list.

 gnome-panel/panel-run-dialog.c |    8 +++-----
 1 files changed, 3 insertions(+), 5 deletions(-)
---
diff --git a/gnome-panel/panel-run-dialog.c b/gnome-panel/panel-run-dialog.c
index c2dcc3e..5601efb 100644
--- a/gnome-panel/panel-run-dialog.c
+++ b/gnome-panel/panel-run-dialog.c
@@ -243,9 +243,6 @@ panel_run_dialog_set_default_icon (PanelRunDialog *dialog, gboolean set_drag)
 				      PANEL_ICON_RUN,
 				      GTK_ICON_SIZE_DIALOG);
 	
-	gtk_window_set_icon_name (GTK_WINDOW (dialog->run_dialog),
-				  PANEL_ICON_RUN);
-
 	if (set_drag)
 		gtk_drag_source_set_icon_name (dialog->run_dialog,
 					       PANEL_ICON_LAUNCHER);
@@ -268,7 +265,6 @@ panel_run_dialog_set_icon (PanelRunDialog *dialog,
 		dialog->gicon = g_object_ref (gicon);
 		gtk_image_set_from_gicon (GTK_IMAGE (dialog->pixmap),
 					  gicon, GTK_ICON_SIZE_DIALOG);
-		//gtk_window_set_icon (GTK_WINDOW (dialog->run_dialog), gicon);
 		gtk_drag_source_set_icon_gicon (dialog->run_dialog, gicon);
 	} else {
 		panel_run_dialog_set_default_icon (dialog, TRUE);
@@ -1834,7 +1830,9 @@ panel_run_dialog_new (GdkScreen  *screen,
 	panel_run_dialog_setup_program_list  (dialog, gui);
 	panel_run_dialog_setup_list_expander (dialog, gui);
 
-	panel_run_dialog_set_default_icon    (dialog, FALSE);
+	gtk_window_set_icon_name (GTK_WINDOW (dialog->run_dialog),
+				  PANEL_ICON_RUN);
+	panel_run_dialog_set_default_icon (dialog, FALSE);
 
 	g_signal_connect (dialog->run_settings, "changed::"PANEL_RUN_ENABLE_LIST_KEY,
 			  G_CALLBACK (panel_run_dialog_update_program_list), dialog);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]