Re: Check the button pressed in a gtktreeview
- From: who_ami siedziba pl
- To: gtk-app-devel-list gnome org
- Subject: Re: Check the button pressed in a gtktreeview
- Date: Wed, 20 Nov 2002 15:52:15 +0100 (CET)
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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]