summaryrefslogtreecommitdiff
path: root/gtk/gtkstylecontext.h
Commit message (Collapse)AuthorAgeFilesLines
* stylecontext: deprecate gtk_style_context_set_background()Cosimo Cecchi2015-07-011-1/+1
| | | | Nothing in GTK calls it anymore.
* Add a scrollable indicationMatthias Clasen2014-12-101-0/+10
| | | | | Draw a themable indication when an edge of a scrolled window is hiding some content that can be scrolled in.
* Statusbar: add 'statusbar' style classLapo Calamandrei2014-11-111-0/+11
|
* GtkPaned: Add a "wide-handle" propertyMatthias Clasen2014-10-201-0/+10
| | | | | | | | This can be used by applications to indicate that a paned is expected to be actively used by the users for configuring the UI, and needs a prominent handle. https://bugzilla.gnome.org/show_bug.cgi?id=738860
* Add a style class for touch selection popoversMatthias Clasen2014-10-071-0/+10
|
* GtkTextView: Add a monospace propertyMatthias Clasen2014-10-071-0/+10
| | | | | | This is a convenient shortcut for a common case. It is implemented by adding a .monospace style class to the text view, and letting the theme decide about the monospace font to use.
* Add a label style classMatthias Clasen2014-10-041-0/+11
|
* print: Add a .paper style classBenjamin Otte2014-10-041-0/+11
| | | | ... and use it in the print preview.
* stylecontext: Deprecate functionsBenjamin Otte2014-10-031-2/+2
| | | | | | | | | | | - gtk_style_context_get_background_color() - gtk_style_context_get_border_color() Those functions shouldn't be used anymore, because they don't represent anything from the CSS styling we support. The background color often isn't used due to background images and there are actually 4 different border colors (1 for each side) - if there isn't also a border image in use.
* stylecontext: Split render functions out into gtkrender.[ch]Benjamin Otte2014-10-031-119/+0
|
* stylecontext: Move private a11y function to private headerBenjamin Otte2014-08-161-5/+0
|
* stylecontext: Add GTK_STYLE_CLASS_OVERSHOOTCarlos Garnacho2014-07-091-0/+10
| | | | | | | This class is meant to render the hint on scrolledwindow corners when scrolling past-limits. https://bugzilla.gnome.org/show_bug.cgi?id=731297
* Trivial rearrangementMatthias Clasen2014-07-061-7/+7
|
* Add defines for title style classesMatthias Clasen2014-07-041-0/+20
|
* Add a FLAT style classMatthias Clasen2014-06-261-0/+11
| | | | This will be used for frame-less buttons and frames in the future.
* stylecontext: Deprecate regionsBenjamin Otte2014-06-191-4/+4
| | | | | | | | | | | Regions are done in a very non-css way. They don't fit the DOM in that they don't integrate into the CSS tree and they have very weird matching behavior in selectors. So I'm deprecating them now. GtkNotebook and GtkTreeview will continue to use them and as long as they do, we can't remove the code for it. But once those are ported it might be safe to remove the code as it will clean up lots of places in the code by quite a bit.
* gtkpopover: set background and popover css classesLars Uebernickel2014-06-181-0/+9
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=731834
* Add a message-dialog style classMatthias Clasen2014-06-121-0/+9
| | | | | This helps in separating message dialogs from other dialogs, theming-wise.
* Add GTK_STYLE_CLASS_POPUP to the docsMatthias Clasen2014-06-121-0/+9
|
* Add a csd style classMatthias Clasen2014-06-091-0/+10
| | | | | | This will be used for client-side decorated windows. https://bugzilla.gnome.org/show_bug.cgi?id=731187
* docs: Another round of markup removalMatthias Clasen2014-03-291-2/+2
|
* docs: use proper quotations instead of '*'William Jon McCann2014-02-071-2/+2
|
* docs: use apostrophe in *'reWilliam Jon McCann2014-02-071-1/+1
|
* docs: use proper apostropheWilliam Jon McCann2014-02-071-8/+8
| | | | https://wiki.gnome.org/Design/OS/Typography
* Add GTK_STYLE_CLASS_DESTRUCTIVE_ACTIONWilliam Jon McCann2014-02-071-0/+11
|
* Add GTK_STYLE_CLASS_SUGGESTED_ACTIONWilliam Jon McCann2014-02-071-0/+10
|
* stylecontext: Deprecate gtk_style_context_invalidate()Benjamin Otte2013-10-051-1/+1
| | | | Everything is invalidated automatically these days.
* Add a needs-attention child property to GtkStackPaolo Borelli2013-09-251-0/+11
| | | | | | | | | The child property is watched by the StackSwicther which in turns sets a needs-attention css class on the corresponding button, so that the theme can for instance show a throbbing animation if one of the hidden pages needs the user attention. https://bugzilla.gnome.org/show_bug.cgi?id=707153
* Fix GtkEntry drawing to provide visual feedback when editable=FALSE.David Trowbridge2013-08-191-0/+6
| | | | | | | | | | | | | | | GtkEntry currently draws exactly the same no matter what the state of the 'editable' property. This is pretty confusing for users because there's no visual feedback at all, it just seems like their keyboard is broken. This change adds a "read-only" class to the StyleContext, which will continue to allow the user to select/copy the text, but will draw the entry as if it were insensitive, providing some indication that the contents can't be changed. Signed-off-by: David Trowbridge <trowbrds@gmail.com> http://bugzilla.gnome.org/show_bug.cgi?id=694831
* Add a style class for context menusMatthias Clasen2013-08-181-1/+12
| | | | | | | | | | | | | | Attached widgets inherit from the style of the widget they are attached to. This can sometimes have unintended consequences, like a context menu in the main view of gedit inheriting the font that is configured for documents, or the context menu of the preview in the font chooser coming up with humongous font size. To fix this problem, we introduce a context menu style class and use it for all menus that are used like that. The theme can then set a font for this style class. https://bugzilla.gnome.org/show_bug.cgi?id=697127
* stylecontext: add GTK_STYLE_CLASS_TITLEBAR defineCosimo Cecchi2013-08-161-0/+7
| | | | | | For consistency with the other stock style classes. https://bugzilla.gnome.org/show_bug.cgi?id=706045
* Continue the deprecation of GtkIconSetKjell Ahlstedt2013-07-091-1/+1
| | | | | | | Deprecate gtk_icon_set_render_icon_surface() and gtk_image_get_icon_set(), which take parameters of the deprecated GtkIconSet. https://bugzilla.gnome.org/show_bug.cgi?id=703616
* Fix some inconsistent deprecationsKjell Ahlstedt2013-07-091-3/+3
| | | | | | | Some functions had only a deprecation comment in the .c file, or only a deprecation annotation in the .h file. Add the missing parts. https://bugzilla.gnome.org/show_bug.cgi?id=703616
* icon factory: Add gtk_icon_set_render_icon_surfaceAlexander Larsson2013-07-031-0/+7
| | | | | | | | | Support scales when falling back to loading icons from the icon theme. In order to actually render scaled icons we add gtk_icon_set_render_icon_surface which renders to a cairo_surface_t which includes whatever scaling you need for scaled icons.
* stylecontext: add gtk_render_icon_surfaceAlexander Larsson2013-07-031-0/+6
| | | | | | | | This draws an icon from a cairo_surface. We want to use this more rather than render_icon as this means we can skip the pixbuf to surface conversion (including allocation and alpha premultiplication) at render time, plus we can use create_similar_image which may allow faster rendering.
* GtkStyleContext: Add gtk_style_context_get/set_scaleAlexander Larsson2013-07-031-0/+6
|
* GtkListBox: Add style classes for lists and rowsAlexander Larsson2013-06-131-0/+18
|
* Add annotations to gtk headersMatthias Clasen2013-05-051-0/+59
| | | | Add annotations to all exported functions in GTK+ headers.
* Add gtk_widget_add_tick_callback(), remove GtkTimeline, etc.Owen W. Taylor2013-02-141-0/+7
| | | | | | | | | | | | | | | Add a very simple GtkWidget function for an "tick" callback, which is connected to the ::update signal of GdkFrameClock. Remove: - GtkTimeline. The consensus is that it is too complex. - GdkPaintClockTarget. In the rare cases where tick callbacks aren't sufficient, it's possible to track the paint clock with ::realize/::unrealize/::hierarchy-changed. GtkTimeline is kept using ::update directly to allow using a GtkTimeline with a paint clock but no widget.
* Move single-include guards inside include guardsMatthias Clasen2012-12-281-3/+3
| | | | | | gcc has optimizations for include guards that only work if they are outermost in the the header. https://bugzilla.gnome.org/show_bug.cgi?id=689810
* stylecontext: Deprecate direction propertyBenjamin Otte2012-12-181-0/+2
| | | | | ... and the functions implementing it. Also deprecate the direction getter on GtkThemingEngine.
* stylecontext: Deprecate gtk_style_context_get_font()Benjamin Otte2012-12-061-0/+2
| | | | | | | | | This is for a very simple reason: The getter is returning a const value and the font isn't const anymore. So we need to store the font description somewhere but we can't reuse it as it's changing all the time (yay animations, yay inherited values). Sucks. So keep the hack in here but deprecate the function.
* texthandles: Add an extra style class to the cursor-mode handleCarlos Garnacho2012-10-261-0/+9
| | | | | | Themes may want to render handles differently depending on whether the widget is in selection mode (2 handles enclosing a selection) or cursor mode (one handle pointing out the insertion cursor).
* Improve CSS styling of touch text selection handlesCarlos Garnacho2012-09-031-8/+0
| | | | | | | Don't hook on the widget style context and set up instead a widget path for itself. Also use a common style class for both handles, with an extra top/bottom class for each handle.
* Add GtkTextHandleCarlos Garnacho2012-09-031-0/+16
| | | | | | | | | | This is a helper object to allow text widgets to implement text selection on touch devices. It allows for both cursor placement and text selection, displaying draggable handles on/around the cursor and selection bound positions. Currently, this is private to GTK+, and only available to GtkEntry and GtkTextView.
* level-bar: introduce GtkLevelBarCosimo Cecchi2012-07-161-0/+10
| | | | | | | Similar to CcStrengthBar from gnome-control-center, but more generic and with thorough CSS styling support. https://bugzilla.gnome.org/show_bug.cgi?id=677892
* Revert "level-bar: introduce GtkLevelBar"Matthias Clasen2012-07-111-10/+0
| | | | | | This reverts commit 126a2308ca467744178d4be3309403f6899de987. Pushed by mistake.
* level-bar: introduce GtkLevelBarCosimo Cecchi2012-07-101-0/+10
| | | | | | | Similar to CcStrengthBar from gnome-control-center, but more generic and with thorough CSS styling support. https://bugzilla.gnome.org/show_bug.cgi?id=677892
* stylecontext: Add GTK_STYLE_CLASS_DIM_LABELDebarshi Ray2012-04-271-0/+10
| | | | Fixes: https://bugzilla.gnome.org/674468
* stylecontext: add a define for an OSD style classCosimo Cecchi2012-04-191-0/+8
|