Re: How to make a popup in a TreeView header??
- From: Murray Cumming <murrayc murrayc com>
- To: Jamf <jamf gm gmail com>
- Cc: gtkmm-list gnome org
- Subject: Re: How to make a popup in a TreeView header??
- Date: Sun, 15 Jun 2008 19:55:51 +0200
On Sun, 2008-06-15 at 13:13 +0200, Jamf wrote:
> Hello!
>
> I want to have a popup menu in the header of a TreeView for show / hide
> the columns.
> The only solution I've found is to use the TreeModelColumn's
> signal_clicked, but this is not what I want.
> I want to popup the menu with the right mouse button, and maintain the
> left button for sorting the treeview.
I think you can do it by providing a custom widget via
TreeViewColumn::set_widget():
http://www.gtkmm.org/docs/gtkmm-2.4/docs/reference/html/classGtk_1_1TreeViewColumn.html#3b8c4e3b7e8b579090440c50843efd26
Of course, you then have to reimplement other functionality, which is
annoying, so I filed a bug about it.
http://bugzilla.gnome.org/show_bug.cgi?id=141937
That bug mentions a hacky way to do it, using gobj()->button on the
Gtk::TreeViewColumn, but I don't like it much:
--
murrayc murrayc com
www.murrayc.com
www.openismus.com
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]