[gtk+/wip/baseline2] testbaseline: Add a baseline align image to test it



commit 5405383cb266223e78698335ec6950d9b307cbfa
Author: Alexander Larsson <alexl redhat com>
Date:   Tue Mar 26 10:58:25 2013 +0100

    testbaseline: Add a baseline align image to test it

 tests/testbaseline.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/tests/testbaseline.c b/tests/testbaseline.c
index 9c4d807..b1ddc98 100644
--- a/tests/testbaseline.c
+++ b/tests/testbaseline.c
@@ -178,6 +178,12 @@ main (int    argc,
          gtk_container_add (GTK_CONTAINER (hbox), button);
        }
 
+      image = gtk_image_new_from_icon_name ("face-sad", GTK_ICON_SIZE_BUTTON);
+      gtk_image_set_pixel_size (GTK_IMAGE (image), 34);
+      if (j == 0)
+       gtk_widget_set_valign (image, GTK_ALIGN_BASELINE);
+      gtk_container_add (GTK_CONTAINER (hbox), image);
+
       button = gtk_toggle_button_new_with_label ("│Xyj,Ö");
       if (j == 0)
        gtk_widget_set_valign (button, GTK_ALIGN_BASELINE);


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