Re: Disable GtkEntry popup menu
- From: Olexiy Avramchenko <ath beast stu cn ua>
- To: Matteo Frigerio <drhammerit yahoo it>
- Cc: gtk-list gnome org
- Subject: Re: Disable GtkEntry popup menu
- Date: Thu, 19 Sep 2002 18:21:10 +0300
Matteo Frigerio wrote:
Hello,
i have a problem: i want to change the popup menu
displaied by the GtkEntry with a my personal popup
menu.
Connect handler to "populate_popup" GtkEntry signal. Your
callback will get the pointer to popup menu before it will be
shown, you can add everything you want there.
How can i disable GtkEntry popupmenu ?
Create your own widget over the GtkEntry, handle button press event
(GDK_BUTTON_PRESS_MASK) and dont let original handler know
that 3d button was preseed :) Also you have to set to NULL *popup_menu*
field in GtkWidgetClass to disable menu popup at Shift+F10 or smth.
Olexiy
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]