summaryrefslogtreecommitdiff
path: root/panel
diff options
context:
space:
mode:
authorSimon Steinbeiss <simon.steinbeiss@elfenbeinturm.at>2017-04-15 23:41:14 +0200
committerSimon Steinbeiss <simon.steinbeiss@elfenbeinturm.at>2017-04-15 23:50:46 +0200
commit354c066e329e6abe29ef46f40d085b501e415477 (patch)
tree54e6e00953f4b368784650a52d1d6f97394adbca /panel
parented233c7e29ce5b8545cd3fde518a01cf1420ae8b (diff)
downloadxfce4-panel-354c066e329e6abe29ef46f40d085b501e415477.tar.gz
Replace deprecated gtk_style_context_get_background_color
Diffstat (limited to 'panel')
-rw-r--r--panel/panel-base-window.c8
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: