summaryrefslogtreecommitdiff
path: root/capplets/common
diff options
context:
space:
mode:
authorraveit65 <[email protected]>2017-03-08 16:59:12 +0100
committerraveit65 <[email protected]>2017-03-13 17:42:35 +0100
commit4197690a085c3dc24e1c770088f0700b68a040ce (patch)
treea1806cc0e62919dc856dc34e0f391ed45d4d22c4 /capplets/common
parent477fcbd1846dc95eb90ebbc3823d06fa8af06ed4 (diff)
downloadmate-control-center-4197690a085c3dc24e1c770088f0700b68a040ce.tar.bz2
mate-control-center-4197690a085c3dc24e1c770088f0700b68a040ce.tar.xz
theme-thumbnail: avoid deprecated GtkAlignment
Diffstat (limited to 'capplets/common')
-rw-r--r--capplets/common/theme-thumbnail.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/capplets/common/theme-thumbnail.c b/capplets/common/theme-thumbnail.c
index 2b11d01f..4fb96402 100644
--- a/capplets/common/theme-thumbnail.c
+++ b/capplets/common/theme-thumbnail.c
@@ -171,7 +171,6 @@ create_meta_theme_pixbuf (ThemeThumbnailData *theme_thumbnail_data)
GtkWidget *window;
GtkWidget *preview;
GtkWidget *vbox;
- GtkWidget *align;
GtkWidget *box;
GtkWidget *stock_button;
GtkWidget *checkbox;
@@ -221,10 +220,11 @@ create_meta_theme_pixbuf (ThemeThumbnailData *theme_thumbnail_data)
vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 6);
gtk_container_set_border_width (GTK_CONTAINER (vbox), 6);
gtk_container_add (GTK_CONTAINER (preview), vbox);
- align = gtk_alignment_new (0, 0, 0.0, 0.0);
- gtk_box_pack_start (GTK_BOX (vbox), align, FALSE, FALSE, 0);
stock_button = gtk_button_new_from_stock (GTK_STOCK_OPEN);
- gtk_container_add (GTK_CONTAINER (align), stock_button);
+ gtk_widget_set_halign (stock_button, GTK_ALIGN_START);
+ gtk_widget_set_valign (stock_button, GTK_ALIGN_START);
+ gtk_widget_show (stock_button);
+ gtk_box_pack_start (GTK_BOX (vbox), stock_button, FALSE, FALSE, 0);
box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
gtk_box_pack_start (GTK_BOX (vbox), box, FALSE, FALSE, 0);
checkbox = gtk_check_button_new ();