[gtk+/gtk-style-context] Add #define for the "spinner" style class
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gtk-style-context] Add #define for the "spinner" style class
- Date: Wed, 24 Nov 2010 22:38:01 +0000 (UTC)
commit efa528159e398b68795fd4d9e87c6cec2675af00
Author: Carlos Garnacho <carlosg gnome org>
Date: Wed Nov 24 23:00:47 2010 +0100
Add #define for the "spinner" style class
gtk/gtkstylecontext.h | 7 +++++++
gtk/gtkthemingengine.c | 2 +-
2 files changed, 8 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkstylecontext.h b/gtk/gtkstylecontext.h
index 05322dd..43f3893 100644
--- a/gtk/gtkstylecontext.h
+++ b/gtk/gtkstylecontext.h
@@ -283,6 +283,13 @@ struct _GtkStyleContextClass
*/
#define GTK_STYLE_CLASS_PROGRESSBAR "progressbar"
+/**
+ * GTK_STYLE_CLASS_SPINNER:
+ *
+ * A widget class defining a spinner
+ */
+#define GTK_STYLE_CLASS_SPINNER "spinner"
+
/* Predefined set of widget regions */
/**
diff --git a/gtk/gtkthemingengine.c b/gtk/gtkthemingengine.c
index e5df624..e16dc03 100644
--- a/gtk/gtkthemingengine.c
+++ b/gtk/gtkthemingengine.c
@@ -2612,7 +2612,7 @@ gtk_theming_engine_render_activity (GtkThemingEngine *engine,
gdouble width,
gdouble height)
{
- if (gtk_theming_engine_has_class (engine, "spinner"))
+ if (gtk_theming_engine_has_class (engine, GTK_STYLE_CLASS_SPINNER))
{
GtkStateFlags state;
guint num_steps, step;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]