diff options
author | Matthias Clasen <mclasen@redhat.com> | 2020-06-24 11:25:09 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2020-06-24 11:25:09 -0400 |
commit | 386b63b85d803b593142ccb074524693d047a66a (patch) | |
tree | 5731d1acf8d9c453f3513c171de4b6aec55de135 /examples | |
parent | 2cfeb1048c1090b7ce99638bd19feaf41246a8f2 (diff) | |
download | gtk+-386b63b85d803b593142ccb074524693d047a66a.tar.gz |
scrolledwindow: Don't take adjustments in new()
In 99.9% of all cases, these are just NULL, NULL.
So just do away with these arguments, people can
use the setters for the rare cases where they want
the scrolled window to use a different adjustment.
Diffstat (limited to 'examples')
-rw-r--r-- | examples/application10/exampleappwin.c | 2 | ||||
-rw-r--r-- | examples/application3/exampleappwin.c | 2 | ||||
-rw-r--r-- | examples/application4/exampleappwin.c | 2 | ||||
-rw-r--r-- | examples/application5/exampleappwin.c | 2 | ||||
-rw-r--r-- | examples/application6/exampleappwin.c | 2 | ||||
-rw-r--r-- | examples/application7/exampleappwin.c | 2 | ||||
-rw-r--r-- | examples/application8/exampleappwin.c | 2 | ||||
-rw-r--r-- | examples/application9/exampleappwin.c | 2 | ||||
-rw-r--r-- | examples/bp/bloatpad.c | 2 | ||||
-rw-r--r-- | examples/plugman.c | 2 | ||||
-rw-r--r-- | examples/sunny.c | 2 |
11 files changed, 11 insertions, 11 deletions
diff --git a/examples/application10/exampleappwin.c b/examples/application10/exampleappwin.c index ba0ffd94b6..d5f4d43e31 100644 --- a/examples/application10/exampleappwin.c +++ b/examples/application10/exampleappwin.c @@ -258,7 +258,7 @@ example_app_window_open (ExampleAppWindow *win, basename = g_file_get_basename (file); - scrolled = gtk_scrolled_window_new (NULL, NULL); + scrolled = gtk_scrolled_window_new (); gtk_widget_set_hexpand (scrolled, TRUE); gtk_widget_set_vexpand (scrolled, TRUE); view = gtk_text_view_new (); diff --git a/examples/application3/exampleappwin.c b/examples/application3/exampleappwin.c index 9ed0b88452..3925fa4689 100644 --- a/examples/application3/exampleappwin.c +++ b/examples/application3/exampleappwin.c @@ -43,7 +43,7 @@ example_app_window_open (ExampleAppWindow *win, basename = g_file_get_basename (file); - scrolled = gtk_scrolled_window_new (NULL, NULL); + scrolled = gtk_scrolled_window_new (); gtk_widget_set_hexpand (scrolled, TRUE); gtk_widget_set_vexpand (scrolled, TRUE); view = gtk_text_view_new (); diff --git a/examples/application4/exampleappwin.c b/examples/application4/exampleappwin.c index bcc72807af..97f8209cd3 100644 --- a/examples/application4/exampleappwin.c +++ b/examples/application4/exampleappwin.c @@ -53,7 +53,7 @@ example_app_window_open (ExampleAppWindow *win, basename = g_file_get_basename (file); - scrolled = gtk_scrolled_window_new (NULL, NULL); + scrolled = gtk_scrolled_window_new (); gtk_widget_set_hexpand (scrolled, TRUE); gtk_widget_set_vexpand (scrolled, TRUE); view = gtk_text_view_new (); diff --git a/examples/application5/exampleappwin.c b/examples/application5/exampleappwin.c index 5425b44a4d..2fac229a10 100644 --- a/examples/application5/exampleappwin.c +++ b/examples/application5/exampleappwin.c @@ -76,7 +76,7 @@ example_app_window_open (ExampleAppWindow *win, basename = g_file_get_basename (file); - scrolled = gtk_scrolled_window_new (NULL, NULL); + scrolled = gtk_scrolled_window_new (); gtk_widget_set_hexpand (scrolled, TRUE); gtk_widget_set_vexpand (scrolled, TRUE); view = gtk_text_view_new (); diff --git a/examples/application6/exampleappwin.c b/examples/application6/exampleappwin.c index 7f332181ea..5eacf3d04c 100644 --- a/examples/application6/exampleappwin.c +++ b/examples/application6/exampleappwin.c @@ -77,7 +77,7 @@ example_app_window_open (ExampleAppWindow *win, basename = g_file_get_basename (file); - scrolled = gtk_scrolled_window_new (NULL, NULL); + scrolled = gtk_scrolled_window_new (); gtk_widget_set_hexpand (scrolled, TRUE); gtk_widget_set_vexpand (scrolled, TRUE); view = gtk_text_view_new (); diff --git a/examples/application7/exampleappwin.c b/examples/application7/exampleappwin.c index cea8941dbc..67db00d573 100644 --- a/examples/application7/exampleappwin.c +++ b/examples/application7/exampleappwin.c @@ -130,7 +130,7 @@ example_app_window_open (ExampleAppWindow *win, basename = g_file_get_basename (file); - scrolled = gtk_scrolled_window_new (NULL, NULL); + scrolled = gtk_scrolled_window_new (); gtk_widget_set_hexpand (scrolled, TRUE); gtk_widget_set_vexpand (scrolled, TRUE); view = gtk_text_view_new (); diff --git a/examples/application8/exampleappwin.c b/examples/application8/exampleappwin.c index f30895b035..9a5eb2818c 100644 --- a/examples/application8/exampleappwin.c +++ b/examples/application8/exampleappwin.c @@ -222,7 +222,7 @@ example_app_window_open (ExampleAppWindow *win, basename = g_file_get_basename (file); - scrolled = gtk_scrolled_window_new (NULL, NULL); + scrolled = gtk_scrolled_window_new (); gtk_widget_set_hexpand (scrolled, TRUE); gtk_widget_set_vexpand (scrolled, TRUE); view = gtk_text_view_new (); diff --git a/examples/application9/exampleappwin.c b/examples/application9/exampleappwin.c index c77a124f3d..30c281ae93 100644 --- a/examples/application9/exampleappwin.c +++ b/examples/application9/exampleappwin.c @@ -256,7 +256,7 @@ example_app_window_open (ExampleAppWindow *win, basename = g_file_get_basename (file); - scrolled = gtk_scrolled_window_new (NULL, NULL); + scrolled = gtk_scrolled_window_new (); gtk_widget_set_hexpand (scrolled, TRUE); gtk_widget_set_vexpand (scrolled, TRUE); view = gtk_text_view_new (); diff --git a/examples/bp/bloatpad.c b/examples/bp/bloatpad.c index 21fdfc98d9..ecaa9bc125 100644 --- a/examples/bp/bloatpad.c +++ b/examples/bp/bloatpad.c @@ -252,7 +252,7 @@ new_window (GApplication *app, gtk_grid_attach (GTK_GRID (grid), toolbar, 0, 0, 1, 1); - scrolled = gtk_scrolled_window_new (NULL, NULL); + scrolled = gtk_scrolled_window_new (); gtk_widget_set_hexpand (scrolled, TRUE); gtk_widget_set_vexpand (scrolled, TRUE); view = gtk_text_view_new (); diff --git a/examples/plugman.c b/examples/plugman.c index 9e9c683242..fa7359ab26 100644 --- a/examples/plugman.c +++ b/examples/plugman.c @@ -86,7 +86,7 @@ new_window (GApplication *app, grid = gtk_grid_new (); gtk_window_set_child (GTK_WINDOW (window), grid); - scrolled = gtk_scrolled_window_new (NULL, NULL); + scrolled = gtk_scrolled_window_new (); gtk_widget_set_hexpand (scrolled, TRUE); gtk_widget_set_vexpand (scrolled, TRUE); view = gtk_text_view_new (); diff --git a/examples/sunny.c b/examples/sunny.c index 43757023a0..5d40018217 100644 --- a/examples/sunny.c +++ b/examples/sunny.c @@ -21,7 +21,7 @@ new_window (GApplication *app, overlay = gtk_overlay_new (); gtk_window_set_child (GTK_WINDOW (window), overlay); - scrolled = gtk_scrolled_window_new (NULL, NULL); + scrolled = gtk_scrolled_window_new (); gtk_widget_set_hexpand (scrolled, TRUE); gtk_widget_set_vexpand (scrolled, TRUE); view = gtk_text_view_new (); |