changeset 65007:eac979ad3f3b

* xterm.c (x_wm_set_icon_pixmap): Move GTK specific code to xg_set_frame_icon and call it.
author Jan Djärv <jan.h.d@swipnet.se>
date Tue, 16 Aug 2005 19:34:00 +0000
parents ec2fa2e1d4ea
children 71ca23f1fa23
files src/xterm.c
diffstat 1 files changed, 1 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/src/xterm.c	Tue Aug 16 19:33:40 2005 +0000
+++ b/src/xterm.c	Tue Aug 16 19:34:00 2005 +0000
@@ -9253,12 +9253,7 @@
 
 #ifdef USE_GTK
   {
-    GdkDisplay *gdpy = gdk_x11_lookup_xdisplay (FRAME_X_DISPLAY (f));
-    GdkPixmap *gpix = gdk_pixmap_foreign_new_for_display (gdpy, icon_pixmap);
-    GdkPixmap *gmask = gdk_pixmap_foreign_new_for_display (gdpy, icon_mask);
-    GdkPixbuf *gp = xg_get_pixbuf_from_pix_and_mask (gpix, gmask, NULL);
-
-    gtk_window_set_icon (GTK_WINDOW (FRAME_GTK_OUTER_WIDGET (f)), gp);
+    xg_set_frame_icon (f, icon_pixmap, icon_mask);
     return;
   }