From e7d20cf352688bf717a01f4e6d9e6f497c2bea4c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Frings-F=C3=BCrst?= Date: Sat, 20 Sep 2025 19:19:34 +0200 Subject: New upstream version 5.3.1Beta2 --- app/wlib/gtklib/window.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'app/wlib/gtklib/window.c') diff --git a/app/wlib/gtklib/window.c b/app/wlib/gtklib/window.c index b8a3cdf..f5050ea 100644 --- a/app/wlib/gtklib/window.c +++ b/app/wlib/gtklib/window.c @@ -53,7 +53,7 @@ static int keyState; static wBool_t gtkBlockEnabled = TRUE; static wBool_t maximize_at_next_show = FALSE; -#include "../../bin/bitmaps/xtc.xpm" +#include "bitmaps/xtc.image1" static GdkPixbuf *windowIconPixbuf = NULL; /* @@ -305,7 +305,7 @@ void wWinSetSize( void wWinShow( wWin_p win, /* Window */ - wBool_t show) /* Command */ + unsigned show) /* Command */ { //GtkRequisition min_req, pref_req; @@ -318,7 +318,8 @@ void wWinShow( } int width, height; - + show &= ~(DONTGRABFOCUS); // flag is ignored on Linux + if (show) { keyState = 0; getPos(win); @@ -360,6 +361,7 @@ void wWinShow( gtk_window_present(GTK_WINDOW(win->gtkwin)); + gdk_window_raise(gtk_widget_get_window(win->gtkwin)); if (win->shown && win->modalLevel > 0) { @@ -1049,7 +1051,7 @@ static wWin_p wWinCommonCreate( } if ( windowIconPixbuf == NULL ) { - windowIconPixbuf = gdk_pixbuf_new_from_xpm_data((const char**)&xtc_xpm); + windowIconPixbuf = gdk_pixbuf_new_from_inline(-1, (unsigned char *)xtc_image1, FALSE, NULL); } gtk_window_set_icon( GTK_WINDOW(w->gtkwin), windowIconPixbuf ); -- cgit v1.2.3