Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=fw-control-center.git;a=commitdiff;h=d9053f713d91035b62e159ce76fd0454b93c670c

commit d9053f713d91035b62e159ce76fd0454b93c670c
Author: Priyank <priy...@frugalware.org>
Date:   Sun Feb 1 00:15:51 2009 +0530

set application icon

diff --git a/gnetconfig/src/gnetconfig-interface.c 
b/gnetconfig/src/gnetconfig-interface.c
index 2d650ef..00b2d51 100644
--- a/gnetconfig/src/gnetconfig-interface.c
+++ b/gnetconfig/src/gnetconfig-interface.c
@@ -162,6 +162,14 @@ gnetconfig_interface_init (void)
gn_interface_dialog = glade_xml_get_widget (xml, "interface_edit_dialog");
gn_interface_treeview = glade_xml_get_widget (xml, "interface_treeview");

+       /* set application icon */
+       GdkPixbuf *icon = gtk_widget_render_icon (gn_main_window,
+                                               GTK_STOCK_NETWORK,
+                                               GTK_ICON_SIZE_SMALL_TOOLBAR,
+                                               NULL);
+       gtk_window_set_icon (GTK_WINDOW(gn_main_window), icon);
+       g_object_unref (icon);
+
/* Set the title for some stuff */
gtk_window_set_title (GTK_WINDOW(gn_main_window), PACKAGE_STRING);
gtk_window_set_title (GTK_WINDOW(gn_interface_dialog), _("Configure 
interface"));
_______________________________________________
Frugalware-git mailing list
Frugalware-git@frugalware.org
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to