Re: Close button in GtkNotebook

2017-05-29 Thread Augusto Fraga Giachero
Hi Eric, I was doing something similar with what you have proposed, it works but the end result differs from what I've observed on other gnome applications (Nautilus, Gedit etc...). I want my application to be as consistent and theme agnostic as possible. But the central idea of your

Re: Close button in GtkNotebook

2017-05-29 Thread Stefan Salewski
On Sun, 2017-05-28 at 16:08 -0300, Augusto Fraga Giachero wrote: > I've been playing with Glade and GtkNotebook for while, and I > couldn't > figure a way to enable the close button on the tabs I guess what you want is what gedit does with the tabs? The gedit code has been modified a

Re: Close button in GtkNotebook

2017-05-28 Thread Eric Cashon via gtk-app-devel-list
Hi Augusto, This doesn't use glade but it might help out. You can add a label and button to a box and add it to the notebook tab. In the button "clicked" callback you can us the notebook pointer if you need that variable. If you want to be able to really customize the look and size of the

Close button in GtkNotebook

2017-05-28 Thread Augusto Fraga Giachero
Hi, I've been playing with Glade and GtkNotebook for while, and I couldn't figure a way to enable the close button on the tabs like this: With I've read online it seems that I need to add a GtkBox to the tab title area and add the label and a standard GtkButton to the right, but the GtkButton

close button

2015-10-08 Thread rastersoft
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 Hi all: I want to fix the problem in GTK, that doesn't show the "close" button when it is put at the left side and the left panel is visible. But to do so in a consisten way I need a way of painting a standard "close"

Re: close button

2015-10-08 Thread Marcus Karlsson
On Thu, Oct 08, 2015 at 10:54:01PM +0200, rastersoft wrote: > Hi all: > > I want to fix the problem in GTK, that doesn't show the "close" button > when it is put at the left side and the left panel is visible. I'm affraid it's not clear what you mean here. What do

Re: close button

2015-10-08 Thread rastersoft
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 Hi: Thanks! El 08/10/15 a las 23:46, Marcus Karlsson escribió: > On Thu, Oct 08, 2015 at 10:54:01PM +0200, rastersoft wrote: >> Hi all: >> >> I want to fix the problem in GTK, that doesn't show the "close" butto

Re: How do I remove the close button from a window in Fedora Core 5?

2007-07-17 Thread Michael Ekstrand
On Tue, Jul 17, 2007 at 08:44:40AM -0700, Jonathan Cooper wrote: I am not sure why, but the GTK_WIDGET (window)-window is false (which I suspect means I am actually getting a NULL value for g_type_instance_cast() which is used by the GTK_WIDGET macro). Since the Gtk::Window::gobj() function

RE: How do I remove the close button from a window in Fedora Core5?

2007-07-17 Thread Jonathan Cooper
Thank you very much, Michael! That did the trick. It was rather simple, I just didn't expect that the window wasn't realized since this same code worked fine on FC6. I just had to connect to signal_realize...and then put the code to remove the close button into the signal handler. Thanks

How to remove close button x from title bar of the window

2005-08-20 Thread sadhees kumar
a mainwindow many popup windows.The problem is that i dont want the X (close) button \/ (options)button in the right and left of the window bar at the top, but i want the name bar of that window. Is there any possibilities for the above concern, if so please let me know

Re: how to hide close button in gtk dialog

2005-08-09 Thread Gus Koppel
Yogesh M wrote: found it, sometimes it is neccessary to avoid confusion. for example in a dialog i have a cancel button, now if the window show a close button, it is a confusion that whether the window closes or the cancel activates or both. It's common convention that title bar close

Re: how to hide close button in gtk dialog

2005-08-08 Thread The Saltydog
On 8/8/05, Yogesh M [EMAIL PROTECTED] wrote: found it, sometimes it is neccessary to avoid confusion. for example in a dialog i have a cancel button, now if the window show a close button, it is a confusion that whether the window closes or the cancel activates or both. You can work

Re: how to hide close button in gtk dialog

2005-08-07 Thread Yogesh M
when i create a new dialog, it comes with close button, i am talking about the button in the title bar. how to disable/remove it The Saltydog [EMAIL PROTECTED] wrote:On 8/7/05, Yogesh M wrote: how to hide close button in gtk dialog? What do you mean by hide? If you don't want the close

Re: how to hide close button in gtk dialog

2005-08-07 Thread Luca Cavalli
On Sun, 2005-08-07 at 08:27 -0700, Yogesh M wrote: how to hide close button in gtk dialog? I think you should use: http://developer.gnome.org/doc/API/2.0/gdk/gdk-Windows.html#gdk-window-set-functions but it seems that few WMs honour it. Luca

Re: how to hide close button in gtk dialog

2005-08-07 Thread The Saltydog
On 8/7/05, Yogesh M [EMAIL PROTECTED] wrote: when i create a new dialog, it comes with close button, i am talking about the button in the title bar. how to disable/remove it You should NEVER play with this. It is against Gnome Human Interface Guidelines: http://developer.gnome.org/projects