RE: gtk-list Digest, Vol 6, Issue 4

2004-10-05 Thread Vlietstra, Joe (NSSD)
-Original Message- Date: Sun, 3 Oct 2004 14:28:38 -0700 From: Hudson T. Clark [EMAIL PROTECTED] Subject: Big problem now Michael Torrie _0 To: [EMAIL PROTECTED] Message-ID: [EMAIL PROTECTED] Content-Type: text/plain; charset=windows-1252 Ok well I picked the advice that resulted

Re: gtk_widget_queue_resize() forgetting allocation

2004-10-05 Thread Tim Janik
On Mon, 27 Sep 2004, Owen Taylor wrote: I'm not *completely* sure this should be considered a GTK+ bug, since what you are doing is fairly marginal. But there is a fairly easy fix, which would be, in gtk_widget_size_allocate(), do: alloc_needed = GTK_WIDGET_ALLOC_NEEDED (widget); -

Re: gtk_widget_queue_resize() forgetting allocation

2004-10-05 Thread Owen Taylor
On Tue, 2004-10-05 at 17:54 +0200, Tim Janik wrote: widget calls queue_resize from size_allocate, which causes queue_resize(sibling) (due to the GtkSizeGroup): REQUEST_NEEDED ALLOC_NEEDED ancestry * * widget* * sibling

Re: gtk_widget_queue_resize() forgetting allocation

2004-10-05 Thread Tim Janik
On Tue, 5 Oct 2004, Owen Taylor wrote: The way I'd think of this is that calling gtk_widget_size_request() sets the REQUEST_NEEDED flag, and we have a set of invariants: 1) If REQUEST_NEEDED is set on a widget, REQUEST_NEEDED is set on all parents up to the resize container 2) If REQUEST_NEEDED

Re: gtk_widget_queue_resize() forgetting allocation

2004-10-05 Thread Owen Taylor
On Tue, 2004-10-05 at 21:10 +0200, Tim Janik wrote: On Tue, 5 Oct 2004, Owen Taylor wrote: The way I'd think of this is that calling gtk_widget_size_request() sets the REQUEST_NEEDED flag, and we have a set of invariants: 1) If REQUEST_NEEDED is set on a widget, REQUEST_NEEDED is set on

xpm from char string

2004-10-05 Thread greg wolski
In the toolbar section of the tutorial, there is this xpm gtk cube image declared as a string like that: static char * gtk_xpm[] I don't understand how that works. But actually my question is how to use it in the example. I tried to use method gtk_image_new_from_pixmap(), but how do I put this

Re: Accelerators don't work

2004-10-05 Thread Pramod Patangay
Thanks for the reply. I solved this problem by connecting the widget's can-activate-accel signal to a callback which will always return true. This solved the problem but now I am facing a new one. Some of the accelerators don't work even if the menubar is visible. But the shortcuts are shown as

Changing the shortcut names for menu items

2004-10-05 Thread Pramod Patangay
Hi, I have menu item to which I have added an accelerator. GTK automatically displays the shortcut as part of the text beside the menu item name. Is there any way I can change the shortcut string? Say for e.g., I add ctrl + as the shortcut, the displayed string is ctrl++ but I want it to be say