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 implemen

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 m

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 bu

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, bu

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"

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.

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: 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 handle

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() func

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

2007-07-17 Thread Jonathan Cooper
I need to remove the close button from a window, but (due to requirements beyond my control) I must use code that is compatible with libraries available in Fedora Core 5. So, I cannot use set_deletable() or gtk_window_set_deletable(). Does anyone know how to do this? I am using a class that

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

2005-08-20 Thread Gian Mario Tagliaretti
2005/8/20, David Necas (Yeti) <[EMAIL PROTECTED]>: > On Sat, Aug 20, 2005 at 03:43:19PM +0530, sadhees kumar wrote: > To conclude, this is not under app developer control nor > anything you should really care of. furthermore doing it you will create HIG (accessibility) problems. cheers -- Gia

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

2005-08-20 Thread David Necas (Yeti)
On Sat, Aug 20, 2005 at 03:43:19PM +0530, sadhees kumar wrote: > > There is one more big problem that im facing in my > gtk+ .I have created a mainwindow & many popup windows.The problem is > that i dont want the " X " (close) button & " \/ &

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

2005-08-20 Thread sadhees kumar
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,

Re: how to hide close button in gtk dialog

2005-08-09 Thread Calum Benson
nfuses people. The HIG would love to say that alert and dialog titlebars shouldn't have a Close button unless the dialog is instant apply. The only reason it doesn't say that is because it's not technically possible to hide the Close button in metacity, AFAIK. Cheeri, Calum

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 co

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 activ

Re: how to hide close button in gtk dialog

2005-08-07 Thread Yogesh M
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. --- The Saltydog <[EMAIL PROTECTED]> wrote: > On 8/7/05,

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://develop

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

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&quo

Re: how to hide close button in gtk dialog

2005-08-07 Thread The Saltydog
On 8/7/05, Yogesh M <[EMAIL PROTECTED]> wrote: > > how to hide close button in gtk dialog? > What do you mean by "hide"? If you don't want the close button, just don't create it, if you need to set it to "grey" (unsensitive), y

how to hide close button in gtk dialog

2005-08-07 Thread Yogesh M
how to hide close button in gtk dialog? __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ___ gtk-app-devel-list mailing list gtk-app-devel-list