After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 595742 - Widget type that gtk_info_bar_get_action_area() returns is not documented
Widget type that gtk_info_bar_get_action_area() returns is not documented
Status: RESOLVED OBSOLETE
Product: gtk+
Classification: Platform
Component: Documentation
2.19.x
Other Linux
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2009-09-20 12:55 UTC by Holger Berndt
Modified: 2018-02-10 04:40 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Document content/ action areas as #GtkBox (1.10 KB, patch)
2009-09-21 13:52 UTC, Christian Dywan
none Details | Review
Use "content_area" in GtkDialog buildable (535 bytes, patch)
2009-09-21 13:56 UTC, Christian Dywan
none Details | Review

Description Holger Berndt 2009-09-20 12:55:05 UTC
The documentation doesn't say which GtkWidget gtk_info_bar_get_action_area() returns, so one has to dig in the source to find out that it's actually a GtkVButtonBox if one wants to modify container settings.
Comment 1 Christian Dywan 2009-09-21 13:52:44 UTC
Created attachment 143593 [details] [review]
Document content/ action areas as #GtkBox

I think it would be good to document all action/ content areas as #GtkBox, that is of GtkDialog and GtkInfoBar. I would refrain from documenting the exact type in case there's a need to use a different subclass, and using GtkBox API is presumably good enough for the usual case.
Comment 2 Christian Dywan 2009-09-21 13:56:53 UTC
Created attachment 143594 [details] [review]
Use "content_area" in GtkDialog buildable

On a related matter, I think the buildable of GtkDialog should also use "content_area" instead of vbox. If you don't mind me attaching this here as well, this is a patch adding the name, while keeping "vbox" for compatibility.
Comment 3 Holger Berndt 2009-09-21 14:05:33 UTC
In my particular usecase, I wanted to place a minimum size close button into the GtkInfoBar. The button should only consist of a small x, without relief, like it is often done in tabs and seach bars. I didn't manage to get the button below a certain size until I realized that the container was a GtkButtonBox which has a minimum-child-size setting (well, and even then, I had problems, but that's bug #595741).

So, for me, the documentation as GtkBox wouldn't have been helpful either. To modify container settings in a meaningful way, it would at least need to be documented as a GtkButtonBox.
Comment 4 Christian Dywan 2009-09-21 14:37:33 UTC
Why don't you let it size based on the label like it's done everywhere else? Or do you have a locale specific size you want to set on the button?
Comment 5 Holger Berndt 2009-09-21 14:43:09 UTC
There is no text display on the button. It should just be a small close icon, taking as little space as possible, being as un-obtrusive as possible.

Examples of what I am trying to do are the close-buttons on the individual tabs of gedit or gnome-terminal.
Comment 6 Christian Dywan 2009-09-21 16:04:15 UTC
Ah, so your button can become much too large. In that case I think it would make sense to provide properties that override the style properties in the same way the old function. Resurrecting the old function is probably not the best idea since it doesn't differentiate between width and height.
Comment 7 Holger Berndt 2009-09-21 16:09:43 UTC
Yes, that would indeed be a very nice solution.
Comment 8 Matthias Clasen 2018-02-10 04:40:21 UTC
We're moving to gitlab! As part of this move, we are closing bugs that haven't seen activity in more than 5 years. If this issue is still imporant to you and
still relevant with GTK+ 3.22 or master, please consider creating a gitlab issue
for it.