[gtk+/wip/baedert/box: 22/22] testfilechooserbutton: Remove GtkMisc	API usage
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc: 
- Subject: [gtk+/wip/baedert/box: 22/22] testfilechooserbutton: Remove GtkMisc	API usage
- Date: Mon,  3 Oct 2016 10:43:38 +0000 (UTC)
commit 3f59b58bd694309e14dcf3386b697394ff28743b
Author: Timm Bäder <mail baedert org>
Date:   Mon Oct 3 12:34:30 2016 +0200
    testfilechooserbutton: Remove GtkMisc API usage
 tests/testfilechooserbutton.c |    8 ++------
 1 files changed, 2 insertions(+), 6 deletions(-)
---
diff --git a/tests/testfilechooserbutton.c b/tests/testfilechooserbutton.c
index 6a02d46..ec537aa 100644
--- a/tests/testfilechooserbutton.c
+++ b/tests/testfilechooserbutton.c
@@ -273,9 +273,7 @@ main (int   argc,
 
   label = gtk_label_new_with_mnemonic ("_Open:");
   gtk_size_group_add_widget (GTK_SIZE_GROUP (label_group), label);
-G_GNUC_BEGIN_IGNORE_DEPRECATIONS
-  gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5);
-G_GNUC_END_IGNORE_DEPRECATIONS
+  gtk_label_set_xalign (GTK_LABEL (label), 0.0);
   gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE);
 
   chooser = gtk_file_chooser_button_new ("Select A File - testfilechooserbutton",
@@ -300,9 +298,7 @@ G_GNUC_END_IGNORE_DEPRECATIONS
 
   label = gtk_label_new_with_mnemonic ("Select _Folder:");
   gtk_size_group_add_widget (GTK_SIZE_GROUP (label_group), label);
-G_GNUC_BEGIN_IGNORE_DEPRECATIONS
-  gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5);
-G_GNUC_END_IGNORE_DEPRECATIONS
+  gtk_label_set_xalign (GTK_LABEL (label), 0.0);
   gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE);
 
   chooser = gtk_file_chooser_button_new ("Select A Folder - testfilechooserbutton",
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]