[epiphany] web-extension: fix color of form filler popup
- From: Claudio Saavedra <csaavedra src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany] web-extension: fix color of form filler popup
- Date: Tue, 16 Jun 2015 10:45:19 +0000 (UTC)
commit 772f28933ce4952a8dc8f474e8842923a57f7f69
Author: Claudio Saavedra <csaavedra igalia com>
Date: Fri Jun 12 15:10:59 2015 +0300
web-extension: fix color of form filler popup
Style context calls were missing setting the state previously
as required by GtkStyleContext.
https://bugzilla.gnome.org/show_bug.cgi?id=750842
embed/web-extension/ephy-web-extension.c | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/embed/web-extension/ephy-web-extension.c b/embed/web-extension/ephy-web-extension.c
index 0b76249..fd9162a 100644
--- a/embed/web-extension/ephy-web-extension.c
+++ b/embed/web-extension/ephy-web-extension.c
@@ -515,6 +515,8 @@ static char*
get_selected_bgcolor (void)
{
GdkRGBA color;
+ gtk_style_context_set_state (get_entry_style_context (),
+ GTK_STATE_FLAG_SELECTED);
gtk_style_context_get_background_color (get_entry_style_context (),
GTK_STATE_FLAG_SELECTED,
&color);
@@ -525,6 +527,8 @@ static char*
get_selected_fgcolor (void)
{
GdkRGBA color;
+ gtk_style_context_set_state (get_entry_style_context (),
+ GTK_STATE_FLAG_SELECTED);
gtk_style_context_get_color (get_entry_style_context (),
GTK_STATE_FLAG_SELECTED,
&color);
@@ -535,6 +539,8 @@ static char*
get_bgcolor (void)
{
GdkRGBA color;
+ gtk_style_context_set_state (get_entry_style_context (),
+ GTK_STATE_FLAG_NORMAL);
gtk_style_context_get_background_color (get_entry_style_context (),
GTK_STATE_FLAG_NORMAL,
&color);
@@ -545,6 +551,8 @@ static char*
get_fgcolor (void)
{
GdkRGBA color;
+ gtk_style_context_set_state (get_entry_style_context (),
+ GTK_STATE_FLAG_NORMAL);
gtk_style_context_get_color (get_entry_style_context (),
GTK_STATE_FLAG_NORMAL,
&color);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]