Re: GtkEntry widget in a MenuItem not getting button_press_event signals
- From: Owen Taylor <otaylor redhat com>
- To: Wallace Owen <wally owen titan com>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: GtkEntry widget in a MenuItem not getting button_press_event signals
- Date: Sat, 30 Jul 2005 09:03:20 -0400
On Fri, 2005-07-29 at 16:46 -0700, Wallace Owen wrote:
Am I doing something wrong? the online ref. man for GtkMenuItem says:
"As it derives from GtkBin it can hold any valid child widget, altough
only a few are really useful."
.. so I put a GtkTable in it, then put a 2D array of GtkEntry widgets in
that, and then connected the GtkEventBoxes to the button_press_event.
If I put the table into an hbox, the signal handler gets invoked and
all's hoopy.
What might I be doing wrong? Am I abusing the MenuItem class somehow?
Yes! You are trying to put an a table event boxes (or entries???) in
a menu item? What would that mean?
(Do you want a grid menu? That is supported in the GTK+-2.6 API)
The note in the documentation is probably a bit confusing ... "not
useful" here doesn't just mean "doesn't make sense" but also
"won't fully work" ... interactive widgets in general won't work within
a menu.
Owen
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]