diff options
33 files changed, 4 insertions, 165 deletions
diff --git a/gtk/gtkactionbar.c b/gtk/gtkactionbar.c index e87a0c3c9a..db76a66aca 100644 --- a/gtk/gtkactionbar.c +++ b/gtk/gtkactionbar.c @@ -353,11 +353,9 @@ gtk_action_bar_init (GtkActionBar *action_bar) priv->revealer = gtk_revealer_new (); gtk_widget_set_parent (priv->revealer, widget); - gtk_widget_show (priv->revealer); priv->box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 6); gtk_container_add (GTK_CONTAINER (priv->revealer), priv->box); - gtk_widget_show (priv->box); gtk_revealer_set_reveal_child (GTK_REVEALER (priv->revealer), TRUE); gtk_revealer_set_transition_type (GTK_REVEALER (priv->revealer), GTK_REVEALER_TRANSITION_TYPE_SLIDE_UP); diff --git a/gtk/gtkcolorbutton.c b/gtk/gtkcolorbutton.c index 8bab7e0dff..691ae7ac01 100644 --- a/gtk/gtkcolorbutton.c +++ b/gtk/gtkcolorbutton.c @@ -355,7 +355,6 @@ gtk_color_button_init (GtkColorButton *button) gtk_widget_set_size_request (priv->swatch, rect.width, rect.height); gtk_container_add (GTK_CONTAINER (button), priv->swatch); - gtk_widget_show (priv->swatch); button->priv->title = g_strdup (_("Pick a Color")); /* default title */ diff --git a/gtk/gtkcombobox.c b/gtk/gtkcombobox.c index 71fbe13a02..8b67b39b2a 100644 --- a/gtk/gtkcombobox.c +++ b/gtk/gtkcombobox.c @@ -1268,7 +1268,6 @@ gtk_combo_box_create_child (GtkComboBox *combo_box) GtkStyleContext *context; entry = gtk_entry_new (); - gtk_widget_show (entry); gtk_container_add (GTK_CONTAINER (combo_box), entry); context = gtk_widget_get_style_context (GTK_WIDGET (entry)); @@ -1287,7 +1286,6 @@ gtk_combo_box_create_child (GtkComboBox *combo_box) gtk_container_add (GTK_CONTAINER (gtk_widget_get_parent (priv->arrow)), priv->cell_view); _gtk_bin_set_child (GTK_BIN (combo_box), priv->cell_view); - gtk_widget_show (priv->cell_view); } } diff --git a/gtk/gtkentrycompletion.c b/gtk/gtkentrycompletion.c index ed6837dc83..b5404d52b7 100644 --- a/gtk/gtkentrycompletion.c +++ b/gtk/gtkentrycompletion.c @@ -623,7 +623,6 @@ gtk_entry_completion_constructed (GObject *object) popup_frame = gtk_frame_new (NULL); gtk_frame_set_shadow_type (GTK_FRAME (popup_frame), GTK_SHADOW_ETCHED_IN); - gtk_widget_show (popup_frame); gtk_container_add (GTK_CONTAINER (priv->popup_window), popup_frame); priv->vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0); diff --git a/gtk/gtkheaderbar.c b/gtk/gtkheaderbar.c index 83d890f4dd..3ca1894565 100644 --- a/gtk/gtkheaderbar.c +++ b/gtk/gtkheaderbar.c @@ -135,11 +135,9 @@ init_sizing_box (GtkHeaderBar *bar) * in case we have only the title. */ w = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0); - gtk_widget_show (w); priv->label_sizing_box = g_object_ref_sink (w); w = gtk_label_new (NULL); - gtk_widget_show (w); context = gtk_widget_get_style_context (w); gtk_style_context_add_class (context, GTK_STYLE_CLASS_TITLE); gtk_box_pack_start (GTK_BOX (priv->label_sizing_box), w, FALSE, FALSE); @@ -172,7 +170,6 @@ create_title_box (const char *title, label_box = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0); gtk_widget_set_valign (label_box, GTK_ALIGN_CENTER); - gtk_widget_show (label_box); title_label = gtk_label_new (title); context = gtk_widget_get_style_context (title_label); @@ -181,7 +178,6 @@ create_title_box (const char *title, gtk_label_set_single_line_mode (GTK_LABEL (title_label), TRUE); gtk_label_set_ellipsize (GTK_LABEL (title_label), PANGO_ELLIPSIZE_END); gtk_box_pack_start (GTK_BOX (label_box), title_label, FALSE, FALSE); - gtk_widget_show (title_label); gtk_label_set_width_chars (GTK_LABEL (title_label), MIN_TITLE_CHARS); subtitle_label = gtk_label_new (subtitle); @@ -357,7 +353,6 @@ _gtk_header_bar_update_window_buttons (GtkHeaderBar *bar) priv->titlebar_icon = button; gtk_style_context_add_class (gtk_widget_get_style_context (button), "titlebutton"); gtk_widget_set_size_request (button, 20, 20); - gtk_widget_show (button); if (!_gtk_header_bar_update_window_icon (bar, window)) { gtk_widget_destroy (button); @@ -479,7 +474,6 @@ _gtk_header_bar_update_window_buttons (GtkHeaderBar *bar) NULL); } - gtk_widget_show (box); gtk_widget_set_parent (box, GTK_WIDGET (bar)); if (i == 0) diff --git a/gtk/gtklistbox.c b/gtk/gtklistbox.c index 05832b0d2b..ce7accb34e 100644 --- a/gtk/gtklistbox.c +++ b/gtk/gtklistbox.c @@ -2899,7 +2899,6 @@ gtk_list_box_insert (GtkListBox *box, else { row = GTK_LIST_BOX_ROW (gtk_list_box_row_new ()); - gtk_widget_show (GTK_WIDGET (row)); gtk_container_add (GTK_CONTAINER (row), child); } diff --git a/gtk/gtkmenubutton.c b/gtk/gtkmenubutton.c index ddb17895d1..43e18a396e 100644 --- a/gtk/gtkmenubutton.c +++ b/gtk/gtkmenubutton.c @@ -604,7 +604,6 @@ add_arrow (GtkMenuButton *menu_button) arrow = gtk_image_new (); set_arrow_type (GTK_IMAGE (arrow), menu_button->priv->arrow_type); gtk_container_add (GTK_CONTAINER (menu_button), arrow); - gtk_widget_show (arrow); menu_button->priv->arrow_widget = arrow; } diff --git a/gtk/gtkmenuitem.c b/gtk/gtkmenuitem.c index d2ae63a799..16a6e16b71 100644 --- a/gtk/gtkmenuitem.c +++ b/gtk/gtkmenuitem.c @@ -1963,7 +1963,6 @@ gtk_menu_item_ensure_label (GtkMenuItem *menu_item) gtk_container_add (GTK_CONTAINER (menu_item), accel_label); gtk_accel_label_set_accel_widget (GTK_ACCEL_LABEL (accel_label), GTK_WIDGET (menu_item)); - gtk_widget_show (accel_label); } } diff --git a/gtk/gtkmenusectionbox.c b/gtk/gtkmenusectionbox.c index b5608e94c3..4d863673d7 100644 --- a/gtk/gtkmenusectionbox.c +++ b/gtk/gtkmenusectionbox.c @@ -323,8 +323,6 @@ gtk_menu_section_box_insert_func (GtkMenuTrackerItem *item, g_signal_connect (widget, "clicked", G_CALLBACK (gtk_popover_item_activate), item); } - gtk_widget_show (widget); - g_object_set_data_full (G_OBJECT (widget), "GtkMenuTrackerItem", g_object_ref (item), g_object_unref); gtk_widget_set_halign (widget, GTK_ALIGN_FILL); @@ -350,7 +348,6 @@ gtk_menu_section_box_init (GtkMenuSectionBox *box) box->item_box = GTK_BOX (item_box); gtk_box_pack_end (GTK_BOX (box), item_box, FALSE, FALSE); gtk_widget_set_halign (GTK_WIDGET (item_box), GTK_ALIGN_FILL); - gtk_widget_show (item_box); gtk_widget_set_halign (GTK_WIDGET (box), GTK_ALIGN_FILL); g_object_set (box, "margin", 0, NULL); @@ -432,9 +429,6 @@ gtk_menu_section_box_new_toplevel (GtkStack *stack, gtk_menu_section_box_remove_func, box); g_signal_connect (G_OBJECT (popover), "notify::position", G_CALLBACK (update_popover_position_cb), box); - - - gtk_widget_show (GTK_WIDGET (box)); } static void @@ -461,14 +455,12 @@ gtk_menu_section_box_new_submenu (GtkMenuTrackerItem *item, g_object_set_data (G_OBJECT (focus), "focus", button); gtk_box_pack_start (GTK_BOX (box), button, FALSE, FALSE); - gtk_widget_show (button); g_signal_connect (focus, "clicked", G_CALLBACK (open_submenu), item); g_signal_connect (button, "clicked", G_CALLBACK (close_submenu), item); gtk_stack_add_named (GTK_STACK (gtk_widget_get_ancestor (GTK_WIDGET (toplevel), GTK_TYPE_STACK)), GTK_WIDGET (box), gtk_menu_tracker_item_get_label (item)); - gtk_widget_show (GTK_WIDGET (box)); box->tracker = gtk_menu_tracker_new_for_item_link (item, G_MENU_LINK_SUBMENU, FALSE, FALSE, gtk_menu_section_box_insert_func, @@ -538,8 +530,6 @@ gtk_menu_section_box_new_section (GtkMenuTrackerItem *item, { box->separator = gtk_separator_new (GTK_ORIENTATION_HORIZONTAL); g_object_ref_sink (box->separator); - - gtk_widget_show (box->separator); } box->tracker = gtk_menu_tracker_new_for_item_link (item, G_MENU_LINK_SECTION, FALSE, FALSE, diff --git a/gtk/gtkmodelbutton.c b/gtk/gtkmodelbutton.c index 8109079f47..baa568af73 100644 --- a/gtk/gtkmodelbutton.c +++ b/gtk/gtkmodelbutton.c @@ -1141,7 +1141,6 @@ gtk_model_button_init (GtkModelButton *button) gtk_button_set_relief (GTK_BUTTON (button), GTK_RELIEF_NONE); button->box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 6); gtk_widget_set_halign (button->box, GTK_ALIGN_FILL); - gtk_widget_show (button->box); button->image = gtk_image_new (); gtk_widget_hide (button->image); button->label = gtk_label_new (""); diff --git a/gtk/gtkplacesview.c b/gtk/gtkplacesview.c index fe2aade66a..8edeab0d1b 100644 --- a/gtk/gtkplacesview.c +++ b/gtk/gtkplacesview.c @@ -1642,7 +1642,6 @@ build_popup_menu (GtkPlacesView *view, "activate", G_CALLBACK (open_cb), row); - gtk_widget_show (item); gtk_menu_shell_append (GTK_MENU_SHELL (priv->popup_menu), item); if (priv->open_flags & GTK_PLACES_OPEN_NEW_TAB) @@ -1652,7 +1651,6 @@ build_popup_menu (GtkPlacesView *view, "activate", G_CALLBACK (open_in_new_tab_cb), row); - gtk_widget_show (item); gtk_menu_shell_append (GTK_MENU_SHELL (priv->popup_menu), item); } @@ -1663,7 +1661,6 @@ build_popup_menu (GtkPlacesView *view, "activate", G_CALLBACK (open_in_new_window_cb), row); - gtk_widget_show (item); gtk_menu_shell_append (GTK_MENU_SHELL (priv->popup_menu), item); } @@ -1676,7 +1673,6 @@ build_popup_menu (GtkPlacesView *view, /* Separator */ item = gtk_separator_menu_item_new (); - gtk_widget_show (item); gtk_menu_shell_insert (GTK_MENU_SHELL (priv->popup_menu), item, -1); /* Mount/Unmount items */ @@ -1687,7 +1683,6 @@ build_popup_menu (GtkPlacesView *view, "activate", G_CALLBACK (unmount_cb), row); - gtk_widget_show (item); gtk_menu_shell_append (GTK_MENU_SHELL (priv->popup_menu), item); } else @@ -1697,7 +1692,6 @@ build_popup_menu (GtkPlacesView *view, "activate", G_CALLBACK (mount_cb), row); - gtk_widget_show (item); gtk_menu_shell_append (GTK_MENU_SHELL (priv->popup_menu), item); } } diff --git a/gtk/gtkpopover.c b/gtk/gtkpopover.c index 4a6c753c96..7277aca0b3 100644 --- a/gtk/gtkpopover.c +++ b/gtk/gtkpopover.c @@ -2316,7 +2316,6 @@ gtk_popover_bind_model (GtkPopover *popover, gtk_stack_set_vhomogeneous (GTK_STACK (stack), FALSE); gtk_stack_set_transition_type (GTK_STACK (stack), GTK_STACK_TRANSITION_TYPE_SLIDE_LEFT_RIGHT); gtk_stack_set_interpolate_size (GTK_STACK (stack), TRUE); - gtk_widget_show (stack); gtk_container_add (GTK_CONTAINER (popover), stack); gtk_menu_section_box_new_toplevel (GTK_STACK (stack), diff --git a/gtk/gtkscrolledwindow.c b/gtk/gtkscrolledwindow.c index b4e5c8c956..bc23a13f78 100644 --- a/gtk/gtkscrolledwindow.c +++ b/gtk/gtkscrolledwindow.c @@ -2144,7 +2144,6 @@ gtk_scrolled_window_set_hadjustment (GtkScrolledWindow *scrolled_window, gtk_widget_set_parent (priv->hscrollbar, GTK_WIDGET (scrolled_window)); g_object_ref (priv->hscrollbar); - gtk_widget_show (priv->hscrollbar); update_scrollbar_positions (scrolled_window); } else @@ -2212,7 +2211,6 @@ gtk_scrolled_window_set_vadjustment (GtkScrolledWindow *scrolled_window, gtk_widget_set_parent (priv->vscrollbar, GTK_WIDGET (scrolled_window)); g_object_ref (priv->vscrollbar); - gtk_widget_show (priv->vscrollbar); update_scrollbar_positions (scrolled_window); } else @@ -3805,7 +3803,6 @@ gtk_scrolled_window_add (GtkContainer *container, else { scrollable_child = gtk_viewport_new (hadj, vadj); - gtk_widget_show (scrollable_child); gtk_container_set_focus_hadjustment (GTK_CONTAINER (scrollable_child), gtk_scrolled_window_get_hadjustment (GTK_SCROLLED_WINDOW (scrolled_window))); gtk_container_set_focus_vadjustment (GTK_CONTAINER (scrollable_child), diff --git a/gtk/gtkshortcutlabel.c b/gtk/gtkshortcutlabel.c index bfacbd391e..b7003dd94d 100644 --- a/gtk/gtkshortcutlabel.c +++ b/gtk/gtkshortcutlabel.c @@ -257,7 +257,6 @@ dim_label (const gchar *text) GtkWidget *label; label = gtk_label_new (text); - gtk_widget_show (label); gtk_style_context_add_class (gtk_widget_get_style_context (label), "dim-label"); return label; @@ -287,7 +286,6 @@ display_shortcut (GtkContainer *self, gtk_style_context_add_class (gtk_widget_get_style_context (disp), "keycap"); gtk_label_set_use_markup (GTK_LABEL (disp), TRUE); - gtk_widget_show (disp); gtk_container_add (self, disp); } g_strfreev (keys); @@ -380,7 +378,6 @@ gtk_shortcut_label_rebuild (GtkShortcutLabel *self) GtkWidget *label; label = dim_label (self->disabled_text); - gtk_widget_show (label); gtk_container_add (GTK_CONTAINER (self), label); return; diff --git a/gtk/gtkshortcutssection.c b/gtk/gtkshortcutssection.c index b8bef99ca1..ac2abc15f0 100644 --- a/gtk/gtkshortcutssection.c +++ b/gtk/gtkshortcutssection.c @@ -648,7 +648,6 @@ gtk_shortcuts_section_reflow_groups (GtkShortcutsSection *self) GtkSizeGroup *size_group; column_box = gtk_box_new (GTK_ORIENTATION_VERTICAL, 22); - gtk_widget_show (column_box); size_group = gtk_size_group_new (GTK_SIZE_GROUP_HORIZONTAL); g_object_set_data_full (G_OBJECT (column_box), "accel-size-group", size_group, g_object_unref); @@ -660,7 +659,6 @@ gtk_shortcuts_section_reflow_groups (GtkShortcutsSection *self) GtkWidget *page; page = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 22); - gtk_widget_show (page); pages = g_list_append (pages, page); current_page = page; @@ -694,7 +692,6 @@ gtk_shortcuts_section_reflow_groups (GtkShortcutsSection *self) guint n; column_box = gtk_box_new (GTK_ORIENTATION_VERTICAL, 22); - gtk_widget_show (column_box); size_group = gtk_size_group_new (GTK_SIZE_GROUP_HORIZONTAL); g_object_set_data_full (G_OBJECT (column_box), "accel-size-group", size_group, g_object_unref); diff --git a/gtk/gtkshortcutswindow.c b/gtk/gtkshortcutswindow.c index 952b01d9a0..6ef901f75b 100644 --- a/gtk/gtkshortcutswindow.c +++ b/gtk/gtkshortcutswindow.c @@ -917,12 +917,10 @@ gtk_shortcuts_window_init (GtkShortcutsWindow *self) gtk_header_bar_set_custom_title (priv->header_bar, GTK_WIDGET (priv->title_stack)); label = gtk_label_new (_("Shortcuts")); - gtk_widget_show (label); gtk_style_context_add_class (gtk_widget_get_style_context (label), GTK_STYLE_CLASS_TITLE); gtk_stack_add_named (priv->title_stack, label, "title"); label = gtk_label_new (_("Search Results")); - gtk_widget_show (label); gtk_style_context_add_class (gtk_widget_get_style_context (label), GTK_STYLE_CLASS_TITLE); gtk_stack_add_named (priv->title_stack, label, "search"); @@ -945,7 +943,6 @@ gtk_shortcuts_window_init (GtkShortcutsWindow *self) arrow = gtk_image_new_from_icon_name ("pan-down-symbolic", GTK_ICON_SIZE_BUTTON); - gtk_widget_show (arrow); gtk_container_add (GTK_CONTAINER (menu_box), GTK_WIDGET (arrow)); priv->popover = g_object_new (GTK_TYPE_POPOVER, @@ -965,7 +962,6 @@ gtk_shortcuts_window_init (GtkShortcutsWindow *self) gtk_container_add (GTK_CONTAINER (priv->popover), GTK_WIDGET (priv->list_box)); priv->search_entry = GTK_SEARCH_ENTRY (gtk_search_entry_new ()); - gtk_widget_show (GTK_WIDGET (priv->search_entry)); gtk_container_add (GTK_CONTAINER (priv->search_bar), GTK_WIDGET (priv->search_entry)); g_object_set (priv->search_entry, "placeholder-text", _("Search Shortcuts"), diff --git a/gtk/gtktoolbar.c b/gtk/gtktoolbar.c index 8e8d9e0c0d..2eb4e08fda 100644 --- a/gtk/gtktoolbar.c +++ b/gtk/gtktoolbar.c @@ -663,7 +663,6 @@ gtk_toolbar_init (GtkToolbar *toolbar) priv->arrow = gtk_image_new_from_icon_name ("pan-down-symbolic", GTK_ICON_SIZE_BUTTON); gtk_widget_set_name (priv->arrow, "gtk-toolbar-arrow"); - gtk_widget_show (priv->arrow); gtk_container_add (GTK_CONTAINER (priv->arrow_button), priv->arrow); gtk_widget_set_parent (priv->arrow_button, widget); @@ -2242,7 +2241,6 @@ gtk_toolbar_set_drop_highlight_item (GtkToolbar *toolbar, content = toolbar_content_new_tool_item (toolbar, GTK_TOOL_ITEM (placeholder), TRUE, index_); - gtk_widget_show (placeholder); } g_assert (content); diff --git a/gtk/gtktoolbutton.c b/gtk/gtktoolbutton.c index 594d6af911..c8f8e4366f 100644 --- a/gtk/gtktoolbutton.c +++ b/gtk/gtktoolbutton.c @@ -299,7 +299,6 @@ gtk_tool_button_init (GtkToolButton *button, G_CALLBACK (button_clicked), button, 0); gtk_container_add (GTK_CONTAINER (button), button->priv->button); - gtk_widget_show (button->priv->button); } static void @@ -412,8 +411,6 @@ gtk_tool_button_construct_contents (GtkToolItem *tool_item) label = gtk_label_new (label_text); g_free (label_text); - - gtk_widget_show (label); } if (GTK_IS_LABEL (label)) @@ -471,7 +468,6 @@ gtk_tool_button_construct_contents (GtkToolItem *tool_item) else if (button->priv->icon_name) { icon = gtk_image_new_from_icon_name (button->priv->icon_name, icon_size); - gtk_widget_show (icon); } if (icon) diff --git a/gtk/gtktreemenu.c b/gtk/gtktreemenu.c index c4ccfb8ad2..afc90bdf4c 100644 --- a/gtk/gtktreemenu.c +++ b/gtk/gtktreemenu.c @@ -1220,7 +1220,6 @@ gtk_tree_menu_create_item (GtkTreeMenu *menu, if (is_separator) { item = gtk_separator_menu_item_new (); - gtk_widget_show (item); g_object_set_qdata_full (G_OBJECT (item), tree_menu_path_quark, @@ -1231,13 +1230,10 @@ gtk_tree_menu_create_item (GtkTreeMenu *menu, { view = gtk_cell_view_new_with_context (priv->area, priv->context); item = gtk_menu_item_new (); - gtk_widget_show (view); - gtk_widget_show (item); gtk_cell_view_set_model (GTK_CELL_VIEW (view), priv->model); gtk_cell_view_set_displayed_row (GTK_CELL_VIEW (view), path); - gtk_widget_show (view); gtk_container_add (GTK_CONTAINER (item), view); g_signal_connect (item, "activate", G_CALLBACK (item_activated_cb), menu); diff --git a/gtk/gtktreeviewcolumn.c b/gtk/gtktreeviewcolumn.c index 9b72d2d653..9052ed3704 100644 --- a/gtk/gtktreeviewcolumn.c +++ b/gtk/gtktreeviewcolumn.c @@ -820,7 +820,6 @@ gtk_tree_view_column_create_button (GtkTreeViewColumn *tree_column) priv->button = gtk_button_new (); g_object_ref_sink (priv->button); - gtk_widget_show (priv->button); gtk_widget_add_events (priv->button, GDK_POINTER_MOTION_MASK); g_signal_connect (priv->button, "event", @@ -842,7 +841,6 @@ gtk_tree_view_column_create_button (GtkTreeViewColumn *tree_column) else { child = gtk_label_new (priv->title); - gtk_widget_show (child); } g_signal_connect (child, "mnemonic-activate", @@ -862,9 +860,6 @@ gtk_tree_view_column_create_button (GtkTreeViewColumn *tree_column) gtk_container_add (GTK_CONTAINER (priv->frame), child); gtk_container_add (GTK_CONTAINER (priv->button), hbox); - - gtk_widget_show (hbox); - gtk_widget_show (priv->frame); } static void diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c index eb234bc17e..e6c44af52d 100644 --- a/gtk/gtkwidget.c +++ b/gtk/gtkwidget.c @@ -4226,6 +4226,10 @@ gtk_widget_show (GtkWidget *widget) gtk_widget_pop_verify_invariants (widget); g_object_unref (widget); } + else + { + g_warning ("%s is already visible", gtk_widget_get_name (widget)); + } } static void diff --git a/gtk/ui/gtkcoloreditor.ui b/gtk/ui/gtkcoloreditor.ui index fbef1e7cbb..aa2f03a871 100644 --- a/gtk/ui/gtkcoloreditor.ui +++ b/gtk/ui/gtkcoloreditor.ui @@ -31,18 +31,15 @@ <signal name="notify::visible" handler="dismiss_current_popup" swapped="no"/> <child> <object class="GtkOverlay" id="overlay"> - <property name="visible">1</property> <signal name="get-child-position" handler="get_child_position" swapped="no"/> <child> <object class="GtkGrid" id="grid"> - <property name="visible">1</property> <property name="margin-start">30</property> <property name="margin-end">30</property> <property name="row-spacing">12</property> <property name="column-spacing">12</property> <child> <object class="GtkColorSwatch" id="swatch"> - <property name="visible">True</property> <property name="name">editor-color-sample</property> <property name="can-focus">False</property> <property name="rgba">rgb(255,255,255)</property> @@ -56,7 +53,6 @@ </child> <child> <object class="GtkEntry" id="entry"> - <property name="visible">1</property> <property name="can-focus">1</property> <child internal-child="accessible"> <object class="AtkObject" id="entry-atkobject"> @@ -74,7 +70,6 @@ </child> <child> <object class="GtkColorScale" id="h_slider"> - <property name="visible">True</property> <property name="can-focus">True</property> <property name="orientation">vertical</property> <property name="adjustment">h_adj</property> @@ -89,7 +84,6 @@ </child> <child> <object class="GtkColorScale" id="a_slider"> - <property name="visible">True</property> <property name="can-focus">True</property> <property name="adjustment">a_adj</property> <property name="draw-value">False</property> @@ -110,7 +104,6 @@ <object class="GtkColorPlane" id="sv_plane"> <property name="width-request">300</property> <property name="height-request">300</property> - <property name="visible">True</property> <property name="can-focus">True</property> <property name="h-adjustment">h_adj</property> <property name="s-adjustment">s_adj</property> @@ -141,7 +134,6 @@ </style> <child> <object class="GtkGrid" id="grid4"> - <property name="visible">1</property> <property name="margin-start">12</property> <property name="margin-end">12</property> <property name="margin-top">12</property> @@ -149,7 +141,6 @@ <property name="column-spacing">6</property> <child> <object class="GtkLabel" id="label4"> - <property name="visible">1</property> <property name="label" translatable="yes" context="Color channel">A</property> </object> <packing> @@ -159,7 +150,6 @@ </child> <child> <object class="GtkSpinButton" id="a_entry"> - <property name="visible">1</property> <property name="can-focus">1</property> <property name="width-chars">2</property> <property name="max-width-chars">2</property> @@ -187,7 +177,6 @@ </style> <child> <object class="GtkGrid" id="grid3"> - <property name="visible">1</property> <property name="margin-start">12</property> <property name="margin-end">12</property> <property name="margin-top">12</property> @@ -195,7 +184,6 @@ <property name="column-spacing">6</property> <child> <object class="GtkLabel" id="label3"> - <property name="visible">1</property> <property name="label" translatable="yes" context="Color channel">H</property> </object> <packing> @@ -205,7 +193,6 @@ </child> <child> <object class="GtkSpinButton" id="h_entry"> - <property name="visible">1</property> <property name="can-focus">1</property> <property name="width-chars">2</property> <property name="max-width-chars">2</property> @@ -233,7 +220,6 @@ </style> <child> <object class="GtkGrid" id="grid2"> - <property name="visible">1</property> <property name="margin-start">12</property> <property name="margin-end">12</property> <property name="margin-top">12</property> @@ -242,7 +228,6 @@ <property name="column-spacing">6</property> <child> <object class="GtkLabel" id="label1"> - <property name="visible">1</property> <property name="label" translatable="yes" context="Color Channel">S</property> </object> <packing> @@ -252,7 +237,6 @@ </child> <child> <object class="GtkLabel" id="label2"> - <property name="visible">1</property> <property name="label" translatable="yes" context="Color Channel">V</property> </object> <packing> @@ -262,7 +246,6 @@ </child> <child> <object class="GtkSpinButton" id="s_entry"> - <property name="visible">1</property> <property name="can-focus">1</property> <property name="width-chars">2</property> <property name="max-width-chars">2</property> @@ -281,7 +264,6 @@ </child> <child> <object class="GtkSpinButton" id="v_entry"> - <property name="visible">1</property> <property name="can-focus">1</property> <property name="width-chars">2</property> <property name="max-width-chars">2</property> diff --git a/gtk/ui/gtkcombobox.ui b/gtk/ui/gtkcombobox.ui index 0a8ac8ba98..a3126c8de6 100644 --- a/gtk/ui/gtkcombobox.ui +++ b/gtk/ui/gtkcombobox.ui @@ -4,20 +4,16 @@ <template class="GtkComboBox" parent="GtkBin"> <child> <object class="GtkBox" id="box"> - <property name="visible">1</property> <style> <class name="linked"/> </style> <child> <object class="GtkToggleButton" id="button"> - <property name="visible">1</property> <signal name="toggled" handler="gtk_combo_box_button_toggled" swapped="no"/> <child> <object class="GtkBox"> - <property name="visible">1</property> <child> <object class="GtkIcon" id="arrow"> - <property name="visible">1</property> <property name="css-name">arrow</property> </object> <packing> diff --git a/gtk/ui/gtkdialog.ui b/gtk/ui/gtkdialog.ui index 214cbd4597..65d0e5ed8c 100644 --- a/gtk/ui/gtkdialog.ui +++ b/gtk/ui/gtkdialog.ui @@ -7,26 +7,22 @@ <signal name="delete-event" handler="gtk_dialog_delete_event_handler" swapped="no"/> <child type="titlebar"> <object class="GtkHeaderBar" id="headerbar"> - <property name="visible">1</property> <property name="show-close-button">1</property> </object> </child> <child> <object class="GtkBox" id="vbox"> - <property name="visible">1</property> <property name="orientation">vertical</property> <style> <class name="dialog-vbox"/> </style> <child> <object class="GtkBox" id="action_box"> - <property name="visible">1</property> <style> <class name="dialog-action-box"/> </style> <child> <object class="GtkButtonBox" id="action_area"> - <property name="visible">1</property> <property name="layout-style">end</property> <property name="hexpand">1</property> <style> diff --git a/gtk/ui/gtkfilechooserwidget.ui b/gtk/ui/gtkfilechooserwidget.ui index 3af6fed58d..5f57f1cd53 100644 --- a/gtk/ui/gtkfilechooserwidget.ui +++ b/gtk/ui/gtkfilechooserwidget.ui @@ -49,7 +49,6 @@ <property name="margin">6</property> <child> <object class="GtkPathBar" id="browse_path_bar"> - <property name="visible">True</property> <signal name="path-clicked" handler="path_bar_clicked" after="yes" swapped="no"/> </object> <packing> @@ -248,7 +247,6 @@ </child> <child> <object class="GtkPlacesView" id="places_view"> - <property name="visible">True</property> <property name="local-only" bind-source="GtkFileChooserWidget" bind-property="local-only" bind-flags="default|sync-create"/> <signal name="open-location" handler="places_sidebar_open_location_cb" swapped="no"/> <signal name="show-error-message" handler="places_sidebar_show_error_message_cb" swapped="no"/> diff --git a/gtk/ui/gtklockbutton.ui b/gtk/ui/gtklockbutton.ui index ea63b86832..324c44569e 100644 --- a/gtk/ui/gtklockbutton.ui +++ b/gtk/ui/gtklockbutton.ui @@ -2,18 +2,15 @@ <interface domain="gtk30"> <!-- interface-requires gtk+ 3.6 --> <template class="GtkLockButton" parent="GtkButton"> - <property name="visible">1</property> <property name="can-focus">1</property> <property name="receives-default">1</property> <child> <object class="GtkBox" id="box"> - <property name="visible">1</property> <property name="halign">center</property> <property name="valign">center</property> <property name="spacing">6</property> <child> <object class="GtkImage" id="image"> - <property name="visible">1</property> <property name="icon-name">image-missing</property> </object> <packing> @@ -22,7 +19,6 @@ </child> <child> <object class="GtkStack" id="stack"> - <property name="visible">1</property> <child> <object class="GtkLabel" id="label_lock"> <property name="visible">1</property> @@ -32,7 +28,6 @@ </child> <child> <object class="GtkLabel" id="label_unlock"> - <property name="visible">1</property> <property name="xalign">0</property> <property name="label" translatable="yes">Unlock</property> </object> diff --git a/gtk/ui/gtkpathbar.ui b/gtk/ui/gtkpathbar.ui index b9fefc72fe..63b61f297f 100644 --- a/gtk/ui/gtkpathbar.ui +++ b/gtk/ui/gtkpathbar.ui @@ -2,7 +2,6 @@ <interface domain="gtk30"> <!-- interface-requires gtk+ 3.10 --> <object class="GtkButton" id="down_slider_button"> - <property name="visible">1</property> <property name="can-focus">1</property> <property name="receives-default">1</property> <property name="focus-on-click">0</property> @@ -17,7 +16,6 @@ <signal name="unmap" handler="on_slider_unmap" swapped="no"/> <child> <object class="GtkImage"> - <property name="visible">1</property> <property name="icon-name">pan-end-symbolic</property> <property name="icon-size">1</property> </object> @@ -27,7 +25,6 @@ </style> </object> <object class="GtkButton" id="up_slider_button"> - <property name="visible">1</property> <property name="can-focus">1</property> <property name="receives-default">1</property> <property name="focus-on-click">0</property> @@ -42,7 +39,6 @@ <signal name="unmap" handler="on_slider_unmap" swapped="no"/> <child> <object class="GtkImage"> - <property name="visible">1</property> <property name="icon-name">pan-start-symbolic</property> <property name="icon-size">1</property> </object> diff --git a/gtk/ui/gtkplacesview.ui b/gtk/ui/gtkplacesview.ui index 7799469e61..2c7b4e4814 100644 --- a/gtk/ui/gtkplacesview.ui +++ b/gtk/ui/gtkplacesview.ui @@ -19,13 +19,11 @@ <property name="relative-to">address_entry</property> <child> <object class="GtkBox"> - <property name="visible">1</property> <property name="orientation">vertical</property> <property name="spacing">6</property> <property name="margin">18</property> <child> <object class="GtkLabel"> - <property name="visible">1</property> <property name="hexpand">1</property> <property name="label" translatable="yes">Server Addresses</property> <attributes> @@ -38,7 +36,6 @@ </child> <child> <object class="GtkLabel"> - <property name="visible">1</property> <property name="hexpand">1</property> <property name="label" translatable="yes">Server addresses are made up of a protocol prefix and an address. Examples:</property> <property name="wrap">1</property> @@ -52,7 +49,6 @@ </child> <child> <object class="GtkLabel"> - <property name="visible">1</property> <property name="hexpand">1</property> <property name="label" translatable="yes">smb://foo.example.com, ssh://192.168.0.1, ftp://[2001:db8::1]</property> <property name="wrap">1</property> @@ -66,14 +62,12 @@ </child> <child> <object class="GtkGrid"> - <property name="visible">1</property> <property name="margin-top">12</property> <property name="hexpand">1</property> <property name="row-spacing">6</property> <property name="column-spacing">12</property> <child> <object class="GtkLabel"> - <property name="visible">1</property> <property name="hexpand">1</property> <property name="label" translatable="yes">Available Protocols</property> <property name="xalign">0</property> @@ -88,7 +82,6 @@ </child> <child> <object class="GtkLabel"> - <property name="visible">1</property> <property name="label" translatable="yes">AppleTalk</property> <property name="xalign">0</property> </object> @@ -99,7 +92,6 @@ </child> <child> <object class="GtkLabel"> - <property name="visible">1</property> <property name="label" translatable="yes">File Transfer Protocol</property> <property name="xalign">0</property> </object> @@ -110,7 +102,6 @@ </child> <child> <object class="GtkLabel"> - <property name="visible">1</property> <property name="label" translatable="yes">Network File System</property> <property name="xalign">0</property> </object> @@ -121,7 +112,6 @@ </child> <child> <object class="GtkLabel"> - <property name="visible">1</property> <property name="label" translatable="yes">Samba</property> <property name="xalign">0</property> </object> @@ -132,7 +122,6 @@ </child> <child> <object class="GtkLabel"> - <property name="visible">1</property> <property name="label" translatable="yes">SSH File Transfer Protocol</property> <property name="xalign">0</property> </object> @@ -143,7 +132,6 @@ </child> <child> <object class="GtkLabel"> - <property name="visible">1</property> <property name="label" translatable="yes">WebDAV</property> <property name="xalign">0</property> </object> @@ -154,7 +142,6 @@ </child> <child> <object class="GtkLabel"> - <property name="visible">1</property> <property name="label" translatable="yes">Prefix</property> <property name="xalign">0</property> <attributes> @@ -168,7 +155,6 @@ </child> <child> <object class="GtkLabel"> - <property name="visible">1</property> <property name="label">afp://</property> <property name="xalign">0</property> </object> @@ -179,7 +165,6 @@ </child> <child> <object class="GtkLabel"> - <property name="visible">1</property> <property name="label" translatable="yes" comments="Translators: do not translate ftp:// and ftps://">ftp:// or ftps://</property> <property name="xalign">0</property> </object> @@ -190,7 +175,6 @@ </child> <child> <object class="GtkLabel"> - <property name="visible">1</property> <property name="label">nfs://</property> <property name="xalign">0</property> </object> @@ -201,7 +185,6 @@ </child> <child> <object class="GtkLabel"> - <property name="visible">1</property> <property name="label" translatable="yes">smb://</property> <property name="xalign">0</property> </object> @@ -212,7 +195,6 @@ </child> <child> <object class="GtkLabel"> - <property name="visible">1</property> <property name="label" translatable="yes" comments="Translators: do not translate sftp:// and ssh://">sftp:// or ssh://</property> <property name="xalign">0</property> </object> @@ -223,7 +205,6 @@ </child> <child> <object class="GtkLabel"> - <property name="visible">1</property> <property name="label" translatable="yes" comments="Translators: do not translate dav:// and davs://">dav:// or davs://</property> <property name="xalign">0</property> </object> @@ -243,17 +224,14 @@ <object class="GtkPopover" id="recent_servers_popover"> <child> <object class="GtkStack" id="recent_servers_stack"> - <property name="visible">1</property> <child> <object class="GtkBox"> - <property name="visible">1</property> <property name="vexpand">1</property> <property name="valign">center</property> <property name="orientation">vertical</property> <property name="spacing">18</property> <child> <object class="GtkImage"> - <property name="visible">1</property> <property name="pixel-size">48</property> <property name="icon-name">network-server-symbolic</property> <style> @@ -263,7 +241,6 @@ </child> <child> <object class="GtkLabel"> - <property name="visible">1</property> <property name="label" translatable="yes" comments="Translators: Server as any successfully connected network address">No recent servers found</property> <style> <class name="dim-label"/> @@ -280,13 +257,11 @@ </child> <child> <object class="GtkBox"> - <property name="visible">1</property> <property name="orientation">vertical</property> <property name="spacing">12</property> <property name="margin">12</property> <child> <object class="GtkLabel"> - <property name="visible">1</property> <property name="label" translatable="yes">Recent Servers</property> <attributes> <attribute name="weight" value="bold"/> @@ -295,7 +270,6 @@ </child> <child> <object class="GtkScrolledWindow"> - <property name="visible">1</property> <property name="can-focus">1</property> <property name="vexpand">1</property> <property name="shadow-type">in</property> @@ -303,11 +277,9 @@ <property name="min-content-height">200</property> <child> <object class="GtkViewport"> - <property name="visible">1</property> <property name="shadow-type">none</property> <child> <object class="GtkListBox" id="recent_servers_listbox"> - <property name="visible">1</property> <property name="can-focus">1</property> <property name="selection-mode">none</property> <signal name="row-activated" handler="on_recent_servers_listbox_row_activated" object="GtkPlacesView" swapped="yes"/> @@ -329,31 +301,25 @@ </child> </object> <template class="GtkPlacesView" parent="GtkBox"> - <property name="visible">True</property> <property name="can-focus">False</property> <property name="orientation">vertical</property> <signal name="key-press-event" handler="on_key_press_event" object="GtkPlacesView" swapped="no"/> <child> <object class="GtkStack" id="stack"> - <property name="visible">1</property> <property name="vhomogeneous">0</property> <property name="transition-type">crossfade</property> <child> <object class="GtkFrame"> - <property name="visible">1</property> <property name="shadow-type">none</property> <child> <object class="GtkScrolledWindow"> - <property name="visible">1</property> <property name="hexpand">1</property> <property name="vexpand">1</property> <child> <object class="GtkViewport"> - <property name="visible">1</property> <property name="shadow-type">none</property> <child> <object class="GtkListBox" id="listbox"> - <property name="visible">1</property> <property name="can-focus">1</property> <property name="selection-mode">none</property> <signal name="row-activated" handler="on_listbox_row_activated" object="GtkPlacesView" swapped="yes"/> @@ -370,7 +336,6 @@ </child> <child> <object class="GtkBox"> - <property name="visible">1</property> <property name="halign">center</property> <property name="valign">center</property> <property name="hexpand">1</property> @@ -379,7 +344,6 @@ <property name="spacing">12</property> <child> <object class="GtkImage"> - <property name="visible">1</property> <property name="pixel-size">72</property> <property name="icon-name">edit-find-symbolic</property> <style> @@ -389,7 +353,6 @@ </child> <child> <object class="GtkLabel"> - <property name="visible">1</property> <property name="label" translatable="yes">No results found</property> <attributes> <attribute name="weight" value="bold"/> @@ -402,7 +365,6 @@ </child> <child> <object class="GtkLabel"> - <property name="visible">1</property> <property name="label" translatable="yes">Try a different search</property> <style> <class name="dim-label"/> @@ -426,14 +388,12 @@ </child> <child> <object class="GtkActionBar" id="actionbar"> - <property name="visible">1</property> <property name="hexpand">1</property> <style> <class name="background"/> </style> <child> <object class="GtkLabel"> - <property name="visible">1</property> <property name="hexpand">1</property> <property name="xalign">0</property> <property name="label" translatable="yes">Connect to _Server</property> @@ -448,7 +408,6 @@ <object class="GtkButton" id="connect_button"> <property name="label" translatable="yes">Con_nect</property> <property name="use-underline">1</property> - <property name="visible">1</property> <property name="can-focus">1</property> <property name="sensitive">0</property> <property name="receives-default">1</property> @@ -461,11 +420,9 @@ </child> <child> <object class="GtkBox"> - <property name="visible">1</property> <property name="hexpand">1</property> <child> <object class="GtkEntry" id="address_entry"> - <property name="visible">1</property> <property name="can-focus">1</property> <property name="hexpand">1</property> <property name="width-chars">20</property> @@ -479,7 +436,6 @@ </child> <child> <object class="GtkMenuButton" id="server_list_button"> - <property name="visible">1</property> <property name="can-focus">1</property> <property name="receives-default">1</property> <property name="direction">up</property> @@ -489,7 +445,6 @@ </style> <child> <object class="GtkImage"> - <property name="visible">1</property> <property name="icon-name">pan-down-symbolic</property> </object> </child> diff --git a/gtk/ui/gtkscalebutton.ui b/gtk/ui/gtkscalebutton.ui index b86e9e5973..fcf97ed1b7 100644 --- a/gtk/ui/gtkscalebutton.ui +++ b/gtk/ui/gtkscalebutton.ui @@ -9,7 +9,6 @@ <property name="focus-on-click">0</property> <child> <object class="GtkImage" id="image"> - <property name="visible">1</property> <property name="icon-name">image-missing</property> <property name="use-fallback">1</property> </object> @@ -22,13 +21,11 @@ </style> <child> <object class="GtkBox" id="box"> - <property name="visible">1</property> <property name="orientation">vertical</property> <property name="margin">4</property> <property name="spacing">4</property> <child> <object class="GtkButton" id="plus_button"> - <property name="visible">1</property> <property name="can-focus">1</property> <property name="receives-default">1</property> <property name="relief">none</property> @@ -46,7 +43,6 @@ <child> <object class="GtkScale" id="scale"> <property name="height-request">100</property> - <property name="visible">1</property> <property name="can-focus">1</property> <property name="orientation">vertical</property> <property name="inverted">1</property> @@ -60,7 +56,6 @@ </child> <child> <object class="GtkButton" id="minus_button"> - <property name="visible">1</property> <property name="can-focus">1</property> <property name="receives-default">1</property> <property name="relief">none</property> diff --git a/gtk/ui/gtksearchbar.ui b/gtk/ui/gtksearchbar.ui index 05dde48fd8..7624ae2d73 100644 --- a/gtk/ui/gtksearchbar.ui +++ b/gtk/ui/gtksearchbar.ui @@ -4,16 +4,13 @@ <template class="GtkSearchBar" parent="GtkBin"> <child> <object class="GtkRevealer" id="revealer"> - <property name="visible">1</property> <property name="hexpand">1</property> <child> <object class="GtkBox" id="tool_box"> - <property name="visible">1</property> <property name="spacing">6</property> <property name="margin">6</property> <child> <object class="GtkBox" id="box_left"> - <property name="visible">1</property> <property name="halign">start</property> <property name="hexpand">1</property> <property name="orientation">vertical</property> @@ -24,7 +21,6 @@ </child> <child> <object class="GtkBox" id="box_center"> - <property name="visible">1</property> <property name="halign">center</property> <property name="orientation">vertical</property> </object> @@ -34,7 +30,6 @@ </child> <child> <object class="GtkBox" id="box_right"> - <property name="visible">1</property> <property name="halign">end</property> <property name="hexpand">1</property> <property name="orientation">vertical</property> @@ -49,7 +44,6 @@ </style> <child> <object class="GtkImage" id="close_image"> - <property name="visible">1</property> <property name="icon-size">1</property> <property name="icon-name">window-close-symbolic</property> </object> diff --git a/gtk/ui/gtksidebarrow.ui b/gtk/ui/gtksidebarrow.ui index 66b23ba920..39bff56046 100644 --- a/gtk/ui/gtksidebarrow.ui +++ b/gtk/ui/gtksidebarrow.ui @@ -1,7 +1,6 @@ <?xml version="1.0" encoding="UTF-8"?> <interface domain="gtk30"> <template class="GtkSidebarRow" parent="GtkListBoxRow"> - <property name="visible">True</property> <property name="margin-top">1</property> <property name="margin-bottom">1</property> <style> @@ -9,7 +8,6 @@ </style> <child> <object class="GtkRevealer" id="revealer"> - <property name="visible">1</property> <property name="reveal-child">1</property> <signal name="notify::child-revealed" handler="on_child_revealed"/> <style> @@ -17,13 +15,10 @@ </style> <child> <object class="GtkEventBox" id="event_box"> - <property name="visible">1</property> <child> <object class="GtkBox"> - <property name="visible">1</property> <child> <object class="GtkImage" id="icon_widget"> - <property name="visible">1</property> <style> <class name="sidebar-icon"/> </style> @@ -31,7 +26,6 @@ </child> <child> <object class="GtkLabel" id="label_widget"> - <property name="visible">1</property> <property name="hexpand">1</property> <property name="xalign">0</property> <style> @@ -41,7 +35,6 @@ </child> <child> <object class="GtkButton" id="eject_button"> - <property name="visible">1</property> <property name="halign">center</property> <property name="valign">center</property> <property name="margin-start">4px</property> diff --git a/gtk/ui/gtkstatusbar.ui b/gtk/ui/gtkstatusbar.ui index 299705648d..3d56215cf6 100644 --- a/gtk/ui/gtkstatusbar.ui +++ b/gtk/ui/gtkstatusbar.ui @@ -9,16 +9,13 @@ <property name="margin-bottom">6</property> <child> <object class="GtkFrame" id="frame"> - <property name="visible">1</property> <property name="shadow-type">none</property> <child> <object class="GtkBox" id="message_area"> - <property name="visible">1</property> <property name="spacing">4</property> <property name="margin">4</property> <child> <object class="GtkLabel" id="label"> - <property name="visible">1</property> <property name="halign">start</property> <property name="valign">center</property> <property name="ellipsize">end</property> diff --git a/gtk/ui/gtkvolumebutton.ui b/gtk/ui/gtkvolumebutton.ui index b2b99a1cc2..799769fe45 100644 --- a/gtk/ui/gtkvolumebutton.ui +++ b/gtk/ui/gtkvolumebutton.ui @@ -7,7 +7,6 @@ <property name="page-increment">0.2</property> </object> <template class="GtkVolumeButton" parent="GtkScaleButton"> - <property name="visible">1</property> <property name="can-focus">1</property> <property name="receives-default">1</property> <property name="has-tooltip">1</property> |