[giggle] giggle-label-action: gtk_misc_set_alignment



commit 2961a1ea7feb74ff632a809f6291120cd5f67750
Author: Diego Celix <dcelix gmail com>
Date:   Sat Jun 11 03:33:17 2011 +0200

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

 src/giggle-label-action.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/giggle-label-action.c b/src/giggle-label-action.c
index fecea93..177fd61 100644
--- a/src/giggle-label-action.c
+++ b/src/giggle-label-action.c
@@ -121,7 +121,8 @@ label_action_create_tool_item (GtkAction *action)
 	item = gtk_tool_item_new ();
 	label = gtk_label_new (NULL);
 
-	gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5);
+	gtk_widget_set_halign (label, GTK_ALIGN_START);
+	gtk_widget_set_valign (label, GTK_ALIGN_CENTER);
 	gtk_container_add (GTK_CONTAINER (item), label);
 	gtk_widget_show (label);
 



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