[libgd/wip/ernestask/gtk4: 3/8] tests: drop obsolete API
- From: Ernestas Kulik <ernestask src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgd/wip/ernestask/gtk4: 3/8] tests: drop obsolete API
- Date: Sun, 4 Mar 2018 15:17:42 +0000 (UTC)
commit 8d34ecf5e7330f19c982509f1ccde6cd4b8ddff2
Author: Ernestas Kulik <ernestask gnome org>
Date: Sun Mar 4 15:34:04 2018 +0200
tests: drop obsolete API
gtk_init() now takes no arguments and widgets are visible by default, so
no gtk_widget_show_all().
test-tagged-entry-2.c | 5 +++--
test-tagged-entry.c | 5 +++--
2 files changed, 6 insertions(+), 4 deletions(-)
---
diff --git a/test-tagged-entry-2.c b/test-tagged-entry-2.c
index 465ab83..d0b0165 100644
--- a/test-tagged-entry-2.c
+++ b/test-tagged-entry-2.c
@@ -65,7 +65,7 @@ main (gint argc,
GtkWidget *window;
GdTaggedEntryTag *tag;
- gtk_init (&argc, &argv);
+ gtk_init ();
window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
gtk_widget_set_size_request (window, 640, 600);
@@ -122,7 +122,8 @@ main (gint argc,
G_CALLBACK (on_toggle_tag), entry);
gtk_container_add (GTK_CONTAINER (box), toggle_tag_button);
- gtk_widget_show_all (window);
+ gtk_widget_show (window);
+
gtk_main ();
gtk_widget_destroy (window);
diff --git a/test-tagged-entry.c b/test-tagged-entry.c
index 0f583d9..b26564b 100644
--- a/test-tagged-entry.c
+++ b/test-tagged-entry.c
@@ -58,7 +58,7 @@ main (gint argc,
GtkWidget *window, *box, *entry, *toggle_visible_button, *toggle_tag_button;
GdTaggedEntryTag *tag;
- gtk_init (&argc, &argv);
+ gtk_init ();
window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
gtk_widget_set_size_request (window, 300, 0);
@@ -102,7 +102,8 @@ main (gint argc,
G_CALLBACK (on_toggle_tag), entry);
gtk_container_add (GTK_CONTAINER (box), toggle_tag_button);
- gtk_widget_show_all (window);
+ gtk_widget_show (window);
+
gtk_main ();
gtk_widget_destroy (window);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]