diff options
| author | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2025-09-20 19:20:03 +0200 |
|---|---|---|
| committer | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2025-09-20 19:20:03 +0200 |
| commit | b45d74b60dfb7e23911df6b0523890e42f711267 (patch) | |
| tree | 42bb5764b05bd3bc5bffadb55f4375e6dce8a521 /app/wlib/gtklib/window.c | |
| parent | 6c1a798b0302034a7fdcaf93b8f014e2e458c2a0 (diff) | |
| parent | 63ec5715054be18ac4db5675e067b41c955d03b9 (diff) | |
Merge branch 'feature/upstream' into develop
Diffstat (limited to 'app/wlib/gtklib/window.c')
| -rw-r--r-- | app/wlib/gtklib/window.c | 10 |
1 files changed, 6 insertions, 4 deletions
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 ); |
