[gnome-control-center/search-preserve-switch-state-on-drag: 9/9] search: Preserve row switch state while dragging
- From: Robert Ancell <rancell src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center/search-preserve-switch-state-on-drag: 9/9] search: Preserve row switch state while dragging
- Date: Sun, 15 Dec 2019 21:31:59 +0000 (UTC)
commit dadc7cb252cea6b5e3de6f6c3730402b75adb1ad
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]