summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPablo Barciela <[email protected]>2019-07-20 18:24:39 +0200
committerlukefromdc <[email protected]>2019-07-23 03:08:02 +0000
commitc8502b890d0e308456b1b22cf8c6cbe396ed8545 (patch)
tree9468dc5ebade7c438c68a19e039b767333243da8
parent750282362f351551af3fda094f53ecbf6718123f (diff)
downloadmate-desktop-c8502b890d0e308456b1b22cf8c6cbe396ed8545.tar.bz2
mate-desktop-c8502b890d0e308456b1b22cf8c6cbe396ed8545.tar.xz
mate-colorsel: avoid deprecated 'gtk_hscale_new'
-rw-r--r--libmate-desktop/mate-colorsel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libmate-desktop/mate-colorsel.c b/libmate-desktop/mate-colorsel.c
index 05a6fd8..2d68d37 100644
--- a/libmate-desktop/mate-colorsel.c
+++ b/libmate-desktop/mate-colorsel.c
@@ -398,7 +398,7 @@ mate_color_selection_init (MateColorSelection *colorsel)
gtk_grid_attach (GTK_GRID (grid), priv->opacity_label, 0, 4, 1, 1);
adjust = GTK_ADJUSTMENT (gtk_adjustment_new (0.0, 0.0, 255.0, 1.0, 1.0, 0.0));
g_object_set_data (G_OBJECT (adjust), "COLORSEL", colorsel);
- priv->opacity_slider = gtk_hscale_new (adjust);
+ priv->opacity_slider = gtk_scale_new (GTK_ORIENTATION_HORIZONTAL, adjust);
gtk_widget_set_tooltip_text (priv->opacity_slider,
_("Transparency of the color."));
gtk_label_set_mnemonic_widget (GTK_LABEL (priv->opacity_label),