[gnome-software: 9/18] gs-shell: Drop unused widget
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software: 9/18] gs-shell: Drop unused widget
- Date: Thu, 15 Apr 2021 12:54:06 +0000 (UTC)
commit ab8585c1f70d59834111e809a11974932bf6da78
Author: Philip Withnall <pwithnall endlessos org>
Date: Thu Jan 28 19:59:34 2021 +0000
gs-shell: Drop unused widget
Signed-off-by: Philip Withnall <pwithnall endlessos org>
Helps: #1111
src/gs-shell.c | 3 ---
src/gs-shell.ui | 44 --------------------------------------------
2 files changed, 47 deletions(-)
---
diff --git a/src/gs-shell.c b/src/gs-shell.c
index bf6af0628..90626a813 100644
--- a/src/gs-shell.c
+++ b/src/gs-shell.c
@@ -84,7 +84,6 @@ struct _GsShell
GtkWidget *main_header;
GtkWidget *metered_updates_bar;
GtkWidget *menu_button;
- GtkWidget *header_selection_menu_button;
GtkWidget *search_button;
GtkWidget *entry_search;
GtkWidget *search_bar;
@@ -433,7 +432,6 @@ stack_notify_visible_child_cb (GObject *object,
mode == GS_SHELL_MODE_SEARCH);
gtk_widget_set_visible (shell->menu_button, buttonbox_visible);
- gtk_widget_hide (shell->header_selection_menu_button);
gtk_widget_set_visible (shell->application_details_header, !buttonbox_visible);
@@ -2310,7 +2308,6 @@ gs_shell_class_init (GsShellClass *klass)
gtk_widget_class_bind_template_child (widget_class, GsShell, stack_main);
gtk_widget_class_bind_template_child (widget_class, GsShell, metered_updates_bar);
gtk_widget_class_bind_template_child (widget_class, GsShell, menu_button);
- gtk_widget_class_bind_template_child (widget_class, GsShell, header_selection_menu_button);
gtk_widget_class_bind_template_child (widget_class, GsShell, search_button);
gtk_widget_class_bind_template_child (widget_class, GsShell, entry_search);
gtk_widget_class_bind_template_child (widget_class, GsShell, search_bar);
diff --git a/src/gs-shell.ui b/src/gs-shell.ui
index a36bfa4f9..52b958171 100644
--- a/src/gs-shell.ui
+++ b/src/gs-shell.ui
@@ -2,21 +2,6 @@
<interface>
<requires lib="gtk+" version="3.10"/>
<requires lib="handy" version="1.0"/>
- <object class="GtkMenu" id="header_selection_menu">
- <property name="visible">True</property>
- <child>
- <object class="GtkMenuItem" id="select_all_menuitem">
- <property name="visible">True</property>
- <property name="label" translatable="yes">Select All</property>
- </object>
- </child>
- <child>
- <object class="GtkMenuItem" id="select_none_menuitem">
- <property name="visible">True</property>
- <property name="label" translatable="yes">Select None</property>
- </object>
- </child>
- </object>
<menu id="primary_menu">
<item>
<attribute name="label" translatable="yes">_Software Repositories</attribute>
@@ -233,35 +218,6 @@
<property name="pack-type">end</property>
</packing>
</child>
- <child>
- <object class="GtkMenuButton" id="header_selection_menu_button">
- <property name="visible">False</property>
- <property name="popup">header_selection_menu</property>
- <style>
- <class name="selection-menu"/>
- </style>
- <child>
- <object class="GtkBox" id="header_selection_box">
- <property name="visible">True</property>
- <property name="spacing">6</property>
- <child>
- <object class="GtkLabel" id="header_selection_label">
- <property name="visible">True</property>
- </object>
- </child>
- <child>
- <object class="GtkArrow" id="header_selection_arrow">
- <property name="visible">True</property>
- <property name="arrow_type">down</property>
- </object>
- </child>
- </object>
- </child>
- </object>
- <packing>
- <property name="pack-type">end</property>
- </packing>
- </child>
</object>
</child>
</object>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]