Commit 441f546e authored by Adrien Plazas's avatar Adrien Plazas
Browse files

librem5: installed-page: Drop the selection button

This drops the selection button as well as the action bar containing the
selection actions as the action bar is too wide to fit in a phone and
the actions are not supported by Phosh anyway.
parent 8997b068
......@@ -288,14 +288,6 @@ gs_installed_page_reload (GsPage *page)
static void
gs_shell_update_button_select_visibility (GsInstalledPage *self)
gboolean show_button_select;
if (gs_utils_is_current_desktop ("GNOME")) {
show_button_select = g_settings_get_boolean (self->settings,
} else {
show_button_select = FALSE;
gtk_widget_set_visible (self->button_select, show_button_select);
static void
......@@ -591,7 +583,6 @@ set_selection_mode (GsInstalledPage *self, gboolean selection_mode)
gtk_button_set_image (GTK_BUTTON (self->button_select), NULL);
gtk_button_set_label (GTK_BUTTON (self->button_select), _("_Cancel"));
gtk_button_set_use_underline (GTK_BUTTON (self->button_select), TRUE);
gtk_widget_show (self->button_select);
widget = GTK_WIDGET (gtk_builder_get_object (self->builder, "viewswitcher_bar"));
gtk_widget_hide (widget);
widget = GTK_WIDGET (gtk_builder_get_object (self->builder, "menu_button"));
......@@ -605,7 +596,6 @@ set_selection_mode (GsInstalledPage *self, gboolean selection_mode)
gtk_style_context_remove_class (context, "selection-mode");
gtk_button_set_image (GTK_BUTTON (self->button_select), gtk_image_new_from_icon_name ("object-select-symbolic", GTK_ICON_SIZE_MENU));
gtk_button_set_label (GTK_BUTTON (self->button_select), NULL);
gtk_widget_show (self->button_select);
widget = GTK_WIDGET (gtk_builder_get_object (self->builder, "viewswitcher_bar"));
gtk_widget_show (widget);
widget = GTK_WIDGET (gtk_builder_get_object (self->builder, "menu_button"));
......@@ -53,7 +53,7 @@
<object class="GtkRevealer" id="bottom_install">
<property name="visible">True</property>
<property name="visible">False</property>
<property name="transition-type">slide-up</property>
<object class="GtkActionBar" id="action_bar">
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment