diff options
author | Stefano Karapetsas <[email protected]> | 2014-06-25 11:25:46 +0200 |
---|---|---|
committer | Stefano Karapetsas <[email protected]> | 2014-06-25 11:25:46 +0200 |
commit | 4a769cc810d949623d9f489f244092407c924882 (patch) | |
tree | 38320d3a8751e27d8812818d85e0724a35a120f9 /mate-panel/panel-properties-dialog.c | |
parent | e5beb2fdfe1a8b1ca103a8fa0a4afdaf3946aa90 (diff) | |
parent | 67613a6142a53f4bc633edc5732d6396d45a30d6 (diff) | |
download | mate-panel-4a769cc810d949623d9f489f244092407c924882.tar.bz2 mate-panel-4a769cc810d949623d9f489f244092407c924882.tar.xz |
Merge pull request #211 from rilian-la-te/remove_opacity_key_gtk3
Remove opacity key gtk3
Diffstat (limited to 'mate-panel/panel-properties-dialog.c')
-rw-r--r-- | mate-panel/panel-properties-dialog.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/mate-panel/panel-properties-dialog.c b/mate-panel/panel-properties-dialog.c index c451fb2f..c1bb735f 100644 --- a/mate-panel/panel-properties-dialog.c +++ b/mate-panel/panel-properties-dialog.c @@ -86,6 +86,8 @@ typedef struct { static GQuark panel_properties_dialog_quark = 0; +static void panel_properties_dialog_opacity_changed (PanelPropertiesDialog *dialog); + static void panel_properties_dialog_free (PanelPropertiesDialog *dialog) { @@ -338,6 +340,7 @@ panel_properties_dialog_color_changed (PanelPropertiesDialog *dialog, #if GTK_CHECK_VERSION (3, 0, 0) gtk_color_button_get_rgba (color_button, &color); panel_profile_set_background_gdk_rgba_color (dialog->toplevel, &color); + panel_properties_dialog_opacity_changed(dialog); #else gtk_color_button_get_color (color_button, &color); panel_profile_set_background_gdk_color (dialog->toplevel, &color); @@ -791,11 +794,13 @@ panel_properties_dialog_background_notify (GSettings *settings, panel_properties_dialog_update_background_color (dialog, color); g_free (color); } +#if !GTK_CHECK_VERSION(3, 0, 0) else if (!strcmp (key, "opacity")) { gint opacity = g_settings_get_int (settings, key); panel_properties_dialog_update_background_opacity (dialog, opacity); } +#endif else if (!strcmp (key, "image")) { char *image = g_settings_get_string (settings, key); |