This is a similar question to one I asked last week, but I'm not spamming,
fishing for another response with a re-send. I actually made quite a bit of
progress towards a solution but ran into another tangle of confusion, and
possibly a Gtk bug (described below).
I am creating a GtkContainer
the GTK_NO_WINDOW flag.
Thanks,
Brian
--- On Tue, 11/23/10, Mike Massonnet mmasson...@gmail.com wrote:
From: Mike Massonnet mmasson...@gmail.com
Subject: Re: GtkButton, enter-notify signal, and GdkWindow
To: Brian Tietz sdbti...@yahoo.com
Cc: gtk-app-devel-list@gnome.org
Date: Tuesday, November 23, 2010
I am creating two widget subclasses, one which is a subclass of GtkContainer
and one which is a subclass of GtkButton. Both need to receive the
enter-notify signal. I can successfully obtain the enter-notify signal fot
GtkButton in my_button_subclass_init:
When creating a window, the application I'm working on won't know whether the
contents will fit onscreen or not. I won't go into details, but suffice it to
say that the contents can vary greatly in the required size. The window
manager deals with that just fine up to a point. But if a poorly
I'm having trouble with GtkButtons. They should (and usually do) size
themselves to be 27 pixels high with my currently selected GNOME theme. All of
them are created using gtk_button_new_with_label. The problem is that one
particular button sizes itself to 42 pixels high instead of 27.
I
I noticed that if I create a GtkButton, call gtk_widget_show for the button,
then call gtk_widget_size_request, it returns a guesstimate. With my current
theme selection, this turns out to be a few pixels too small.
If I then add it to a container, add the container to a GtkWindow, and show