summaryrefslogtreecommitdiff
path: root/mate-panel/panel-properties-dialog.c
diff options
context:
space:
mode:
authoryetist <[email protected]>2015-06-19 22:00:00 +0800
committerinfirit <[email protected]>2015-08-26 14:44:57 +0200
commitc5d35e84d1b2b8c3df8406fdaf4c35b605792421 (patch)
treedb0b6ec585eaa8f86429d0f2e677095b94101d49 /mate-panel/panel-properties-dialog.c
parent630cb2c0ca309f077fe3f92be0032c1e102efd06 (diff)
downloadmate-panel-c5d35e84d1b2b8c3df8406fdaf4c35b605792421.tar.bz2
mate-panel-c5d35e84d1b2b8c3df8406fdaf4c35b605792421.tar.xz
Gtk3: fixed build warning
Diffstat (limited to 'mate-panel/panel-properties-dialog.c')
-rw-r--r--mate-panel/panel-properties-dialog.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/mate-panel/panel-properties-dialog.c b/mate-panel/panel-properties-dialog.c
index 412371de..c1f5c76e 100644
--- a/mate-panel/panel-properties-dialog.c
+++ b/mate-panel/panel-properties-dialog.c
@@ -394,7 +394,7 @@ panel_properties_dialog_image_changed (PanelPropertiesDialog *dialog)
/* FIXME: This is an ugly workaround for GTK+ bug #327243.
* FIXME: Note that GTK+ 2.12 and file-set signal might help. */
- if (!dialog->selection_emitted < 2 && !image) {
+ if (! (dialog->selection_emitted < 2) && !image) {
dialog->selection_emitted++;
return;
}
@@ -749,6 +749,7 @@ panel_properties_dialog_update_background_color (PanelPropertiesDialog *dialog,
&new_color);
}
+#if !GTK_CHECK_VERSION(3, 0, 0)
static void
panel_properties_dialog_update_background_opacity (PanelPropertiesDialog *dialog,
gint opacity)
@@ -760,6 +761,7 @@ panel_properties_dialog_update_background_opacity (PanelPropertiesDialog *dialog
if ((int) gtk_range_get_value (GTK_RANGE (dialog->opacity_scale)) != (int) percentage)
gtk_range_set_value (GTK_RANGE (dialog->opacity_scale), percentage);
}
+#endif
static void
panel_properties_dialog_update_background_image (PanelPropertiesDialog *dialog,