Commit ddbab143 authored by Mohammed Sadiq's avatar Mohammed Sadiq
Browse files

Update patches

parent facb7ee0
From 59c3617ab28ea3502af2eeebb8ce64e34c39ce1a Mon Sep 17 00:00:00 2001
From: Mohammed Sadiq <sadiq@sadiqpk.org>
Date: Mon, 25 Nov 2019 17:43:41 +0530
Subject: [PATCH] panel-list: Select panel iff non-folded when search is
cancelled
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
If the window is folded, the previous panel shouldn’t be shown when search
is cancelled. The panel selection list should be shown instead.
---
shell/cc-panel-list.c | 16 +++++++++++++---
1 file changed, 13 insertions(+), 3 deletions(-)
diff --git a/shell/cc-panel-list.c b/shell/cc-panel-list.c
index e5134ac6b..9c0a2bb53 100644
--- a/shell/cc-panel-list.c
+++ b/shell/cc-panel-list.c
@@ -233,10 +233,20 @@ update_search (CcPanelList *self)
if (self->view == CC_PANEL_LIST_MAIN)
switch_to_view (self, CC_PANEL_LIST_SEARCH);
}
- else
+ else if (self->view == CC_PANEL_LIST_SEARCH)
{
- if (self->view == CC_PANEL_LIST_SEARCH)
- switch_to_view (self, self->previous_view);
+ GtkSelectionMode selection_mode;
+ gboolean autoselect_panel;
+
+ /* Autoselect panel only if allowed. Autoselect of
+ * panel isn’t allowed if the panel is folded */
+ autoselect_panel = self->autoselect_panel;
+ selection_mode = gtk_list_box_get_selection_mode (GTK_LIST_BOX (self->main_listbox));
+ self->autoselect_panel = selection_mode != GTK_SELECTION_NONE;
+
+ switch_to_view (self, self->previous_view);
+
+ self->autoselect_panel = autoselect_panel;
}
gtk_list_box_invalidate_filter (GTK_LIST_BOX (self->search_listbox));
--
2.24.0
......@@ -11,6 +11,7 @@
0001-datetime-Fix-timezone-selection-map.patch
0001-network-Don-t-show-modems-supported-by-cellular-pane.patch
0001-notification-Hide-lockscreen-notification-option.patch
0001-panel-list-Select-panel-iff-non-folded-when-search-i.patch
0001-privacy-Port-dialogs-to-HdyDialog.patch
0001-region-Implement-new-design-for-Formats-dialog.patch
0001-region-Tweak-format-dialog.patch
......
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