summaryrefslogtreecommitdiff
path: root/libslab/nameplate-tile.c
diff options
context:
space:
mode:
authorraveit65 <[email protected]>2017-05-08 23:33:29 +0200
committerraveit65 <[email protected]>2017-05-28 09:52:32 +0200
commit1084b90d3e3d192e7411a3fc536e9e9923ca69f7 (patch)
tree022140b13808997496c14226e0c50e6084170d3f /libslab/nameplate-tile.c
parent4a8f55bf9ddc92da143012e6eefaeb5580c3d051 (diff)
downloadmate-control-center-1084b90d3e3d192e7411a3fc536e9e9923ca69f7.tar.bz2
mate-control-center-1084b90d3e3d192e7411a3fc536e9e9923ca69f7.tar.xz
libslab nameplate-tile: replace GtkAlignment with a GtkBox
Diffstat (limited to 'libslab/nameplate-tile.c')
-rw-r--r--libslab/nameplate-tile.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/libslab/nameplate-tile.c b/libslab/nameplate-tile.c
index 7aa474be..fa84840b 100644
--- a/libslab/nameplate-tile.c
+++ b/libslab/nameplate-tile.c
@@ -213,9 +213,13 @@ nameplate_tile_setup (NameplateTile *this)
GtkWidget *hbox;
GtkWidget *vbox;
- priv->image_ctnr = GTK_CONTAINER (gtk_alignment_new (0.5, 0.5, 1.0, 1.0));
- priv->header_ctnr = GTK_CONTAINER (gtk_alignment_new (0.0, 0.5, 1.0, 1.0));
- priv->subheader_ctnr = GTK_CONTAINER (gtk_alignment_new (0.0, 0.5, 1.0, 1.0));
+ priv->image_ctnr = GTK_CONTAINER (gtk_box_new (GTK_ORIENTATION_VERTICAL, 0));
+ gtk_widget_set_valign (GTK_WIDGET (priv->image_ctnr), GTK_ALIGN_CENTER);
+
+ priv->header_ctnr = GTK_CONTAINER (gtk_box_new (GTK_ORIENTATION_VERTICAL, 0));
+
+ priv->subheader_ctnr = GTK_CONTAINER (gtk_box_new (GTK_ORIENTATION_VERTICAL, 0));
+ gtk_widget_set_halign (GTK_WIDGET (priv->subheader_ctnr), GTK_ALIGN_START);
hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 6);
vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);