[gnome-control-center/search-preserve-switch-state-on-drag] search: Preserve row switch state while dragging
- From: Felipe Borges <felipeborges src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center/search-preserve-switch-state-on-drag] search: Preserve row switch state while dragging
- Date: Tue, 10 Dec 2019 09:33:59 +0000 (UTC)
commit 30515f9303008c301724f6e2bbec677c218f217c
Author: Felipe Borges <felipeborges gnome org>
Date: Tue Dec 10 10:32:20 2019 +0100
search: Preserve row switch state while dragging
While dragging a row in order to reoder the search list, we create
a fake copy of the row that gets dragged into the position where
the user wants the row to be in. This fake row should have its
switch matching the state of its master copy.
Fixes #810
panels/search/cc-search-panel-row.c | 1 +
1 file changed, 1 insertion(+)
---
diff --git a/panels/search/cc-search-panel-row.c b/panels/search/cc-search-panel-row.c
index 8f64a44a3..e8ae5fb85 100644
--- a/panels/search/cc-search-panel-row.c
+++ b/panels/search/cc-search-panel-row.c
@@ -96,6 +96,7 @@ drag_begin_cb (CcSearchPanelRow *self,
gtk_widget_set_size_request (GTK_WIDGET (self->drag_widget), alloc.width, alloc.height);
drag_row = cc_search_panel_row_new (self->app_info);
+ gtk_switch_set_active (drag_row->switcher, gtk_switch_get_active (self->switcher));
gtk_widget_show (GTK_WIDGET (drag_row));
gtk_container_add (GTK_CONTAINER (self->drag_widget), GTK_WIDGET (drag_row));
gtk_list_box_drag_highlight_row (self->drag_widget, GTK_LIST_BOX_ROW (drag_row));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]