summaryrefslogtreecommitdiff
path: root/demos/gtk-demo/textview.c
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2020-02-14 20:55:36 +0100
committerBenjamin Otte <otte@redhat.com>2020-02-14 21:18:49 +0100
commita278edab2271c3963ef5f323778300e996702ed3 (patch)
tree397b1829e3d4581900a58a7fd7216930824bcae4 /demos/gtk-demo/textview.c
parentc2bd4bc3cbc298c7cb4e4566e0622c7c201a95b0 (diff)
downloadgtk+-a278edab2271c3963ef5f323778300e996702ed3.tar.gz
window: Remove type argument from gtk_window_new()
Diffstat (limited to 'demos/gtk-demo/textview.c')
-rw-r--r--demos/gtk-demo/textview.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/demos/gtk-demo/textview.c b/demos/gtk-demo/textview.c
index 2a2298a14c..1810251c36 100644
--- a/demos/gtk-demo/textview.c
+++ b/demos/gtk-demo/textview.c
@@ -474,7 +474,7 @@ do_textview (GtkWidget *do_widget)
GtkWidget *sw;
GtkTextBuffer *buffer;
- window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
+ window = gtk_window_new ();
gtk_window_set_display (GTK_WINDOW (window),
gtk_widget_get_display (do_widget));
gtk_window_set_default_size (GTK_WINDOW (window),
@@ -588,7 +588,7 @@ easter_egg_callback (GtkWidget *button,
g_object_unref (buffer);
- window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
+ window = gtk_window_new ();
sw = gtk_scrolled_window_new (NULL, NULL);
gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (sw),
GTK_POLICY_AUTOMATIC,