[gtk+] demo-ui_manager: gtk_misc_set_alignment replacing
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] demo-ui_manager: gtk_misc_set_alignment replacing
- Date: Mon, 29 Aug 2011 00:36:16 +0000 (UTC)
commit bd69e6a6cd276d0c909988712bafc002ee829ed8
Author: Diego Celix <dcelix gmail com>
Date: Mon Jun 13 01:33:16 2011 +0200
demo-ui_manager: gtk_misc_set_alignment replacing
Replacing the function gtk_misc_set_alignment () with
gtk_widget_set_halign () and gtk_widget_set_valign () in
demos/gtk-demo/ui_manager.c
https://bugzilla.gnome.org/show_bug.cgi?id=650762
demos/gtk-demo/ui_manager.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/demos/gtk-demo/ui_manager.c b/demos/gtk-demo/ui_manager.c
index 76ea246..293fd10 100644
--- a/demos/gtk-demo/ui_manager.c
+++ b/demos/gtk-demo/ui_manager.c
@@ -205,7 +205,8 @@ do_ui_manager (GtkWidget *do_widget)
label = gtk_label_new ("Type\n<alt>\nto start");
gtk_widget_set_size_request (label, 200, 200);
- gtk_misc_set_alignment (GTK_MISC (label), 0.5, 0.5);
+ gtk_widget_set_halign (label, GTK_ALIGN_CENTER);
+ gtk_widget_set_valign (label, GTK_ALIGN_CENTER);
gtk_box_pack_start (GTK_BOX (box1), label, TRUE, TRUE, 0);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]