Re: popup menu does not disappear

2004-08-26 Thread Komulainen Tommi (Nokia-M/Helsinki)
On Wed, 2004-08-25 at 20:27, ext Jean Brfort wrote: gtk_menu_popup (GTK_MENU (w), NULL, NULL, NULL, NULL, 3, gtk_get_current_event_time ()); When the menu item is activated a first time, the callback is executed but the popup menu does not disappear (it does if the menu item

testglib

2004-08-26 Thread liulijuan
I had cross compiled glib2-2.2.1-1.src.rpm,but when i run testglib on target board,i get follow error: g_log tests: ** (process:336): WARNING **: harmless warning with parameters: 42 Boo 0x3039 ** Message: the next warning is a test: (process:336): GLib-CRITICAL **: file gmessages.c: line 840

Re: GObject tutorial next version

2004-08-26 Thread Tiago Cogumbreiro
My comments follow in a patch :) Nice tutorial. On Thu, 2004-08-26 at 07:33, Ryan McDougall wrote: This covers everything except signals, which is the last thing to do. Warning currently its in plain text format since I haven't gotten around to fancifying it yet, however it WILL be prettied

gdk_draw_layout isn't working for some widgets

2004-08-26 Thread Viraj Chatterjee
I'm using gdk_draw_layout to draw certain text on some widgets in my application, It works for most widgets, however, the text doesn't render atall for a few widgets. For the above cases where gdk_draw_layout fails to render, XDrawString works well. The problem is since XDrawString doesn't

Re: gdk_draw_layout isn't working for some widgets

2004-08-26 Thread Sven Neumann
Hi. Viraj Chatterjee [EMAIL PROTECTED] writes: I'm using gdk_draw_layout to draw certain text on some widgets in my application, It works for most widgets, however, the text doesn't render atall for a few widgets. Here's a snippet of code I'm using: PangoLayout *layout =

Re: GObject tutorial next version

2004-08-26 Thread Tiago Cogumbreiro
I would also like to point that you have another problem. The object constructor[1] returns a 'GObject*' instead of 'void' as it is in your example. 1 - http://developer.gnome.org/doc/API/2.0/gobject/gobject-The-Base-Object-Type.html#GObjectClass On Thu, 2004-08-26 at 07:33, Ryan McDougall

Re: GObject tutorial next version

2004-08-26 Thread Ryan McDougall
On Thu, 2004-26-08 at 08:14 -0400, muppet wrote: On Aug 26, 2004, at 3:33 AM, Ryan McDougall wrote: [spelling errors snipped] by apologizing for digressing, you're digressing. how about a footnote or appendix instead? LOL. Its true that learning any sort of code requires a lot of

Re: g_value_new Macro?

2004-08-26 Thread Ryan McDougall
On Thu, 2004-26-08 at 15:59 +0800, James Henstridge wrote: On 26/08/04 14:22, Ryan McDougall wrote: Also, your macro looks like it might break sometimes. The g_value_init() function expects the GValue to be zeroed out (the type field at a minimum), and g_new() doesn't guarantee this.

Re: GObject tutorial next version

2004-08-26 Thread Tiago Cogumbreiro
One thing I've learned from reading the big reference on GObject documentation[1] is that howtos/quick refs/faqs and theoretical explanations don't, usually, mix. While reading it I usually wanted to know how and not why, therefore sometimes allot of information i would just skip, because it was

Re: GObject tutorial next version

2004-08-26 Thread Ryan McDougall
On Fri, 2004-27-08 at 02:57 +, Tiago Cogumbreiro wrote: One thing I've learned from reading the big reference on GObject documentation[1] is that howtos/quick refs/faqs and theoretical explanations don't, usually, mix. While reading it I usually wanted to I disagree. Sometimes you want to

Re: g_value_new Macro?

2004-08-26 Thread Ryan McDougall
On Thu, 2004-26-08 at 23:16 -0400, muppet wrote: On Aug 26, 2004, at 10:56 PM, Ryan McDougall wrote: GValues are used in code that runs a *lot* (marshaling code for signals, property mechanism, etc), and need to be fast. allocation on the stack is far faster than allocation on the heap,