[uim-commit] r1103 - trunk/helper

tkng at freedesktop.org tkng at freedesktop.org
Wed Aug 3 00:32:29 EST 2005


Author: tkng
Date: 2005-08-02 07:32:26 -0700 (Tue, 02 Aug 2005)
New Revision: 1103

Modified:
   trunk/helper/im-switcher-gtk.c
Log:
* helper/im-switcher-gtk.c: Added a window icon.


Modified: trunk/helper/im-switcher-gtk.c
===================================================================
--- trunk/helper/im-switcher-gtk.c	2005-08-02 14:24:36 UTC (rev 1102)
+++ trunk/helper/im-switcher-gtk.c	2005-08-02 14:32:26 UTC (rev 1103)
@@ -316,11 +316,15 @@
   GtkWidget *setting_button_box;
   GtkWidget *button;
   GtkWidget *frame;
+  GdkPixbuf *icon;
 
   switcher_win = gtk_window_new(GTK_WINDOW_TOPLEVEL);
   gtk_window_set_title(GTK_WINDOW(switcher_win),
 		       _("uim input method switcher"));
 
+  icon = gdk_pixbuf_new_from_file(UIM_PIXMAPSDIR"/uim-icon.png", NULL);
+  gtk_window_set_icon(GTK_WINDOW(switcher_win), icon);
+
   g_signal_connect(G_OBJECT(switcher_win), "destroy",
 		   G_CALLBACK(gtk_main_quit), NULL);
 



More information about the uim-commit mailing list