From e76738f9622c1351364548c8326aa82190b17fd3 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20Dj=C3=A4rv?= Date: Tue, 16 Aug 2005 19:34:00 +0000 Subject: [PATCH] * xterm.c (x_wm_set_icon_pixmap): Move GTK specific code to xg_set_frame_icon and call it. --- src/xterm.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/xterm.c b/src/xterm.c index 84b1dae3515..9fd511934a6 100644 --- a/src/xterm.c +++ b/src/xterm.c @@ -9253,12 +9253,7 @@ x_wm_set_icon_pixmap (f, pixmap_id) #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; } -- 2.39.2