Forcing size_allocate?
I have a gnome_canvas packed into a vbox. The drawing inside the canvas is handled during a size_allocate event because I need to know the width/height before I draw. This works well when I resize, however upon startup, the drawing is blank until I manually do a resize. How do I force a size_allocate event to get the initial graphics drawn? Thanks Jason ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: Gtk2.1.0 with X11 problem
[EMAIL PROTECTED] (Paulo J. Matos) writes: I downloaded sources from gnome of Gtk2.1.0 and I was installing it. I installed atk, glib, pango and while making gtk2.1.0 I got: gcc -g -O2 -g -Wall -Wl,--export-dynamic -o .libs/gtk-query-immodules-2.0 queryimmodules.o -Wl,--export-dynamic -L/usr/local/lib ./.libs/libgtk-x11-2.0.so /home/pdestroy/gnome2.1.0/gtk+-2.1.0/gdk/.libs/libgdk-x11-2.0.so -L/usr/X11/lib /usr/local/lib/libatk-1.0.so ../gdk-pixbuf/.libs/libgdk_pixbuf-2.0.so ../gdk/.libs/libgdk-x11-2.0.so /home/pdestroy/gnome2.1.0/gtk+-2.1.0/gdk-pixbuf/.libs/libgdk_pixbuf-2.0.so -lXinerama -lXft -lXrender -lXext -lX11 /usr/local/lib/libfreetype.so /usr/local/lib/libpangoxft-1.0.so /usr/local/lib/libpangox-1.0.so /usr/local/lib/libpango-1.0.so /usr/local/lib/libgobject-2.0.so /usr/local/lib/libgmodule-2.0.so -ldl /usr/local/lib/libglib-2.0.so -lm -Wl,--rpath -Wl,/usr/local/lib /home/pdestroy/gnome2.1.0/gtk+-2.1.0/gdk/.libs/libgdk-x11-2.0.so: undefined reference to `XftDrawPicture' collect2: ld returned 1 exit status make[3]: *** [gtk-query-immodules-2.0] Error 1 make[3]: Leaving directory `/home/pdestroy/gnome2.1.0/gtk+-2.1.0/gtk' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/home/pdestroy/gnome2.1.0/gtk+-2.1.0/gtk' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/pdestroy/gnome2.1.0/gtk+-2.1.0' make: *** [all-recursive-am] Error 2 Any ideas of what this might be about? GTK+-2.1.0 isn't compatible with Xft1. One solution is to install fontconfig and Xft2 from http://fontconfig.org. (With the caveat that it isn't going to be completely easy to set up, since you will be effectively replacing one of the libraries that comes with X.) Or alternatively the problem has been fixed in CVS, so you could install GTK+ from CVS. Or wait for GTK+-2.1.1. (I'd guess early next week.) Regads, Owen ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: Forcing size_allocate?
Paul Davis [EMAIL PROTECTED] writes: I have a gnome_canvas packed into a vbox. All drawing in the canvas is connected to a size_allocate event because I need to know the width and height of the area before drawing. don't do this. a size allocate will always be followed by an expose event. all drawing must be done from the expose event handler, always. just store the width and height in the size allocate handler for later use. if for some reason, the expose event is really missing, use gtk_widget_queue_draw() to cause one to occur soon. Note also that you can simply get the current width and height of the canvas with: canvas-allocation.width canvas-allocation.height Regards, Owen ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: Trying to configure/compile glib-2.0.6
Paul Thomas [EMAIL PROTECTED] writes: I got through my other hoops but while tyring to ./configure on my Linux box (older install), the configure script gets to this point then quits: checking for working alloca.h... (cached) yes checking for alloca... (cached) yes checking for atexit... yes checking for on_exit... yes checking for char... yes checking size of char... configure: error: cannot compute sizeof (char), 77 Anyone know what I might need to address to 'compute sizeof (char)'? Look at config.log - you'll have some sort of compiler error in there related to this. Regards, Owen ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: Cursor for gtkentry
Ian King [ES] [EMAIL PROTECTED] writes: Hi all, Is it possible to change the cursor for a GtkEntry widget, for an application I have I need to display a wait cursor while background processing commences, however when the mouse pointer is hovering over the text entry the cursor changes to the caret cursor even though I have explicitly set it beforehand to an hourglass cursor. You should be able to (though it isn't really officially allowed) set the cursor on a GtkEntry by using gdk_window_set_cursor() on entry-text_area. Note that the entry must be realized before you can do this. You might want to file a bug on bugzilla.gnome.org asking for an API addition in tihs area. Regards, Owen ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Assertion failed - where to start ?
I recently posted the following request for help and have not received any suggestions. I would really like to resolve this problem :) It sounds like some type of event has been received for which no widget has been created. Does this sound correct ? How can I diagnose which type of event caused this ? Thanks, Scott. On Tue, 8 Oct 2002 21:22:17 -0400 Scott Merritt [EMAIL PROTECTED] wrote: I recently installed RedHat 8.0 (GNOME) and am now receiving a large number of errors similar to those listed below. Any help in identifying/correcting this problem would be most appreciated. Thanks, Scott. (nautilus:1253): Gtk-CRITICAL **: file gtkwidget.c: line 2933 (gtk_widget_event): assertion `WIDGET_REALIZED_FOR_EVENT (widget, event)' failed (nautilus:1371): Gtk-CRITICAL **: file gtkwidget.c: line 2933 (gtk_widget_event): assertion `WIDGET_REALIZED_FOR_EVENT (widget, event)' failed (gnome-panel:1369): Gtk-CRITICAL **: file gtkwidget.c: line 2933 (gtk_widget_event): assertion `WIDGET_REALIZED_FOR_EVENT (widget, event)' failed ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list