[giggle] giggle-revision-info: gtk_misc_set_alignment



commit 41a6dd226f04f951a7a14e5e845f00dc79984fe8
Author: Diego Celix <dcelix gmail com>
Date:   Sat Jun 11 03:39:50 2011 +0200

    giggle-revision-info: gtk_misc_set_alignment
    
    Replacing the function gtk_misc_set_alignment () with
    gtk_widget_set_halign () and gtk_widget_set_valign () in
    src/giggle-revision-info.c

 src/giggle-revision-info.c |   12 ++++++++----
 1 files changed, 8 insertions(+), 4 deletions(-)
---
diff --git a/src/giggle-revision-info.c b/src/giggle-revision-info.c
index d83b7c2..89fe0f1 100644
--- a/src/giggle-revision-info.c
+++ b/src/giggle-revision-info.c
@@ -218,12 +218,14 @@ giggle_revision_info_init (GiggleRevisionInfo *info)
 	gtk_box_pack_start (GTK_BOX (info), hbox, FALSE, FALSE, 0);
 
 	priv->label = gtk_label_new (NULL);
-	gtk_misc_set_alignment (GTK_MISC (priv->label), 0.0, 0.5);
+	gtk_widget_set_halign (priv->label, GTK_ALIGN_START);
+	gtk_widget_set_valign (priv->label, GTK_ALIGN_CENTER);
 	gtk_label_set_ellipsize (GTK_LABEL (priv->label), PANGO_ELLIPSIZE_END);
 	gtk_box_pack_start (GTK_BOX (hbox), priv->label, TRUE, TRUE, 0);
 
 	priv->sha1 = gtk_label_new (NULL);
-	gtk_misc_set_alignment (GTK_MISC (priv->sha1), 1.0, 0.5);
+	gtk_widget_set_halign (priv->sha1, GTK_ALIGN_END);
+	gtk_widget_set_valign (priv->sha1, GTK_ALIGN_CENTER);
 	gtk_label_set_selectable (GTK_LABEL (priv->sha1), TRUE);
 	gtk_box_pack_start (GTK_BOX (hbox), priv->sha1, FALSE, FALSE, 0);
 
@@ -233,13 +235,15 @@ giggle_revision_info_init (GiggleRevisionInfo *info)
 	gtk_box_pack_start (GTK_BOX (info), hbox, FALSE, FALSE, 0);
 
 	priv->summary = gtk_label_new (NULL);
-	gtk_misc_set_alignment (GTK_MISC (priv->summary), 0.0, 0.5);
+	gtk_widget_set_halign (priv->summary, GTK_ALIGN_START);
+	gtk_widget_set_valign (priv->summary, GTK_ALIGN_CENTER);
 	gtk_label_set_selectable (GTK_LABEL (priv->summary), TRUE);
 	gtk_label_set_ellipsize (GTK_LABEL (priv->summary), PANGO_ELLIPSIZE_END);
 	gtk_box_pack_start (GTK_BOX (hbox), priv->summary, TRUE, TRUE, 0);
 
 	priv->date = gtk_label_new (NULL);
-	gtk_misc_set_alignment (GTK_MISC (priv->date), 1.0, 0.5);
+	gtk_widget_set_halign (priv->date, GTK_ALIGN_END);
+	gtk_widget_set_valign (priv->date, GTK_ALIGN_CENTER);
 	gtk_label_set_selectable (GTK_LABEL (priv->date), TRUE);
 	gtk_box_pack_start (GTK_BOX (hbox), priv->date, FALSE, FALSE, 0);
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]