Re: Remove Minimize Button from GTK Window?

2013-07-01 Thread Mitchell Verter
Thanks so much for the advice, but it wound up not working. In gtkwindow.c::gtk_window_realize, I inserterted the following line: gdk_window_set_functions (widget-window, GDK_FUNC_ALL | GDK_FUNC_MINIMIZE); -- This effectively removed the minimize button from window on my

Re: Remove Minimize Button from GTK Window?

2013-07-01 Thread richard boaz
hi, i'm afraid that instructions to the WM are regarded as advice and that the WM has no responsibility in actually honoring the request. it can work one place, and not the other, sorry. richard On Mon, Jul 1, 2013 at 3:52 PM, Mitchell Verter mitchell.ver...@gmail.comwrote: Thanks so much

Re: Remove Minimize Button from GTK Window?

2013-07-01 Thread Jasper St. Pierre
Looking through the Compiz code, Compiz *should* be respecting the hints. It takes the hint that GTK+ has and removes the action: http://git.compiz.org/compiz/core/tree/src/window.cpp#n667 This is then set to the _NET_WM_ALLOWED_ACTIONS property on the window, which the decorator (which I

Re: Remove Minimize Button from GTK Window?

2013-07-01 Thread Mitchell Verter
Thanks for the feedback. The production code has been pushed out already and the production machine is no longer available, but I will see if I can reconstruct the problem on a new machine. Thanks again, Mitchell On Mon, Jul 1, 2013 at 5:09 PM, Jasper St. Pierre jstpie...@mecheye.net Looking

Remove Minimize Button from GTK Window?

2013-06-21 Thread Mitchell Verter
Is there any way to remove the Minimize button by hacking the gtk+-2.24.18 code, or at least to prevent it from minimizing? I have been fiddling around with gtkwindow.c and gtkwindow-decorate.c, playing with gtk_window_iconify() and GtkWindow:decorated (Whether the window should be decorated by

Re: Remove Minimize Button from GTK Window?

2013-06-21 Thread Jasper St. Pierre
If you have a GdkWindow, you can tell the window manager to disable the minimize button with MWM hints using gdk_window_set_functions along with GDK_FUNC_MINIMIZE. On Fri, Jun 21, 2013 at 3:52 PM, Mitchell Verter mitchell.ver...@gmail.comwrote: Is there any way to remove the Minimize button by