[gtk+] themingbackground: Get rid of flags variable
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] themingbackground: Get rid of flags variable
- Date: Wed, 31 Oct 2012 10:58:07 +0000 (UTC)
commit e9dbfc0e064d561da57699a8b8caa15b68cf52b7
Author: Benjamin Otte <otte redhat com>
Date: Sat Oct 27 01:55:41 2012 +0200
themingbackground: Get rid of flags variable
gtk/gtkthemingbackground.c | 8 ++++----
gtk/gtkthemingbackgroundprivate.h | 1 -
2 files changed, 4 insertions(+), 5 deletions(-)
---
diff --git a/gtk/gtkthemingbackground.c b/gtk/gtkthemingbackground.c
index 4cdb391..55df2dc 100644
--- a/gtk/gtkthemingbackground.c
+++ b/gtk/gtkthemingbackground.c
@@ -336,11 +336,11 @@ _gtk_theming_background_init_layer (GtkThemingBackground *bg,
static void
_gtk_theming_background_init_context (GtkThemingBackground *bg)
{
- bg->flags = gtk_style_context_get_state (bg->context);
+ GtkStateFlags flags = gtk_style_context_get_state (bg->context);
- gtk_style_context_get_border (bg->context, bg->flags, &bg->border);
- gtk_style_context_get_padding (bg->context, bg->flags, &bg->padding);
- gtk_style_context_get_background_color (bg->context, bg->flags, &bg->bg_color);
+ gtk_style_context_get_border (bg->context, flags, &bg->border);
+ gtk_style_context_get_padding (bg->context, flags, &bg->padding);
+ gtk_style_context_get_background_color (bg->context, flags, &bg->bg_color);
/* In the CSS box model, by default the background positioning area is
* the padding-box, i.e. all the border-box minus the borders themselves,
diff --git a/gtk/gtkthemingbackgroundprivate.h b/gtk/gtkthemingbackgroundprivate.h
index bb65286..e6ed1df 100644
--- a/gtk/gtkthemingbackgroundprivate.h
+++ b/gtk/gtkthemingbackgroundprivate.h
@@ -39,7 +39,6 @@ struct _GtkThemingBackground {
GtkRoundedBox padding_box;
GtkJunctionSides junction;
- GtkStateFlags flags;
GtkBorder border;
GtkBorder padding;
GdkRGBA bg_color;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]