Context Menu for GtkTreeView without losing the selection?

Hello Gtk-list,

I want to add a context menu on a tree in multiple selection mode.
Using a signal handler like this:

g_signal_connect(G_OBJECT(widget), "button_release_event", G_CALLBACK(context_menu_handler), view);

and then showing the menu via gtk_menu_popup does unfortunately
unselect all rows except the one under the mouse (on right mouse
button press).

How can i change this and offer a context menu for
multiple items?

Also how can i add a context menu on the column view header?

Best regards,
 Lothar                          mailto:llothar web de

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