gnome-shell/src/st
Dan Winship 8886b7433c StThemeNode: simplify use of get_color/get_double/get_length
Although within St itself there are situations where the semantics of
these functions (return TRUE or FALSE and return the actual value in
an out parameter) is useful, it's mostly just annoying at the
application level, where you generally know that the CSS property is
going to specified, and there is no especially sane fallback if it's
not.

So rename the current methods to lookup_color, lookup_double, and
lookup_length, and add new get_color, get_double, and get_length
methods that don't take an "inherit" parameter, and return their
values directly. (Well, except for get_color, due to the lack of (out
caller-allocates) in gjs.)

And update the code to use either the old or new methods as appropriate.

https://bugzilla.gnome.org/show_bug.cgi?id=632590
2010-10-21 15:02:33 -04:00
..
st-adjustment.c Add emacs mode-lines to ST sources 2009-10-01 14:41:18 -04:00
st-adjustment.h Add emacs mode-lines to ST sources 2009-10-01 14:41:18 -04:00
st-bin.c [St] Make allocation handling more consistent 2010-02-16 14:06:39 -05:00
st-bin.h Add emacs mode-lines to ST sources 2009-10-01 14:41:18 -04:00
st-border-image.c introspection: Fix annotations 2010-09-15 03:02:26 +02:00
st-border-image.h Notice style transitions that don't change how StThemeNode paints 2010-08-30 13:40:12 -04:00
st-box-layout-child.c Add emacs mode-lines to ST sources 2009-10-01 14:41:18 -04:00
st-box-layout-child.h Add emacs mode-lines to ST sources 2009-10-01 14:41:18 -04:00
st-box-layout.c StThemeNode: simplify use of get_color/get_double/get_length 2010-10-21 15:02:33 -04:00
st-box-layout.h Move shared container methods from st-private to a common base class 2010-05-10 19:00:07 +02:00
st-button.c StThemeNode: simplify use of get_color/get_double/get_length 2010-10-21 15:02:33 -04:00
st-button.h Remove st_widget accessors for background and border actors 2010-03-08 16:28:34 -05:00
st-clickable.c [St] Remove _st_actor_contains() 2010-08-10 15:03:13 +02:00
st-clickable.h Import ShellButtonBox as StClickable 2009-11-23 14:33:48 -05:00
st-clipboard.c introspection: Build with --warn-all --warn-error 2010-09-07 13:07:52 -04:00
st-clipboard.h Add emacs mode-lines to ST sources 2009-10-01 14:41:18 -04:00
st-container.c introspection: Build with --warn-all --warn-error 2010-09-07 13:07:52 -04:00
st-container.h Move shared container methods from st-private to a common base class 2010-05-10 19:00:07 +02:00
st-drawing-area.c st-drawing-area: Avoid unnecessary repaints 2010-10-15 12:31:34 +02:00
st-drawing-area.h Rework StDrawingArea not to use ClutterCairoTexture 2010-03-11 15:08:48 -05:00
st-entry.c StThemeNode: simplify use of get_color/get_double/get_length 2010-10-21 15:02:33 -04:00
st-entry.h Add emacs mode-lines to ST sources 2009-10-01 14:41:18 -04:00
st-enum-types.c.in Import Mx core as ST 2009-10-01 14:41:16 -04:00
st-enum-types.h.in Import Mx core as ST 2009-10-01 14:41:16 -04:00
st-group.c [StGroup] Respect CSS sizing in size requests 2010-05-25 23:03:14 +02:00
st-group.h Add StGroup container 2010-05-10 19:59:28 +02:00
st-im-text.c Fix build with recent gtk3 2010-09-09 18:34:09 +04:00
st-im-text.h Use GtkIMContext instead of ClutterIMContext 2009-10-06 14:48:32 -04:00
st-label.c [StLabel] Implement text-shadow property 2010-09-02 21:49:59 +02:00
st-label.h Add emacs mode-lines to ST sources 2009-10-01 14:41:18 -04:00
st-marshal.list Import Mx core as ST 2009-10-01 14:41:16 -04:00
st-overflow-box.c StThemeNode: simplify use of get_color/get_double/get_length 2010-10-21 15:02:33 -04:00
st-overflow-box.h Move shared container methods from st-private to a common base class 2010-05-10 19:00:07 +02:00
st-private.c st-shadows: Use a template material when creating shadows 2010-09-13 18:11:03 +02:00
st-private.h [StThemeNode] Make shadow helper functions semi-public 2010-09-02 21:49:59 +02:00
st-scroll-bar.c StThemeNode: simplify use of get_color/get_double/get_length 2010-10-21 15:02:33 -04:00
st-scroll-bar.h change parent class of StScrollBar from StBin to StWidget 2010-09-10 05:56:07 +04:00
st-scroll-view.c remove scrollbar-[width/height] 2010-09-10 05:57:36 +04:00
st-scroll-view.h Add top and bottom shadows to app browser 2010-02-23 01:12:13 +03:00
st-scrollable.c Simplify handling of adjustments 2010-03-11 15:08:48 -05:00
st-scrollable.h Add emacs mode-lines to ST sources 2009-10-01 14:41:18 -04:00
st-shadow.c [StShadow] Add reference counting 2010-09-02 21:49:59 +02:00
st-shadow.h [StShadow] Add reference counting 2010-09-02 21:49:59 +02:00
st-subtexture.c Support and require Clutter 1.2 2010-03-11 15:08:48 -05:00
st-subtexture.h Add emacs mode-lines to ST sources 2009-10-01 14:41:18 -04:00
st-table-child.c St: minor gtk-doc fixage (%NULL, %TRUE, %FALSE, not #) 2010-03-23 19:56:10 -04:00
st-table-child.h [StTable] fix x-align/y-align properties to be StAlign, not double 2010-02-16 14:06:39 -05:00
st-table-private.h Add emacs modelines to all .c and .h files that were missing them 2009-10-27 11:27:45 -04:00
st-table.c StThemeNode: simplify use of get_color/get_double/get_length 2010-10-21 15:02:33 -04:00
st-table.h Move shared container methods from st-private to a common base class 2010-05-10 19:00:07 +02:00
st-texture-cache.c Add symbolic icons to TextureCache's load_icon_name() 2010-09-24 10:57:27 -04:00
st-texture-cache.h Add symbolic icons to TextureCache's load_icon_name() 2010-09-24 10:57:27 -04:00
st-theme-context.c Pick up system settings for font rendering 2010-05-04 01:08:20 +02:00
st-theme-context.h Pick up system settings for font rendering 2010-05-04 01:08:20 +02:00
st-theme-node-drawing.c st-theme-node: Support non-uniform border-radii 2010-10-05 00:18:49 +02:00
st-theme-node-private.h st-theme-node: Support non-uniform border-radii 2010-10-05 00:18:49 +02:00
st-theme-node-transition.c Revert "StThemeNodeTransition: work around Cogl bug" 2010-09-24 17:31:41 +02:00
st-theme-node-transition.h [St] Add StThemeNodeTransition 2010-06-08 17:55:50 +02:00
st-theme-node.c StThemeNode: simplify use of get_color/get_double/get_length 2010-10-21 15:02:33 -04:00
st-theme-node.h StThemeNode: simplify use of get_color/get_double/get_length 2010-10-21 15:02:33 -04:00
st-theme-private.h Work around libcroco < 0.6.2 parsing bug for 'rgba' 2009-10-05 16:25:38 -04:00
st-theme.c st-theme: ref items in custom stylesheets list 2010-10-18 15:52:38 -04:00
st-theme.h Add functions to dynamically load/unload stylesheets 2009-12-01 15:00:56 -05:00
st-tooltip.c Move Tweener.slowDownFactor into St 2010-06-21 16:19:25 +02:00
st-tooltip.h Add emacs mode-lines to ST sources 2009-10-01 14:41:18 -04:00
st-types.h [StScrollView] Add support for GtkPolicyType for scrollbars 2010-02-19 15:37:40 -05:00
st-widget.c introspection: Fix annotations 2010-09-15 03:02:26 +02:00
st-widget.h Move Tweener.slowDownFactor into St 2010-06-21 16:19:25 +02:00
test-theme.c [StWidget] add list-like methods for style_class and pseudo_class 2010-03-24 09:40:37 -04:00
test-theme.css [StWidget] add list-like methods for style_class and pseudo_class 2010-03-24 09:40:37 -04:00