summaryrefslogtreecommitdiff
path: root/mate-panel/panel-properties-dialog.c
diff options
context:
space:
mode:
authorKonstantin Pugin <[email protected]>2014-06-20 00:15:35 +0700
committerKonstantin Pugin <[email protected]>2014-06-20 00:15:35 +0700
commit67613a6142a53f4bc633edc5732d6396d45a30d6 (patch)
tree605fe472c4d5ea49277acf33b85164579f511d45 /mate-panel/panel-properties-dialog.c
parente964b756355ad5e66a0166d9ca218bdde2054f6d (diff)
downloadmate-panel-67613a6142a53f4bc633edc5732d6396d45a30d6.tar.bz2
mate-panel-67613a6142a53f4bc633edc5732d6396d45a30d6.tar.xz
Replace opacity key to alpha value in color key.
Diffstat (limited to 'mate-panel/panel-properties-dialog.c')
-rw-r--r--mate-panel/panel-properties-dialog.c5
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);