summaryrefslogtreecommitdiff
path: root/libslab/nameplate-tile.c
diff options
context:
space:
mode:
authorraveit65 <[email protected]>2017-04-24 15:30:54 +0200
committerraveit65 <[email protected]>2017-05-16 17:51:14 +0200
commitad7d4c996569e7c5ccffd2ac7f81a71ecc24e337 (patch)
tree310c31f20c4581fa5785849d84a9c7c144ec9135 /libslab/nameplate-tile.c
parentefc1a7d9cc5bb2a9cc264de3c0c8a01c8901ad84 (diff)
downloadmate-control-center-ad7d4c996569e7c5ccffd2ac7f81a71ecc24e337.tar.bz2
mate-control-center-ad7d4c996569e7c5ccffd2ac7f81a71ecc24e337.tar.xz
libslab nameplate-tile: remove one deprecated ussage of GtkAlignment
Diffstat (limited to 'libslab/nameplate-tile.c')
-rw-r--r--libslab/nameplate-tile.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/libslab/nameplate-tile.c b/libslab/nameplate-tile.c
index fd703b34..706cae46 100644
--- a/libslab/nameplate-tile.c
+++ b/libslab/nameplate-tile.c
@@ -211,7 +211,6 @@ nameplate_tile_setup (NameplateTile *this)
NameplateTilePrivate *priv = NAMEPLATE_TILE_GET_PRIVATE (this);
GtkWidget *hbox;
- GtkWidget *alignment;
GtkWidget *vbox;
priv->image_ctnr = GTK_CONTAINER (gtk_alignment_new (0.5, 0.5, 1.0, 1.0));
@@ -220,14 +219,13 @@ nameplate_tile_setup (NameplateTile *this)
hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 6);
vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
-
- alignment = gtk_alignment_new (0.0, 0.5, 1.0, 0.0);
+ gtk_widget_set_halign (vbox, GTK_ALIGN_FILL);
+ gtk_widget_set_valign (vbox, GTK_ALIGN_CENTER);
gtk_container_add (GTK_CONTAINER (this), hbox);
gtk_box_pack_start (GTK_BOX (hbox), GTK_WIDGET (priv->image_ctnr), FALSE, FALSE, 0);
- gtk_box_pack_start (GTK_BOX (hbox), alignment, TRUE, TRUE, 0);
+ gtk_box_pack_start (GTK_BOX (hbox), vbox, TRUE, TRUE, 0);
- gtk_container_add (GTK_CONTAINER (alignment), vbox);
gtk_box_pack_start (GTK_BOX (vbox), GTK_WIDGET (priv->header_ctnr), FALSE, FALSE, 0);
gtk_box_pack_start (GTK_BOX (vbox), GTK_WIDGET (priv->subheader_ctnr), FALSE, FALSE, 0);