menu bitmaps on 64-bit build

2010-01-14 Thread Garth's KidStuff
Hey All,

I build the same source on both 32-bit and 64-bit machines running various
versions of ubuntu (64-bit is only 9.04 and 9.10) and on the 32-bit builds I
see the menu item bitmaps, but on 64-bit, I don't.

I'm using the gtk_icon_factory methods.

Anyone have any ideas about what's going on?

TIA

-Garth

-- 
Garth Upshaw
Garth's KidStuff
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


Re: about main event loop

2010-01-14 Thread Zhang Wei
Thank you for reply!

My system is windows xp sp2,
the gtk-+2.0 version is 2.16.6, and gcc (GCC) 3.4.5 (mingw-vista special r3)

here is a simple program has the same problem,
when right click the icon on taskbar to select "minimize, maximum, close.."
console give warings,
I am new to gtk.
Please give me an example to handle the signal in the simple program?

#include 
int main( intargc,
   char *argv[] )
{
 GtkWidget *window;
 gtk_init (&argc, &argv);
 window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
 g_signal_connect (G_OBJECT (window), "delete_event",
   G_CALLBACK (gtk_main_quit), NULL);
 gtk_container_set_border_width (GTK_CONTAINER (window), 10);
 gtk_widget_show (window);
 gtk_main ();
 return (0);
}
Regards,
Zhang
2010/1/12 Dov Grobgeld 

> No, you don't create threads to handle events. Instead you connect to
> callbacks through g_signal_connect().
>
> But in order to get an intelligent reply from this list, you should provide
> a complete compilable program that exhibit the problem that you experience.
>
> Regards,
> Dov
>
>   On Tue, Jan 12, 2010 at 11:02, Zhang Wei  wrote:
>
>>  hello,
>> I don't know how to deal with the signal
>> when I clicked the icon on taskbar with
>> right button of the mouse
>>
>> the program runs ok,
>> but it gives the warnings in the console:
>> GLib-WARNING **: g_main_context_prepare() called recursively from within a
>> source's check() or prepare() member.
>> GLib-WARNING **: g_main_context_check() called recursively from within a
>> source's check() or prepare() member.
>>
>> should i use a callback function to deal
>> with the signal "button_press_event"or
>> create a thread to run in the idle time?
>> ___
>> gtk-app-devel-list mailing list
>> gtk-app-devel-list@gnome.org
>> http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
>>
>
>
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list