summaryrefslogtreecommitdiff
path: root/gtk
diff options
context:
space:
mode:
authorTimm Bäder <mail@baedert.org>2017-01-19 10:02:04 +0100
committerTimm Bäder <mail@baedert.org>2017-01-20 21:37:04 +0100
commitea897c6df44c37f573b7ed8e81ad87a9fd5b1009 (patch)
tree02726659b57530b21a5e1f8625ddd6f381bb8824 /gtk
parent13b001b77ca3907b4ff1246208755478421a7b32 (diff)
downloadgtk+-ea897c6df44c37f573b7ed8e81ad87a9fd5b1009.tar.gz
Remove gtk_widget_show_all
Diffstat (limited to 'gtk')
-rw-r--r--gtk/gtkapplicationwindow.c1
-rw-r--r--gtk/gtkcellrendereraccel.c1
-rw-r--r--gtk/gtkcolorchooserwidget.c4
-rw-r--r--gtk/gtkcolorswatch.c1
-rw-r--r--gtk/gtkdialog.c2
-rw-r--r--gtk/gtkentrycompletion.c2
-rw-r--r--gtk/gtkfilechooserdialog.c1
-rw-r--r--gtk/gtkfilechooserwidget.c1
-rw-r--r--gtk/gtkheaderbar.c4
-rw-r--r--gtk/gtklistbox.h7
-rw-r--r--gtk/gtkmain.c4
-rw-r--r--gtk/gtkmenubutton.c2
-rw-r--r--gtk/gtkmenusectionbox.c2
-rw-r--r--gtk/gtkmenutoolbutton.c3
-rw-r--r--gtk/gtkmountoperation.c8
-rw-r--r--gtk/gtkpathbar.c5
-rw-r--r--gtk/gtkplacessidebar.c6
-rw-r--r--gtk/gtkplacesview.c7
-rw-r--r--gtk/gtkprintbackend.c2
-rw-r--r--gtk/gtkradiobutton.c2
-rw-r--r--gtk/gtkrecentchoosermenu.c1
-rw-r--r--gtk/gtksidebarrow.c2
-rw-r--r--gtk/gtkspinbutton.c4
-rw-r--r--gtk/gtkstackswitcher.c1
-rw-r--r--gtk/gtktogglebutton.c2
-rw-r--r--gtk/gtktoolbar.c2
-rw-r--r--gtk/gtktoolitemgroup.c1
-rw-r--r--gtk/gtkwidget.c17
-rw-r--r--gtk/gtkwidget.h2
-rw-r--r--gtk/gtkwindow.c1
-rw-r--r--gtk/inspector/action-editor.c4
-rw-r--r--gtk/inspector/general.c2
-rw-r--r--gtk/inspector/prop-editor.c5
-rw-r--r--gtk/inspector/size-groups.c2
34 files changed, 24 insertions, 87 deletions
diff --git a/gtk/gtkapplicationwindow.c b/gtk/gtkapplicationwindow.c
index a01b4eabb3..eab010764c 100644
--- a/gtk/gtkapplicationwindow.c
+++ b/gtk/gtkapplicationwindow.c
@@ -266,7 +266,6 @@ gtk_application_window_update_menubar (GtkApplicationWindow *window)
window->priv->menubar = gtk_menu_bar_new_from_model (G_MENU_MODEL (combined));
gtk_widget_set_parent (window->priv->menubar, GTK_WIDGET (window));
- gtk_widget_show_all (window->priv->menubar);
g_object_unref (combined);
gtk_widget_queue_resize (GTK_WIDGET (window));
diff --git a/gtk/gtkcellrendereraccel.c b/gtk/gtkcellrendereraccel.c
index e8fce86053..b08a0259cc 100644
--- a/gtk/gtkcellrendereraccel.c
+++ b/gtk/gtkcellrendereraccel.c
@@ -489,7 +489,6 @@ gtk_cell_renderer_accel_start_editing (GtkCellRenderer *cell,
gtk_container_add (GTK_CONTAINER (eventbox), label);
- gtk_widget_show_all (eventbox);
gtk_grab_add (eventbox);
return GTK_CELL_EDITABLE (eventbox);
diff --git a/gtk/gtkcolorchooserwidget.c b/gtk/gtkcolorchooserwidget.c
index 00de9dc121..c7e8e671d9 100644
--- a/gtk/gtkcolorchooserwidget.c
+++ b/gtk/gtkcolorchooserwidget.c
@@ -414,8 +414,6 @@ add_palette (GtkColorChooserWidget *cc,
gtk_grid_attach (GTK_GRID (grid), p, line, pos, 1, 1);
}
}
-
- gtk_widget_show_all (grid);
}
static void
@@ -595,9 +593,7 @@ gtk_color_chooser_widget_init (GtkColorChooserWidget *cc)
if (selected)
gtk_color_chooser_set_rgba (GTK_COLOR_CHOOSER (cc), &color);
- gtk_widget_show_all (GTK_WIDGET (cc));
gtk_widget_hide (GTK_WIDGET (cc->priv->editor));
- gtk_widget_hide (GTK_WIDGET (cc));
gtk_widget_set_no_show_all (cc->priv->palette, TRUE);
gtk_widget_set_no_show_all (cc->priv->editor, TRUE);
diff --git a/gtk/gtkcolorswatch.c b/gtk/gtkcolorswatch.c
index 7a4c5e36ca..d3465b3169 100644
--- a/gtk/gtkcolorswatch.c
+++ b/gtk/gtkcolorswatch.c
@@ -376,7 +376,6 @@ do_popup (GtkColorSwatch *swatch)
g_signal_connect_swapped (item, "clicked",
G_CALLBACK (emit_customize), swatch);
gtk_container_add (GTK_CONTAINER (box), item);
- gtk_widget_show_all (box);
}
gtk_popover_popup (GTK_POPOVER (swatch->priv->popover));
diff --git a/gtk/gtkdialog.c b/gtk/gtkdialog.c
index a554cc9e84..589693a7a6 100644
--- a/gtk/gtkdialog.c
+++ b/gtk/gtkdialog.c
@@ -126,7 +126,7 @@
* // Add the label, and show everything we’ve added
*
* gtk_container_add (GTK_CONTAINER (content_area), label);
- * gtk_widget_show_all (dialog);
+ * gtk_widget_show (dialog);
* }
* ]|
*
diff --git a/gtk/gtkentrycompletion.c b/gtk/gtkentrycompletion.c
index 54c598492b..ed6837dc83 100644
--- a/gtk/gtkentrycompletion.c
+++ b/gtk/gtkentrycompletion.c
@@ -1636,7 +1636,7 @@ gtk_entry_completion_popup (GtkEntryCompletion *completion)
completion->priv->ignore_enter = TRUE;
- gtk_widget_show_all (completion->priv->vbox);
+ gtk_widget_show (completion->priv->vbox);
/* default on no match */
completion->priv->current_selected = -1;
diff --git a/gtk/gtkfilechooserdialog.c b/gtk/gtkfilechooserdialog.c
index 59026b5c67..93bdd03661 100644
--- a/gtk/gtkfilechooserdialog.c
+++ b/gtk/gtkfilechooserdialog.c
@@ -541,7 +541,6 @@ setup_save_entry (GtkFileChooserDialog *dialog)
gtk_label_set_mnemonic_widget (GTK_LABEL (label), entry);
gtk_container_add (GTK_CONTAINER (box), label);
gtk_container_add (GTK_CONTAINER (box), entry);
- gtk_widget_show_all (box);
gtk_header_bar_set_custom_title (GTK_HEADER_BAR (header), box);
gtk_file_chooser_widget_set_save_entry (GTK_FILE_CHOOSER_WIDGET (dialog->priv->widget), entry);
diff --git a/gtk/gtkfilechooserwidget.c b/gtk/gtkfilechooserwidget.c
index 4f5af5b67f..77727be3b4 100644
--- a/gtk/gtkfilechooserwidget.c
+++ b/gtk/gtkfilechooserwidget.c
@@ -8726,7 +8726,6 @@ gtk_file_chooser_widget_add_choice (GtkFileChooser *chooser,
widget = check;
}
- gtk_widget_show_all (widget);
gtk_container_add (GTK_CONTAINER (priv->choice_box), widget);
}
diff --git a/gtk/gtkheaderbar.c b/gtk/gtkheaderbar.c
index 985a6f9e29..a90d6dfafa 100644
--- a/gtk/gtkheaderbar.c
+++ b/gtk/gtkheaderbar.c
@@ -379,7 +379,6 @@ _gtk_header_bar_update_window_buttons (GtkHeaderBar *bar)
image = gtk_image_new ();
gtk_container_add (GTK_CONTAINER (button), image);
gtk_widget_set_can_focus (button, FALSE);
- gtk_widget_show_all (button);
accessible = gtk_widget_get_accessible (button);
if (GTK_IS_ACCESSIBLE (accessible))
atk_object_set_name (accessible, _("Application menu"));
@@ -399,7 +398,6 @@ _gtk_header_bar_update_window_buttons (GtkHeaderBar *bar)
g_object_set (image, "use-fallback", TRUE, NULL);
gtk_container_add (GTK_CONTAINER (button), image);
gtk_widget_set_can_focus (button, FALSE);
- gtk_widget_show_all (button);
g_signal_connect_swapped (button, "clicked",
G_CALLBACK (gtk_window_iconify), window);
accessible = gtk_widget_get_accessible (button);
@@ -422,7 +420,6 @@ _gtk_header_bar_update_window_buttons (GtkHeaderBar *bar)
g_object_set (image, "use-fallback", TRUE, NULL);
gtk_container_add (GTK_CONTAINER (button), image);
gtk_widget_set_can_focus (button, FALSE);
- gtk_widget_show_all (button);
g_signal_connect_swapped (button, "clicked",
G_CALLBACK (_gtk_window_toggle_maximized), window);
accessible = gtk_widget_get_accessible (button);
@@ -440,7 +437,6 @@ _gtk_header_bar_update_window_buttons (GtkHeaderBar *bar)
g_object_set (image, "use-fallback", TRUE, NULL);
gtk_container_add (GTK_CONTAINER (button), image);
gtk_widget_set_can_focus (button, FALSE);
- gtk_widget_show_all (button);
g_signal_connect_swapped (button, "clicked",
G_CALLBACK (gtk_window_close), window);
accessible = gtk_widget_get_accessible (button);
diff --git a/gtk/gtklistbox.h b/gtk/gtklistbox.h
index e796b981ab..72ee8df0a2 100644
--- a/gtk/gtklistbox.h
+++ b/gtk/gtklistbox.h
@@ -103,7 +103,7 @@ struct _GtkListBoxRow
/**
* GtkListBoxRowClass:
* @parent_class: The parent class.
- * @activate:
+ * @activate:
*/
struct _GtkListBoxRowClass
{
@@ -177,11 +177,6 @@ typedef void (*GtkListBoxUpdateHeaderFunc) (GtkListBoxRow *row,
* Called for list boxes that are bound to a #GListModel with
* gtk_list_box_bind_model() for each item that gets added to the model.
*
- * Versions of GTK+ prior to 3.18 called gtk_widget_show_all() on the rows
- * created by the GtkListBoxCreateWidgetFunc, but this forced all widgets
- * inside the row to be shown, and is no longer the case. Applications should
- * be updated to show the desired row widgets.
- *
* Returns: (transfer full): a #GtkWidget that represents @item
*
* Since: 3.16
diff --git a/gtk/gtkmain.c b/gtk/gtkmain.c
index a64e98f6a6..69d71f8088 100644
--- a/gtk/gtkmain.c
+++ b/gtk/gtkmain.c
@@ -74,7 +74,7 @@
* ...
*
* // Show the application window
- * gtk_widget_show_all (mainwin);
+ * gtk_widget_show (mainwin);
*
* // Enter the main event loop, and wait for user interaction
* gtk_main ();
@@ -1653,7 +1653,7 @@ gtk_main_do_event (GdkEvent *event)
* win);
* gtk_container_add (GTK_CONTAINER (win), but);
*
- * gtk_widget_show_all (win);
+ * gtk_widget_show (win);
*
* gtk_main ();
*
diff --git a/gtk/gtkmenubutton.c b/gtk/gtkmenubutton.c
index 4534b4de5a..ddb17895d1 100644
--- a/gtk/gtkmenubutton.c
+++ b/gtk/gtkmenubutton.c
@@ -834,7 +834,7 @@ gtk_menu_button_set_menu_model (GtkMenuButton *menu_button,
GtkWidget *menu;
menu = gtk_menu_new_from_model (menu_model);
- gtk_widget_show_all (menu);
+ gtk_widget_show (menu);
gtk_menu_button_set_popup (menu_button, menu);
}
}
diff --git a/gtk/gtkmenusectionbox.c b/gtk/gtkmenusectionbox.c
index 77db0ccf88..b5608e94c3 100644
--- a/gtk/gtkmenusectionbox.c
+++ b/gtk/gtkmenusectionbox.c
@@ -533,8 +533,6 @@ gtk_menu_section_box_new_section (GtkMenuTrackerItem *item,
separator = gtk_separator_new (GTK_ORIENTATION_HORIZONTAL);
gtk_widget_set_valign (separator, GTK_ALIGN_CENTER);
gtk_box_pack_start (GTK_BOX (box->separator), separator, TRUE, TRUE);
-
- gtk_widget_show_all (box->separator);
}
else
{
diff --git a/gtk/gtkmenutoolbutton.c b/gtk/gtkmenutoolbutton.c
index 847d893a3c..4f498c57a6 100644
--- a/gtk/gtkmenutoolbutton.c
+++ b/gtk/gtkmenutoolbutton.c
@@ -167,7 +167,6 @@ gtk_menu_tool_button_construct_contents (GtkMenuToolButton *button)
priv->box = box;
gtk_container_add (GTK_CONTAINER (button), priv->box);
- gtk_widget_show_all (priv->box);
gtk_widget_queue_resize (GTK_WIDGET (button));
}
@@ -292,8 +291,6 @@ gtk_menu_tool_button_init (GtkMenuToolButton *button)
/* the arrow button is insentive until we set a menu */
gtk_widget_set_sensitive (arrow_button, FALSE);
- gtk_widget_show_all (box);
-
gtk_container_add (GTK_CONTAINER (button), box);
gtk_menu_button_set_align_widget (GTK_MENU_BUTTON (arrow_button),
GTK_WIDGET (button));
diff --git a/gtk/gtkmountoperation.c b/gtk/gtkmountoperation.c
index d4f55d9478..8119094bcf 100644
--- a/gtk/gtkmountoperation.c
+++ b/gtk/gtkmountoperation.c
@@ -724,7 +724,7 @@ gtk_mount_operation_ask_password_do_gtk (GtkMountOperation *operation,
else if (priv->screen)
gtk_window_set_screen (GTK_WINDOW (dialog), priv->screen);
- gtk_widget_show_all (GTK_WIDGET (dialog));
+ gtk_widget_show (GTK_WIDGET (dialog));
g_object_ref (operation);
}
@@ -1270,7 +1270,7 @@ on_end_process_activated (GtkMenuItem *item,
"%s",
error->message);
- gtk_widget_show_all (dialog);
+ gtk_widget_show (dialog);
response = gtk_dialog_run (GTK_DIALOG (dialog));
/* GTK_RESPONSE_NONE means the dialog were programmatically destroy, e.g. that
@@ -1304,7 +1304,7 @@ do_popup_menu_for_process_tree_view (GtkWidget *widget,
G_CALLBACK (on_end_process_activated),
op);
gtk_menu_shell_append (GTK_MENU_SHELL (menu), item);
- gtk_widget_show_all (menu);
+ gtk_widget_show (menu);
if (event && gdk_event_triggers_context_menu (event))
{
@@ -1591,7 +1591,7 @@ gtk_mount_operation_show_processes_do_gtk (GtkMountOperation *op,
if (dialog != NULL)
{
- gtk_widget_show_all (dialog);
+ gtk_widget_show (dialog);
}
}
diff --git a/gtk/gtkpathbar.c b/gtk/gtkpathbar.c
index fdb422351e..b3f102f253 100644
--- a/gtk/gtkpathbar.c
+++ b/gtk/gtkpathbar.c
@@ -702,7 +702,7 @@ gtk_path_bar_size_allocate (GtkWidget *widget,
gtk_widget_size_allocate (path_bar->priv->up_slider_button, &child_allocation);
gtk_widget_set_child_visible (path_bar->priv->up_slider_button, TRUE);
- gtk_widget_show_all (path_bar->priv->up_slider_button);
+ gtk_widget_show (path_bar->priv->up_slider_button);
if (direction == GTK_TEXT_DIR_LTR)
down_slider_offset += path_bar->priv->slider_width;
@@ -720,7 +720,7 @@ gtk_path_bar_size_allocate (GtkWidget *widget,
gtk_widget_size_allocate (path_bar->priv->down_slider_button, &child_allocation);
gtk_widget_set_child_visible (path_bar->priv->down_slider_button, TRUE);
- gtk_widget_show_all (path_bar->priv->down_slider_button);
+ gtk_widget_show (path_bar->priv->down_slider_button);
gtk_path_bar_update_slider_buttons (path_bar);
}
else
@@ -1494,7 +1494,6 @@ make_directory_button (GtkPathBar *path_bar,
button_data->file_is_hidden = file_is_hidden;
gtk_container_add (GTK_CONTAINER (button_data->button), child);
- gtk_widget_show_all (button_data->button);
gtk_path_bar_update_button_appearance (path_bar, button_data, current_dir);
diff --git a/gtk/gtkplacessidebar.c b/gtk/gtkplacessidebar.c
index 07a7250017..0665ae1375 100644
--- a/gtk/gtkplacessidebar.c
+++ b/gtk/gtkplacessidebar.c
@@ -473,7 +473,6 @@ add_place (GtkPlacesSidebar *sidebar,
G_CALLBACK (on_button_release_event), row);
gtk_container_add (GTK_CONTAINER (sidebar->list_box), GTK_WIDGET (row));
- gtk_widget_show_all (row);
return row;
}
@@ -1334,7 +1333,7 @@ update_places (GtkPlacesSidebar *sidebar)
g_object_unref (icon);
}
- gtk_widget_show_all (GTK_WIDGET (sidebar));
+ gtk_widget_show (GTK_WIDGET (sidebar));
/* We want this hidden by default, but need to do it after the show_all call */
gtk_sidebar_row_hide (GTK_SIDEBAR_ROW (sidebar->new_bookmark_row), TRUE);
@@ -1575,7 +1574,7 @@ drag_begin_callback (GtkWidget *widget,
gtk_widget_set_size_request (window, allocation.width, allocation.height);
gtk_container_add (GTK_CONTAINER (window), drag_widget);
- gtk_widget_show_all (window);
+ gtk_widget_show (window);
gtk_widget_set_opacity (window, 0.8);
gtk_drag_set_icon_widget (context,
@@ -2506,7 +2505,6 @@ create_rename_popover (GtkPlacesSidebar *sidebar)
gtk_grid_attach (GTK_GRID (grid), entry, 0, 1, 1, 1);
gtk_grid_attach (GTK_GRID (grid), button,1, 1, 1, 1);
gtk_grid_attach (GTK_GRID (grid), error, 0, 2, 2, 1);
- gtk_widget_show_all (grid);
gtk_popover_set_default_widget (GTK_POPOVER (popover), button);
sidebar->rename_popover = popover;
diff --git a/gtk/gtkplacesview.c b/gtk/gtkplacesview.c
index 2275809fba..fe2aade66a 100644
--- a/gtk/gtkplacesview.c
+++ b/gtk/gtkplacesview.c
@@ -613,8 +613,6 @@ populate_servers (GtkPlacesView *view)
G_CALLBACK (on_remove_server_button_clicked),
data);
- gtk_widget_show_all (row);
-
g_free (name);
}
@@ -886,14 +884,14 @@ update_network_state (GtkPlacesView *view)
* otherwise just show the spinner in the header */
if (!has_networks (view))
{
- gtk_widget_show_all (priv->network_placeholder);
+ gtk_widget_show (priv->network_placeholder);
gtk_label_set_text (GTK_LABEL (priv->network_placeholder_label),
_("Searching for network locations"));
}
}
else if (!has_networks (view))
{
- gtk_widget_show_all (priv->network_placeholder);
+ gtk_widget_show (priv->network_placeholder);
gtk_label_set_text (GTK_LABEL (priv->network_placeholder_label),
_("No network locations found"));
}
@@ -2037,7 +2035,6 @@ listbox_header_func (GtkListBoxRow *row,
}
gtk_container_add (GTK_CONTAINER (header), separator);
- gtk_widget_show_all (header);
gtk_list_box_row_set_header (row, header);
diff --git a/gtk/gtkprintbackend.c b/gtk/gtkprintbackend.c
index 79581ac3ba..5440fd6ba9 100644
--- a/gtk/gtkprintbackend.c
+++ b/gtk/gtkprintbackend.c
@@ -852,7 +852,7 @@ request_password (GtkPrintBackend *backend,
g_signal_connect (G_OBJECT (dialog), "response",
G_CALLBACK (password_dialog_response), backend);
- gtk_widget_show_all (dialog);
+ gtk_widget_show (dialog);
}
void
diff --git a/gtk/gtkradiobutton.c b/gtk/gtkradiobutton.c
index d38fe95d91..b351227d6b 100644
--- a/gtk/gtkradiobutton.c
+++ b/gtk/gtkradiobutton.c
@@ -117,7 +117,7 @@
* gtk_box_pack_start (GTK_BOX (box), radio1, TRUE, TRUE, 2);
* gtk_box_pack_start (GTK_BOX (box), radio2, TRUE, TRUE, 2);
* gtk_container_add (GTK_CONTAINER (window), box);
- * gtk_widget_show_all (window);
+ * gtk_widget_show (window);
* return;
* }
* ]|
diff --git a/gtk/gtkrecentchoosermenu.c b/gtk/gtkrecentchoosermenu.c
index 82f59be4d8..4d30091917 100644
--- a/gtk/gtkrecentchoosermenu.c
+++ b/gtk/gtkrecentchoosermenu.c
@@ -828,7 +828,6 @@ gtk_recent_chooser_menu_create_item (GtkRecentChooserMenu *menu,
item = gtk_menu_item_new ();
gtk_container_add (GTK_CONTAINER (box), label);
- gtk_widget_show_all (box);
gtk_container_add (GTK_CONTAINER (item), box);
g_signal_connect (item, "activate",
diff --git a/gtk/gtksidebarrow.c b/gtk/gtksidebarrow.c
index f8e25b44ab..d60ef4db62 100644
--- a/gtk/gtksidebarrow.c
+++ b/gtk/gtksidebarrow.c
@@ -261,7 +261,7 @@ on_child_revealed (GObject *self,
void
gtk_sidebar_row_reveal (GtkSidebarRow *self)
{
- gtk_widget_show_all (GTK_WIDGET (self));
+ gtk_widget_show (GTK_WIDGET (self));
gtk_revealer_set_reveal_child (GTK_REVEALER (self->revealer), TRUE);
}
diff --git a/gtk/gtkspinbutton.c b/gtk/gtkspinbutton.c
index 4fbb655ec6..c0babe6dc4 100644
--- a/gtk/gtkspinbutton.c
+++ b/gtk/gtkspinbutton.c
@@ -139,7 +139,7 @@
* button = gtk_spin_button_new (adjustment, 1.0, 0);
* gtk_container_add (GTK_CONTAINER (window), button);
*
- * gtk_widget_show_all (window);
+ * gtk_widget_show (window);
* }
* ]|
*
@@ -170,7 +170,7 @@
* button = gtk_spin_button_new (adjustment, 0.001, 3);
* gtk_container_add (GTK_CONTAINER (window), button);
*
- * gtk_widget_show_all (window);
+ * gtk_widget_show (window);
* }
* ]|
*/
diff --git a/gtk/gtkstackswitcher.c b/gtk/gtkstackswitcher.c
index fb8a9a95d6..723900ed7f 100644
--- a/gtk/gtkstackswitcher.c
+++ b/gtk/gtkstackswitcher.c
@@ -154,7 +154,6 @@ rebuild_child (GtkWidget *self,
if (button_child)
{
gtk_widget_set_halign (GTK_WIDGET (button_child), GTK_ALIGN_CENTER);
- gtk_widget_show_all (button_child);
gtk_container_add (GTK_CONTAINER (self), button_child);
}
}
diff --git a/gtk/gtktogglebutton.c b/gtk/gtktogglebutton.c
index cb6394c46d..3a20c778e3 100644
--- a/gtk/gtktogglebutton.c
+++ b/gtk/gtktogglebutton.c
@@ -96,7 +96,7 @@
* gtk_box_pack_start (GTK_BOX (content_area),
* toggle2, FALSE, FALSE, 2);
*
- * gtk_widget_show_all (dialog);
+ * gtk_widget_show (dialog);
* }
* ]|
*/
diff --git a/gtk/gtktoolbar.c b/gtk/gtktoolbar.c
index c8000779a3..8e8d9e0c0d 100644
--- a/gtk/gtktoolbar.c
+++ b/gtk/gtktoolbar.c
@@ -2473,7 +2473,7 @@ show_menu (GtkToolbar *toolbar,
rebuild_menu (toolbar);
- gtk_widget_show_all (GTK_WIDGET (priv->menu));
+ gtk_widget_show (GTK_WIDGET (priv->menu));
switch (priv->orientation)
{
diff --git a/gtk/gtktoolitemgroup.c b/gtk/gtktoolitemgroup.c
index ffdcd9af25..75c128e428 100644
--- a/gtk/gtktoolitemgroup.c
+++ b/gtk/gtktoolitemgroup.c
@@ -406,7 +406,6 @@ gtk_tool_item_group_init (GtkToolItemGroup *group)
frame = gtk_frame_new (NULL);
gtk_frame_set_shadow_type (GTK_FRAME (frame), GTK_SHADOW_NONE);
gtk_container_add (GTK_CONTAINER (frame), priv->label_widget);
- gtk_widget_show_all (frame);
priv->header = gtk_button_new ();
g_object_ref_sink (priv->header);
diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c
index 00188ec662..7811a0ab40 100644
--- a/gtk/gtkwidget.c
+++ b/gtk/gtkwidget.c
@@ -4194,9 +4194,7 @@ gtk_widget_destroyed (GtkWidget *widget,
* @widget: a #GtkWidget
*
* Flags a widget to be displayed. Any widget that isn’t shown will
- * not appear on the screen. If you want to show all the widgets in a
- * container, it’s easier to call gtk_widget_show_all() on the
- * container, instead of individually showing the widgets.
+ * not appear on the screen.
*
* Remember that you have to show the containers containing a widget,
* in addition to the widget itself, before it will appear onscreen.
@@ -4385,19 +4383,6 @@ gtk_widget_hide_on_delete (GtkWidget *widget)
}
/**
- * gtk_widget_show_all:
- * @widget: a #GtkWidget
- *
- * Recursively shows a widget, and any child widgets (if the widget is
- * a container).
- **/
-void
-gtk_widget_show_all (GtkWidget *widget)
-{
- gtk_widget_show (widget);
-}
-
-/**
* gtk_widget_map:
* @widget: a #GtkWidget
*
diff --git a/gtk/gtkwidget.h b/gtk/gtkwidget.h
index 67622c1944..8e6e1dd3b6 100644
--- a/gtk/gtkwidget.h
+++ b/gtk/gtkwidget.h
@@ -509,8 +509,6 @@ void gtk_widget_hide (GtkWidget *widget);
GDK_AVAILABLE_IN_ALL
void gtk_widget_show_now (GtkWidget *widget);
GDK_AVAILABLE_IN_ALL
-void gtk_widget_show_all (GtkWidget *widget);
-GDK_AVAILABLE_IN_ALL
void gtk_widget_set_no_show_all (GtkWidget *widget,
gboolean no_show_all);
GDK_AVAILABLE_IN_ALL
diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c
index ee9798ec9b..66e804ce06 100644
--- a/gtk/gtkwindow.c
+++ b/gtk/gtkwindow.c
@@ -5869,7 +5869,6 @@ create_decoration (GtkWidget *widget)
{
priv->titlebar = create_titlebar (window);
gtk_widget_set_parent (priv->titlebar, widget);
- gtk_widget_show_all (priv->titlebar);
priv->title_box = priv->titlebar;
}
diff --git a/gtk/inspector/action-editor.c b/gtk/inspector/action-editor.c
index d1fb99227a..a9eff81274 100644
--- a/gtk/inspector/action-editor.c
+++ b/gtk/inspector/action-editor.c
@@ -115,8 +115,6 @@ variant_editor_new (const GVariantType *type,
d->editor = editor;
g_object_set_data_full (G_OBJECT (editor), "callback", d, g_free);
- gtk_widget_show_all (editor);
-
return editor;
}
@@ -312,8 +310,6 @@ constructed (GObject *object)
G_CALLBACK (action_enabled_changed_cb), r);
g_signal_connect (r->priv->group, "action-state-changed",
G_CALLBACK (action_state_changed_cb), r);
-
- gtk_widget_show_all (GTK_WIDGET (r));
}
static void
diff --git a/gtk/inspector/general.c b/gtk/inspector/general.c
index 04df6500e6..6a7bd4e3a0 100644
--- a/gtk/inspector/general.c
+++ b/gtk/inspector/general.c
@@ -149,7 +149,6 @@ add_check_row (GtkInspectorGeneral *gen,
row = gtk_list_box_row_new ();
gtk_container_add (GTK_CONTAINER (row), box);
gtk_list_box_row_set_activatable (GTK_LIST_BOX_ROW (row), FALSE);
- gtk_widget_show_all (row);
gtk_list_box_insert (list, row, -1);
@@ -189,7 +188,6 @@ add_label_row (GtkInspectorGeneral *gen,
row = gtk_list_box_row_new ();
gtk_container_add (GTK_CONTAINER (row), box);
gtk_list_box_row_set_activatable (GTK_LIST_BOX_ROW (row), FALSE);
- gtk_widget_show_all (row);
gtk_list_box_insert (GTK_LIST_BOX (list), row, -1);
diff --git a/gtk/inspector/prop-editor.c b/gtk/inspector/prop-editor.c
index 823efdb9c5..e1f1452435 100644
--- a/gtk/inspector/prop-editor.c
+++ b/gtk/inspector/prop-editor.c
@@ -1239,7 +1239,6 @@ attribute_editor (GObject *object,
G_CALLBACK (attribute_mapping_changed), editor);
gtk_container_add (GTK_CONTAINER (box), combo);
gtk_container_add (GTK_CONTAINER (vbox), box);
- gtk_widget_show_all (vbox);
return vbox;
}
@@ -1337,7 +1336,6 @@ action_editor (GObject *object,
G_CALLBACK (show_action_owner), editor);
gtk_container_add (GTK_CONTAINER (box), button);
gtk_container_add (GTK_CONTAINER (vbox), box);
- gtk_widget_show_all (vbox);
}
return vbox;
@@ -1448,7 +1446,6 @@ add_binding_info (GtkInspectorPropEditor *editor)
G_CALLBACK (binding_object_properties), editor);
gtk_container_add (GTK_CONTAINER (row), button);
- gtk_widget_show_all (row);
gtk_container_add (GTK_CONTAINER (editor), row);
}
}
@@ -1574,7 +1571,6 @@ add_settings_info (GtkInspectorPropEditor *editor)
gtk_container_add (GTK_CONTAINER (row), label);
g_free (str);
- gtk_widget_show_all (row);
gtk_container_add (GTK_CONTAINER (editor), row);
}
@@ -1632,7 +1628,6 @@ add_gtk_settings_info (GtkInspectorPropEditor *editor)
}
gtk_container_add (GTK_CONTAINER (row), gtk_label_new (source));
- gtk_widget_show_all (row);
gtk_container_add (GTK_CONTAINER (editor), row);
}
diff --git a/gtk/inspector/size-groups.c b/gtk/inspector/size-groups.c
index 8db1d35803..e77dda193b 100644
--- a/gtk/inspector/size-groups.c
+++ b/gtk/inspector/size-groups.c
@@ -247,8 +247,6 @@ add_size_group (GtkInspectorSizeGroups *sl,
widgets = gtk_size_group_get_widgets (group);
for (l = widgets; l; l = l->next)
add_widget (sl, GTK_LIST_BOX (listbox), GTK_WIDGET (l->data));
-
- gtk_widget_show_all (frame);
}
void