List Info

Thread: Modifing the right mouse menu in a GtkEntry possible?




Modifing the right mouse menu in a GtkEntry possible?
user name
2006-08-09 20:22:53
Hi,

I've a question about the popup menu which appear when you
click with your
right mouse button in a GtkEntry.

I want to give the user the possibility to select  a default
text from a
list and put this into an Entry by simple clicking with the
right mouse
button or just typing his own text.

When you click right, the default menu (with copy, cut,
paste etc)
appears. Is it possible to modify this menu (so add some
extra lines)? Or
should I disable this menu (Is this possible?) and create a
new one?

Mart







_______________________________________________
gtk-perl-list mailing list
gtk-perl-listgnome.org

http://mail.gnome.org/mailman/listinfo/gtk-perl-list
Modifing the right mouse menu in a GtkEntry possible?
user name
2006-08-09 22:47:25
On Aug 9, 2006, at 4:22 PM, Mart van Wijngaarden wrote:

> When you click right, the default menu (with copy, cut,
paste etc)
> appears. Is it possible to modify this menu (so add
some extra  
> lines)? Or
> should I disable this menu (Is this possible?) and
create a new one?

Yes, you can modify the popup menu.  There's example code
for  
TextView in another message, but the same framework is
supported for  
GtkEntry.

http://mail.gnome.org/archives/gtk-perl-list
/2006-July/msg00062.html




--
"the ternary operator makes it a bit less ugly."
     -- kaffee

_______________________________________________
gtk-perl-list mailing list
gtk-perl-listgnome.org

http://mail.gnome.org/mailman/listinfo/gtk-perl-list
[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )