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 303968 - allow hiding the 'style' section of gtkfontselection
allow hiding the 'style' section of gtkfontselection
Status: RESOLVED WONTFIX
Product: gtk+
Classification: Platform
Component: Widget: Other
2.11.x
Other Linux
: Normal enhancement
: Small API
Assigned To: gtk-bugs
gtk-bugs
: 558413 (view as bug list)
Depends on:
Blocks: 317343
 
 
Reported: 2005-05-12 21:00 UTC by Christian Persch
Modified: 2011-09-05 04:26 UTC
See Also:
GNOME target: ---
GNOME version: Unversioned Enhancement


Attachments
Add _font_selection_{g,s}et_select_{style,size} (9.42 KB, patch)
2008-10-31 20:39 UTC, Christian Dywan
none Details | Review
Add _font_selection_get/set_select_style/size + properties (12.05 KB, patch)
2009-09-11 16:09 UTC, Christian Dywan
none Details | Review

Description Christian Persch 2005-05-12 21:00:38 UTC
I'd like to have a way to hide the 'style' section of gtkfontselection, so I
could use it to only choose the family and size, and not confuse the user with a
choice which I don't indent to honour.
Comment 1 Wouter Bolsterlee (uws) 2006-03-05 16:04:05 UTC
Bug #54651 seems related...
Comment 2 Reinout van Schouwen 2007-06-17 19:04:51 UTC
Updating version field.
Comment 3 Christian Dywan 2008-10-31 18:31:12 UTC
*** Bug 558413 has been marked as a duplicate of this bug. ***
Comment 4 Christian Dywan 2008-10-31 20:39:43 UTC
Created attachment 121747 [details] [review]
Add _font_selection_{g,s}et_select_{style,size}

This patch allows toggling the visibility of the style and size widgets of a font selection, nothing more or less.

The patch includes _no_show_all guards, I'm not sure if I actually like that myself. It was helpful in my test case, though.

I'm not entierely sure if merely hiding the according widgets is good enough, opinions welcome.

Last but not least, no properties, I need to add those if we agree on this feature.
Comment 5 Christian Dywan 2009-09-11 16:09:10 UTC
Created attachment 142998 [details] [review]
Add _font_selection_get/set_select_style/size + properties

Updated patch, including properties.
Comment 6 Matthias Clasen 2011-09-05 04:26:38 UTC
GtkFontSelection is being replaced by GtkFontChooser, which doesn't have a separate style list anyway