Re: [gtkmm] Entry() popup menuitems

On Wed, 2004-05-12 at 15:26 -0600, Diana Esch-Mosher wrote:
> If I override the button_press for the Entry() I should be able to get
> rid of the menu entirely - which would be fine. Since this Entry() is in
> a treeview how do I get the handle to the Entry() widget to do this? I'm
> already overriding the button_press for the treeview and this is not
> sufficient to intercede.

TreeViews use CellRenderers. You might need to derive a custom
cellrenderer, from the existing cellrenderer. Then you must specify the
use of that cellrenderer instead of using gtkmm's
TreeView::append_column_editable() convenience template:

There is a custom cellrenderer example in gtkmm, in

But this is a lot of work, and if you just hide the whole context menu,
I think people will miss the cut, copy, and paste menu items. I doubt
this is worth the bother.

> On Wed, 2004-05-12 at 15:49, Murray Cumming wrote:
> > On Wed, 2004-05-12 at 13:41 -0600, Diana Esch-Mosher wrote:
> > > Is there any convenient way to delete the "input methods" or the "insert
> > > unicode control character" items from the Entry() right-click popup?  If
> > > so - how do I get the handle to this menu for a treeview text cell? 
> > 
> > It's probably not easy. But I'm CCing this to gtk-list gnome org in case
> > anybody knows of a way.
> -- 
> Diana Esch-Mosher <desch-mosher lanl gov>
> Los Alamos National Laboratory
Murray Cumming
murrayc murrayc com

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