Rep:Re: Check the button pressed in a gtktreeview



-----Message d'origine-----
De: who_ami siedziba pl
A: gtk-app-devel-list gnome org
Date: 20/11/02
Objet: Re: Check the button pressed in a gtktreeview



On Wed, 20 Nov 2002, julius99 wrote:

I want to known which mouse button (left or right) is pressed
on a gtktreeview selection

Someone can help me ??
Thx


I do it (in old fashion way):


gboolean
on_treeview1_button_release_event      (GtkWidget       *widget,
                                       GdkEventButton  *event,
                                       gpointer         user_data)
{
 if (event->type==GDK_BUTTON_RELEASE &&
     event->button==3)
 {
...

gtk_signal_connect (GTK_OBJECT (treeview), "button_release_event",
                     GTK_SIGNAL_FUNC
(on_treeview1_button_release_event),
                     NULL);


Thx for this solution.
But a solution with g_signal_connect is better for my project
Have you an idea with g_signal_connect to get event ?


__________________________________________________
Modem offert : 150,92 euros remboursés sur le Pack eXtense de Wanadoo ! 
Haut débit à partir de 30 euros/mois : http://www.ifrance.com/_reloc/w




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