Hi,
I need to know the height of a GtkLabel, I have used
label->allocation.height but it returns always '1', I also tried
puting the label into a EventBox and then using eb->allocation.height,
but it also not work. Using "size requisition" I get '0'.
Is there another way to get the label's height
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
On Wed, Aug 16, 2006 at 06:02:27AM +0100, jan wrote:
> Progss wrote:
> > [EMAIL PROTECTED] napisa?(a):
> >> Is there a function that allows one to search for a widget using its
> >> name or label? I'm using Glade 2 to design a window (just a basic
> >>
Progss wrote:
> [EMAIL PROTECTED] napisa?(a):
>> Is there a function that allows one to search for a widget using its
>> name or label? I'm using Glade 2 to design a window (just a basic
>> input form), and each widget has a unique name. Unfortunately Glade
>> doean't save any global pointers to th
OK,
Your pointer code is all screwed up :-) g_strdup already allocates
memory so you don't need to do g_malloc before it, just
g_strdup_printf right into your variable. Also, your getting a
segfault because you're dereferencing the pointer where the pointer
itself is expected (when setting GtkEntr
Hello, guys!
Sorry, I know i´m crossing the borders of off-topic. But I had to tell
you that I could get rid of SEGFAULTs by using a GPtrArray* as member of
my structure. As said before, this struct member shall hold one or more
strings. (John, I have tried using a GList as this member,
GLib 2.12.2 is now available for download at:
ftp://ftp.gtk.org/pub/glib/2.12/
http://download.gnome.org/sources/glib/2.12/
glib-2.12.2.tar.bz2 md5sum: 45471ca86af288b7a48116ab2b498d0c
glib-2.12.2.tar.gzmd5sum: fe0ca5a41f40443eb80c3e7fe8a36836
GLib is the low-level core library that form
On Wed, 26 Jul 2006 06:41:38 +0200, Richard Boaz <[EMAIL PROTECTED]> wrote:
> gtk_widget_queue_draw_area(DrawingArea, 0, 0,
> DrawingArea->allocation.width, DrawingArea->allocation.height);
> while (gtk_events_pending())
> gtk_main_iteration();
> } // end while
What is the while loop fo
[EMAIL PROTECTED] napisa?(a):
> Is there a function that allows one to search for a widget using its name or
> label? I'm using Glade 2 to design a window (just a basic input form), and
> each widget has a unique name. Unfortunately Glade doean't save any global
> pointers to the widgets; I can
Is there a function that allows one to search for a widget using its name or
label? I'm using Glade 2 to design a window (just a basic input form), and each
widget has a unique name. Unfortunately Glade doean't save any global pointers
to the widgets; I can only assume that there must be another