diff options
author | Simon Steinbeiss <simon.steinbeiss@elfenbeinturm.at> | 2017-04-15 23:41:14 +0200 |
---|---|---|
committer | Simon Steinbeiss <simon.steinbeiss@elfenbeinturm.at> | 2017-04-15 23:50:46 +0200 |
commit | 354c066e329e6abe29ef46f40d085b501e415477 (patch) | |
tree | 54e6e00953f4b368784650a52d1d6f97394adbca /panel | |
parent | ed233c7e29ce5b8545cd3fde518a01cf1420ae8b (diff) | |
download | xfce4-panel-354c066e329e6abe29ef46f40d085b501e415477.tar.gz |
Replace deprecated gtk_style_context_get_background_color
Diffstat (limited to 'panel')
-rw-r--r-- | panel/panel-base-window.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/panel/panel-base-window.c b/panel/panel-base-window.c index b8e29dbb..1e118898 100644 --- a/panel/panel-base-window.c +++ b/panel/panel-base-window.c @@ -232,7 +232,6 @@ panel_base_window_get_property (GObject *object, PanelBaseWindow *window = PANEL_BASE_WINDOW (object); PanelBaseWindowPrivate *priv = window->priv; GdkRGBA *rgba; - GdkRGBA bg_color; GtkStyleContext *ctx; switch (prop_id) @@ -256,8 +255,9 @@ panel_base_window_get_property (GObject *object, else { ctx = gtk_widget_get_style_context (GTK_WIDGET (window)); - gtk_style_context_get_background_color (ctx, GTK_STATE_NORMAL, &bg_color); - rgba = &bg_color; + gtk_style_context_get (ctx, GTK_STATE_FLAG_NORMAL, + GTK_STYLE_PROPERTY_BACKGROUND_COLOR, + &rgba, NULL); } g_value_set_boxed (value, rgba); break; @@ -295,9 +295,7 @@ panel_base_window_set_property (GObject *object, PanelBaseWindow *window = PANEL_BASE_WINDOW (object); PanelBaseWindowPrivate *priv = window->priv; PanelBgStyle bg_style; - GtkStyleContext *context; - context = gtk_widget_get_style_context (GTK_WIDGET (window)); switch (prop_id) { case PROP_ENTER_OPACITY: |