[gedit] Use GTK_STATE_FLAG_NORMAL instead of 0
- From: Ignacio Casal Quinteiro <icq src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit] Use GTK_STATE_FLAG_NORMAL instead of 0
- Date: Sun, 23 Jan 2011 21:27:37 +0000 (UTC)
commit 3801b240f56f4dffc4d1a78e2b9b1a7c7c711285
Author: Ignacio Casal Quinteiro <icq gnome org>
Date: Sun Jan 23 22:26:02 2011 +0100
Use GTK_STATE_FLAG_NORMAL instead of 0
gedit/gedit-rounded-frame.c | 3 ++-
gedit/theatrics/gedit-theatrics-animated-widget.c | 2 +-
2 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/gedit/gedit-rounded-frame.c b/gedit/gedit-rounded-frame.c
index 06bb30b..ae84593 100644
--- a/gedit/gedit-rounded-frame.c
+++ b/gedit/gedit-rounded-frame.c
@@ -154,7 +154,8 @@ draw_frame (GeditRoundedFrame *frame,
area->height);
context = gtk_widget_get_style_context (GTK_WIDGET (frame));
- gtk_style_context_get_background_color (context, 0, &bg_color);
+ gtk_style_context_get_background_color (context, GTK_STATE_FLAG_NORMAL,
+ &bg_color);
gtk_style_context_get_border_color (context, GTK_STATE_FLAG_ACTIVE,
&border_color);
diff --git a/gedit/theatrics/gedit-theatrics-animated-widget.c b/gedit/theatrics/gedit-theatrics-animated-widget.c
index e2bf621..f4382b5 100644
--- a/gedit/theatrics/gedit-theatrics-animated-widget.c
+++ b/gedit/theatrics/gedit-theatrics-animated-widget.c
@@ -168,7 +168,7 @@ gedit_theatrics_animated_widget_realize (GtkWidget *widget)
window = gdk_window_new (parent_window, &attributes, 0);
gdk_window_set_user_data (window, widget);
gtk_widget_set_window (widget, window);
- gtk_style_context_set_state (context, 0);
+ gtk_style_context_set_state (context, GTK_STATE_FLAG_NORMAL);
gtk_style_context_set_background (context, window);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]