[gtk+/quartz-integration: 100/108] testgtk: right-justify menuitem by using expand/align flags



commit 9bf24d49b29fcfca8f35f49a909e291e60b26808
Author: Benjamin Otte <otte redhat com>
Date:   Mon May 2 16:47:06 2011 +0200

    testgtk: right-justify menuitem by using expand/align flags
    
    gtk_menu_item_set_right_justify() is about to be deprecated and this
    thing should work. (Note: should, because I didn't implemented it yet.)

 tests/testgtk.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/tests/testgtk.c b/tests/testgtk.c
index fac0c3a..7540016 100644
--- a/tests/testgtk.c
+++ b/tests/testgtk.c
@@ -3271,7 +3271,8 @@ create_menus (GtkWidget *widget)
       menuitem = gtk_image_menu_item_new_with_label ("Help");
       gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (menuitem), image);
       gtk_menu_item_set_submenu (GTK_MENU_ITEM (menuitem), create_menu (screen, 4, 5, TRUE));
-      gtk_menu_item_set_right_justified (GTK_MENU_ITEM (menuitem), TRUE);
+      gtk_widget_set_hexpand (menuitem, TRUE);
+      gtk_widget_set_halign (menuitem, GTK_ALIGN_END);
       gtk_menu_shell_append (GTK_MENU_SHELL (menubar), menuitem);
       gtk_widget_show (menuitem);
       



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