Re: TreeView menu popup



This is the event structure (GdkEvent argument
for "button-press-event"). You'll have to catch
the event on the widget you want to popup from.

http://developer.gnome.org/doc/API/2.0/gdk/gdk-Event-Structures.html#GdkEventButton

You may also need to use gtk_widget_add_events();
(depending on the the type of widget you
wish to popup from; i.e. you need to if you use
GtkDrawingArea or any other widget not interested
in mouse events).

http://developer.gnome.org/doc/API/2.0/gtk/GtkWidget.html#gtk-widget-add-events


Cheers,
                -Tristan

Vladimir Djokic wrote:

        Good day,
        Developers! I'm back with my school project questions:)

        Have:

        a DlgStudentFind struct (Student find dialog), with GtkTreeView using
GtkListStore. This dialog is used to find student(s) in school database
and fill the TreeView with results. Probably stupid question:

        * how do I on right mouse button press event, popup menu with some
options?

        Thanks for any kind of HELP,
        Vladimir.

--
"This is it... This is where I belong..."

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



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