[cheese] libcheese: aligned button to center



commit 98d4c4970fd664110dc4ecec0e0438f979c58d4f
Author: Raluca Elena Podiuc <ralucaelena1985 gmail com>
Date:   Tue Jun 7 21:52:57 2011 +0200

    libcheese: aligned button to center

 libcheese/cheese-avatar-chooser.c |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/libcheese/cheese-avatar-chooser.c b/libcheese/cheese-avatar-chooser.c
index 14a3d37..1b64e1e 100644
--- a/libcheese/cheese-avatar-chooser.c
+++ b/libcheese/cheese-avatar-chooser.c
@@ -162,6 +162,7 @@ create_page (GtkWidget *child,
              GtkWidget *extra)
 {
   GtkWidget *vbox, *hbox;
+  GtkAlignment *align;
 
   vbox = gtk_vbox_new (FALSE, 8);
   gtk_box_pack_start (GTK_BOX (vbox),
@@ -169,12 +170,14 @@ create_page (GtkWidget *child,
                       TRUE,
                       TRUE,
                       0);
-  hbox = gtk_hbox_new (FALSE, 8);
+  align = gtk_alignment_new (0.5, 0, 0, 0);
   gtk_box_pack_start (GTK_BOX (vbox),
-                      hbox,
+                      align,
                       FALSE,
                       TRUE,
                       0);
+  hbox = gtk_hbox_new (FALSE, 8);
+  gtk_container_add(GTK_CONTAINER(align), hbox);
   gtk_box_pack_start (GTK_BOX (hbox),
                       button,
                       FALSE,



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