Don't use gtk_scrolled_window_add_with_viewport() internally

Just use gtk_container_add() instead.

https://bugzilla.gnome.org/show_bug.cgi?id=693015
This commit is contained in:
Cosimo Cecchi 2013-02-01 16:08:09 +01:00 committed by Matthias Clasen
parent 9efa28591c
commit 7c1c7cb728
2 changed files with 3 additions and 5 deletions

View File

@ -2388,7 +2388,7 @@ create_credits_page (GtkAboutDialog *about)
gtk_grid_set_row_spacing (GTK_GRID (grid), 2);
gtk_widget_set_halign (grid, GTK_ALIGN_CENTER);
gtk_widget_set_valign (grid, GTK_ALIGN_START);
gtk_scrolled_window_add_with_viewport (GTK_SCROLLED_WINDOW (sw), grid);
gtk_container_add (GTK_CONTAINER (sw), grid);
gtk_style_context_add_class (gtk_widget_get_style_context (gtk_bin_get_child (GTK_BIN (sw))),
GTK_STYLE_CLASS_VIEW);

View File

@ -3712,8 +3712,7 @@ create_optional_page (GtkPrintUnixDialog *dialog,
gtk_container_set_border_width (GTK_CONTAINER (table), 12);
gtk_widget_show (table);
gtk_scrolled_window_add_with_viewport (GTK_SCROLLED_WINDOW (scrolled),
table);
gtk_container_add (GTK_CONTAINER (scrolled), table);
gtk_viewport_set_shadow_type (GTK_VIEWPORT (gtk_bin_get_child (GTK_BIN (scrolled))),
GTK_SHADOW_NONE);
@ -3743,8 +3742,7 @@ create_advanced_page (GtkPrintUnixDialog *dialog)
gtk_container_set_border_width (GTK_CONTAINER (main_vbox), 12);
gtk_widget_show (main_vbox);
gtk_scrolled_window_add_with_viewport (GTK_SCROLLED_WINDOW (scrolled),
main_vbox);
gtk_container_add (GTK_CONTAINER (scrolled), main_vbox);
gtk_viewport_set_shadow_type (GTK_VIEWPORT (gtk_bin_get_child (GTK_BIN (scrolled))),
GTK_SHADOW_NONE);