[packagekit] [PATCH 2/2] gpk-update-viewer: change the application icon

Zhang Qiang qiang.z.zhang at intel.com
Tue Nov 16 22:15:02 PST 2010


GPK_ICON_SOFTWARE_INSTALLER should be replaced by
GPK_ICON_SOFTWARE_UPDATE in gpk-update-viewer
---
 src/gpk-update-viewer.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/gpk-update-viewer.c b/src/gpk-update-viewer.c
index 0bde267..32b261c 100644
--- a/src/gpk-update-viewer.c
+++ b/src/gpk-update-viewer.c
@@ -281,7 +281,7 @@ gpk_update_viewer_check_restart (GpkUpdateViewer *update_viewer)
 	if (show_button)
 		gtk_dialog_add_button (GTK_DIALOG (dialog), button, GTK_RESPONSE_OK);
 	gtk_message_dialog_format_secondary_text (GTK_MESSAGE_DIALOG(dialog), "%s", message);
-	gtk_window_set_icon_name (GTK_WINDOW(dialog), GPK_ICON_SOFTWARE_INSTALLER);
+	gtk_window_set_icon_name (GTK_WINDOW(dialog), GPK_ICON_SOFTWARE_UPDATE);
 
 	/* setup a callback so we autoclose */
 	g_object_set_data_full (G_OBJECT(dialog), "instance", g_object_ref (update_viewer), (GDestroyNotify) g_object_unref);
@@ -573,7 +573,7 @@ gpk_update_viewer_update_packages_cb (PkTask *task, GAsyncResult *res, GpkUpdate
 					 "%s", _("Updates installed"));
 	gtk_message_dialog_format_secondary_text (GTK_MESSAGE_DIALOG(dialog),
 						  "%s", message);
-	gtk_window_set_icon_name (GTK_WINDOW(dialog), GPK_ICON_SOFTWARE_INSTALLER);
+	gtk_window_set_icon_name (GTK_WINDOW(dialog), GPK_ICON_SOFTWARE_UPDATE);
 
 	/* setup a callback so we autoclose */
 	priv->auto_shutdown_id =
@@ -1425,7 +1425,7 @@ gpk_update_viewer_modal_error_with_timeout (GpkUpdateViewer *update_viewer, cons
 					 "%s", title);
 	gtk_message_dialog_format_secondary_text (GTK_MESSAGE_DIALOG(dialog),
 						  "%s", message);
-	gtk_window_set_icon_name (GTK_WINDOW(dialog), GPK_ICON_SOFTWARE_INSTALLER);
+	gtk_window_set_icon_name (GTK_WINDOW(dialog), GPK_ICON_SOFTWARE_UPDATE);
 
 	/* setup a callback so we autoclose */
 	priv->auto_shutdown_id =
@@ -3223,7 +3223,7 @@ gpk_update_viewer_init (GpkUpdateViewer *update_viewer)
 
 	main_window = GTK_WIDGET(gtk_builder_get_object (priv->builder, "dialog_updates"));
 	g_signal_connect (main_window, "delete_event", G_CALLBACK (gpk_update_viewer_button_delete_event_cb), update_viewer);
-	gtk_window_set_icon_name (GTK_WINDOW(main_window), GPK_ICON_SOFTWARE_INSTALLER);
+	gtk_window_set_icon_name (GTK_WINDOW(main_window), GPK_ICON_SOFTWARE_UPDATE);
 
 	/* create array stores */
 	priv->array_store_updates = gtk_tree_store_new (GPK_UPDATES_COLUMN_LAST, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_INT,
-- 
1.7.2.2




More information about the PackageKit mailing list