Re: Toolbar button press



Hi.

On Mon, 2002-10-07 at 17:54, TORRI Vincent wrote:
hello

  There is no "button_press_event" signal for a toolbar, but 
"button-press-event" signal (from GtkWidget) (there is generally no 
underscore character in the signal string...)

Yes, you're right. It is called button-press-event and not
button_press_event. The strange thing though, is that the application
works with both "button_press_event" and "button-press-event" when I
connect it to a GtkTreeView (bug or feature?). But when I connect either
of them to a Toolbar nothing happens. Any ideas?

/Jacob


Vincent TORRI

On 7 Oct 2002, Jacob Ilsø Christensen wrote:

Hi.

I would like to show a context menu when the right mouse button is
clicked on the toolbar. I tried the following but nothing seems to
happen. Any ideas?

g_signal_connect (toolbar, "button_press_event",                     
G_CALLBACK(toolbar_button_press), NULL);

Thanks in advance,
Jacob

_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


-- 
TORRI Vincent
Mathematiques Appliquees Bordeaux                                                
Institut de Mathematiques                                                       
Universite Bordeaux 1                                                           
351 cours de la liberation                                                      
33 405 Talence cedex - France                                                   
                                                                                
Tel : 33 (0)5 57 96 21 42                                                       
Fax : 33 (0)5 56 84 26 26                                                       
--







[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]