[uim-commit] r911 - trunk/helper
tkng at freedesktop.org
tkng at freedesktop.org
Mon Jun 27 02:26:21 PDT 2005
Author: tkng
Date: 2005-06-27 02:26:15 -0700 (Mon, 27 Jun 2005)
New Revision: 911
Modified:
trunk/helper/pref-gtk.c
Log:
* helper/pref-gtk.c:
-(create_pref_window): Added a support for window icon.
Modified: trunk/helper/pref-gtk.c
===================================================================
--- trunk/helper/pref-gtk.c 2005-06-27 09:24:12 UTC (rev 910)
+++ trunk/helper/pref-gtk.c 2005-06-27 09:26:15 UTC (rev 911)
@@ -439,9 +439,13 @@
{
GtkWidget *window;
GtkWidget *scrolled_win; /* treeview container */
+ GdkPixbuf *icon;
pref_window = window = gtk_window_new(GTK_WINDOW_TOPLEVEL);
+ icon = gdk_pixbuf_new_from_file(UIM_DATADIR "/pixmaps/uim-icon.png", NULL);
+ gtk_window_set_icon(GTK_WINDOW(pref_window), icon);
+
g_signal_connect(G_OBJECT (window), "delete_event",
G_CALLBACK (delete_event_cb), NULL);
More information about the uim-commit
mailing list