[prev in list] [next in list] [prev in thread] [next in thread]
List: gtk
Subject: Setting the minimal size of child widget in a button box
From: Holger Berndt <berndth () gmx ! de>
Date: 2009-09-09 21:31:14
Message-ID: 20090909213126.C2F6275018F () menubar ! gnome ! org
[Download RAW message or body]
I am wondering how the minimal size of child widgets of a GtkButtonBox
can be set. I know that it can be done via
gtk_button_box_set_child_size() but that function is declared
deprecated. The doc advises to use the properties "child-min-width" and
"child-min-height" instead, but these two properties are read-only, not
read-write. I wonder if that's a bug.
What I was trying to do was to use the new GtkInfoBar widget, and place
a minimal, icon-only close button in the bar (the style that is often
found in tabs, for example).
The button always had a too large minimal size. I was only able to get
past that restriction when I realized (by digging in the gtk+ source
code) that gtk_info_bar_get_action_area() returned a GtkVButtonBox as a
button container, on which I called above mentioned deprecated function.
The lack of documentation on what gtk_info_bar_get_action_area()
actually returns could be another bug.
I'd appreciate any hint if I am missing something obvious. if not, I can
file those two issues in the bug tracker.
Thanks,
Holger
_______________________________________________
gtk-list mailing list
gtk-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-list
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic