After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 775958 - Tweak panel UI towards the new design
Tweak panel UI towards the new design
Status: RESOLVED OBSOLETE
Product: gnome-control-center
Classification: Core
Component: Search
git master
Other Linux
: Normal normal
: ---
Assigned To: Cosimo Cecchi
Control-Center Maintainers
: 784301 (view as bug list)
Depends on: 689156 691703 704122
Blocks:
 
 
Reported: 2016-12-11 19:11 UTC by Felipe Borges
Modified: 2021-06-09 16:29 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
search: Place the whole content in a scrolled window (3.22 KB, patch)
2016-12-11 19:11 UTC, Felipe Borges
none Details | Review
search: Set min-content-height on the scrolled window (1.92 KB, patch)
2016-12-11 19:11 UTC, Felipe Borges
reviewed Details | Review
search: Use list box separators between entries (1.19 KB, patch)
2016-12-11 19:11 UTC, Felipe Borges
none Details | Review
search: Drop undesirable shadow of scrolled Window (800 bytes, patch)
2016-12-11 19:12 UTC, Felipe Borges
needs-work Details | Review
search: Place the whole content in a scrolled window (3.18 KB, patch)
2017-04-29 11:38 UTC, Felipe Borges
committed Details | Review
search: Use list box separators between entries (1.20 KB, patch)
2017-04-29 11:38 UTC, Felipe Borges
committed Details | Review
search: Introduce Drag and Drop (5.33 KB, patch)
2017-04-29 11:38 UTC, Felipe Borges
none Details | Review
search: Move the gear button to the top of the panel (4.27 KB, patch)
2017-04-29 11:38 UTC, Felipe Borges
none Details | Review
search: Drop move buttons (10.33 KB, patch)
2017-04-29 11:38 UTC, Felipe Borges
none Details | Review
search: Adjust panel height according to num of rows (2.43 KB, patch)
2017-04-29 11:38 UTC, Felipe Borges
none Details | Review
screencast (398.51 KB, video/webm)
2017-04-29 11:51 UTC, Felipe Borges
  Details
screenshot (46.46 KB, image/png)
2017-05-18 13:15 UTC, Felipe Borges
  Details
search: Make the list_box the DnD target (10.30 KB, patch)
2017-06-29 11:06 UTC, Felipe Borges
none Details | Review
search: Introduce reordering keyboard shortcut (2.69 KB, patch)
2017-08-09 14:02 UTC, Felipe Borges
none Details | Review
search: Add notification advertising the reordering shortcuts (3.75 KB, patch)
2017-08-09 14:19 UTC, Felipe Borges
none Details | Review
screenshot-notification (53.99 KB, image/png)
2017-08-09 14:21 UTC, Felipe Borges
  Details
Screenshot: proposal with keycaps (95.23 KB, image/png)
2017-08-09 14:23 UTC, Felipe Borges
  Details
search: Introduce Drag and Drop (5.33 KB, patch)
2017-09-12 10:17 UTC, Felipe Borges
none Details | Review
search: Move the gear button to the top of the panel (5.00 KB, patch)
2017-09-12 10:17 UTC, Felipe Borges
accepted-commit_now Details | Review
search: Drop move buttons (10.63 KB, patch)
2017-09-12 10:18 UTC, Felipe Borges
accepted-commit_now Details | Review
search: Adjust panel height according to num of rows (2.43 KB, patch)
2017-09-12 10:18 UTC, Felipe Borges
rejected Details | Review
search: Make the list_box the DnD target (10.30 KB, patch)
2017-09-12 10:18 UTC, Felipe Borges
none Details | Review
search: Introduce reordering keyboard shortcut (2.69 KB, patch)
2017-09-12 10:18 UTC, Felipe Borges
none Details | Review
search: Add notification advertising the reordering shortcuts (3.82 KB, patch)
2017-09-12 10:18 UTC, Felipe Borges
reviewed Details | Review
search: Introduce Drag and Drop (6.05 KB, patch)
2017-10-02 09:20 UTC, Felipe Borges
reviewed Details | Review
search: Make the list_box the DnD target (10.71 KB, patch)
2017-10-02 09:21 UTC, Felipe Borges
reviewed Details | Review
search: Introduce reordering keyboard shortcut (2.72 KB, patch)
2017-10-02 09:21 UTC, Felipe Borges
reviewed Details | Review
quick mockup (40.61 KB, image/png)
2017-10-03 11:44 UTC, Allan Day
  Details

Description Felipe Borges 2016-12-11 19:11:14 UTC
There are new mockups for the Search panel at https://wiki.gnome.org/Design/SystemSettings/Search

The following patches gradually tweak the panel towards the new design.

I will use this bug to track the other bugs which are required for the completion of the new panel.
Comment 1 Felipe Borges 2016-12-11 19:11:46 UTC
Created attachment 341771 [details] [review]
search: Place the whole content in a scrolled window

A step towards the new panel design is to place all
the panel content inside of a scrolled window, instead
of just the list box.

The new panel mockups are available at
https://wiki.gnome.org/Design/SystemSettings/Search
Comment 2 Felipe Borges 2016-12-11 19:11:52 UTC
Created attachment 341772 [details] [review]
search: Set min-content-height on the scrolled window

Set a minimum content height of 490px for the panel when the
allocated height is smaller than 490px.

490 is an estimated value for the panels to properly fit on netbook
screens. See https://wiki.gnome.org/Design/SystemSettings#Notes
Comment 3 Felipe Borges 2016-12-11 19:11:58 UTC
Created attachment 341773 [details] [review]
search: Use list box separators between entries
Comment 4 Felipe Borges 2016-12-11 19:12:04 UTC
Created attachment 341774 [details] [review]
search: Drop undesirable shadow of scrolled Window
Comment 5 Bastien Nocera 2017-01-03 11:44:00 UTC
Review of attachment 341771 [details] [review]:

Sure.
Comment 6 Bastien Nocera 2017-01-03 11:44:49 UTC
Review of attachment 341772 [details] [review]:

That function again. Didn't we put that in a common place?
Comment 7 Bastien Nocera 2017-01-03 11:45:16 UTC
Review of attachment 341773 [details] [review]:

Yep.
Comment 8 Bastien Nocera 2017-01-03 11:45:49 UTC
Review of attachment 341774 [details] [review]:

Merge that into the first patch adding the scrolled window?
Comment 9 Felipe Borges 2017-03-14 12:32:57 UTC
(In reply to Bastien Nocera from comment #6)
> Review of attachment 341772 [details] [review] [review]:
> 
> That function again. Didn't we put that in a common place?

we did but these utilities don't quite apply in this case since we are embedding other content in the scrolled_window, such as the toolbar in the bottom.

It will suit us better when we will have drag and drop.
Comment 10 Felipe Borges 2017-04-29 11:36:36 UTC
Comment on attachment 341774 [details] [review]
search: Drop undesirable shadow of scrolled Window

it will be merged in the first patch.
Comment 11 Felipe Borges 2017-04-29 11:38:06 UTC
Created attachment 350720 [details] [review]
search: Place the whole content in a scrolled window

A step towards the new panel design is to place all
the panel content inside of a scrolled window, instead
of just the list box.

The new panel mockups are available at
https://wiki.gnome.org/Design/SystemSettings/Search
Comment 12 Felipe Borges 2017-04-29 11:38:12 UTC
Created attachment 350721 [details] [review]
search: Use list box separators between entries
Comment 13 Felipe Borges 2017-04-29 11:38:21 UTC
Created attachment 350722 [details] [review]
search: Introduce Drag and Drop

These changes are according to the design guidelines available
at https://wiki.gnome.org/Design/SystemSettings/Search
Comment 14 Felipe Borges 2017-04-29 11:38:27 UTC
Created attachment 350723 [details] [review]
search: Move the gear button to the top of the panel

Also introduce panel usage instructions.

These changes are according to the design guidelines available at
https://wiki.gnome.org/Design/SystemSettings/Search
Comment 15 Felipe Borges 2017-04-29 11:38:34 UTC
Created attachment 350724 [details] [review]
search: Drop move buttons

Since we now support Drag & Drop to sort the list.

These changes are according to the design guidelines available
at https://wiki.gnome.org/Design/SystemSettings/Search
Comment 16 Felipe Borges 2017-04-29 11:38:40 UTC
Created attachment 350725 [details] [review]
search: Adjust panel height according to num of rows

We cannot benefit here from the cc_list_box_setup_scrolling ()
list-box helper function because we are also embedding other
widgets in the scrolled window, such as the box which contains
the panel usage instructions and the gear button.

In doing so, we manually set the "cc-scrolling-scrolled-window"
and "cc-max-row-visible" properties in the GtkListBox so the
cc_list_box_adjust_scrolling () helper function can properly
calculate the total height of the visible list box rows.

MAX_ROWS_VISIBLE is arbitrarily set to 7 instead of 5 because
the other children of the scrolled window are not computed in
the cc_list_box_adjust_scrolling () function. The two lines
GtkLabel height summed to its vertical margins should equal
something around the size of two rows (2 + 5 = 7).

This commit should be reverted when the new Control Center
resizable shell gets introduced.
Comment 17 Felipe Borges 2017-04-29 11:40:35 UTC
Attachment 350720 [details] pushed as a0dccaf - search: Place the whole content in a scrolled window
Attachment 350721 [details] pushed as f14829c - search: Use list box separators between entries
Comment 18 Felipe Borges 2017-04-29 11:51:13 UTC
Created attachment 350726 [details]
screencast
Comment 19 Bastien Nocera 2017-04-29 11:55:05 UTC
(In reply to Felipe Borges from comment #15)
> Created attachment 350724 [details] [review] [review]
> search: Drop move buttons
> 
> Since we now support Drag & Drop to sort the list.
> 
> These changes are according to the design guidelines available
> at https://wiki.gnome.org/Design/SystemSettings/Search

I'm pretty sure we don't want to do that, this makes the list reordering unusable with the keyboard, unless there's another, standard, way to start a reorder?
Comment 20 Felipe Borges 2017-04-30 10:48:41 UTC
Comment on attachment 350724 [details] [review]
search: Drop move buttons

(In reply to Bastien Nocera from comment #19)
> (In reply to Felipe Borges from comment #15)
> > Created attachment 350724 [details] [review] [review] [review]
> > search: Drop move buttons
> > 
> > Since we now support Drag & Drop to sort the list.
> > 
> > These changes are according to the design guidelines available
> > at https://wiki.gnome.org/Design/SystemSettings/Search
> 
> I'm pretty sure we don't want to do that, this makes the list reordering
> unusable with the keyboard, unless there's another, standard, way to start a
> reorder?

Alright. We don't need to apply this patch. The following ones apply clearly without it too.
Comment 21 Felipe Borges 2017-04-30 10:54:31 UTC
The only step back here would be that you just see the arrow buttons by reaching the end of the scrollbar.

For that I suggest:
1. Move the toolbar above the list box?
2. Embed the listbox itself on a scrolled window? (like it is now on master) - but makes it harder to drag and drop.
3. Overlay the arrow buttons when a list box row gets selected/activated?

I am including Allan in the convo so he can contribute as well.
Comment 22 Felipe Borges 2017-05-18 13:15:47 UTC
Created attachment 352099 [details]
screenshot

@mclasen pointed out at the behavior or ordering a listbox in GNOME Recipes.

It has the row handlers just like the implementation of these patches above AND it also supports using Alt+Up/Down to reorder the rows.

@hadess thinks the shortcut approach is not very discoverable.

I suggested that we could advertise the shortcut in the label that we already have on top of the list. (See screenshot).

p.s.: ignore the duplicate entries in the screenshot, it's because of my jhbuild setup.
Comment 23 Felipe Borges 2017-05-30 11:49:09 UTC
(In reply to Bastien Nocera from comment #19)
> (In reply to Felipe Borges from comment #15)
> > Created attachment 350724 [details] [review] [review] [review]
> > search: Drop move buttons
> > 
> > Since we now support Drag & Drop to sort the list.
> > 
> > These changes are according to the design guidelines available
> > at https://wiki.gnome.org/Design/SystemSettings/Search
> 
> I'm pretty sure we don't want to do that, this makes the list reordering
> unusable with the keyboard, unless there's another, standard, way to start a
> reorder?

We didn't support reordering with the keyboard before either, did we?
Comment 24 Bastien Nocera 2017-05-30 13:32:43 UTC
(In reply to Felipe Borges from comment #23)
> (In reply to Bastien Nocera from comment #19)
> > (In reply to Felipe Borges from comment #15)
> > > Created attachment 350724 [details] [review] [review] [review] [review]
> > > search: Drop move buttons
> > > 
> > > Since we now support Drag & Drop to sort the list.
> > > 
> > > These changes are according to the design guidelines available
> > > at https://wiki.gnome.org/Design/SystemSettings/Search
> > 
> > I'm pretty sure we don't want to do that, this makes the list reordering
> > unusable with the keyboard, unless there's another, standard, way to start a
> > reorder?
> 
> We didn't support reordering with the keyboard before either, did we?

You can navigate to the up/down buttons just fine with the keyboard.
Comment 25 Jorge Toledo 2017-06-28 20:51:11 UTC
HI, I've been asked to report Bug 784301 (enhancement) in this thread.

Does it apply here? Should I copy the comment and attachment here and close the previous bug? Sorry for the dumb questions, I'm new to this.
Comment 26 Felipe Borges 2017-06-29 11:06:05 UTC
(In reply to Jorge Toledo from comment #25)
> HI, I've been asked to report Bug 784301 (enhancement) in this thread.
> 
> Does it apply here? Should I copy the comment and attachment here and close
> the previous bug? Sorry for the dumb questions, I'm new to this.

Hi, thanks for testing and reporting the bug. Your report is valid and very relevant. I will attach bellow a fix and push the changes to the wip/feborges/new-search-panel branch for testing purposes.

Be aware that WIP branches are experimental and in a very early stage of development.

Your feedback is very welcomed.
Comment 27 Felipe Borges 2017-06-29 11:06:38 UTC
Created attachment 354684 [details] [review]
search: Make the list_box the DnD target

By making the list_box itself the Drag and Drop target, we are
able to use CSS to create a gap between the rows while on hover.
Comment 28 Felipe Borges 2017-06-29 11:11:15 UTC
*** Bug 784301 has been marked as a duplicate of this bug. ***
Comment 29 Felipe Borges 2017-08-09 14:02:16 UTC
Created attachment 357268 [details] [review]
search: Introduce reordering keyboard shortcut

Alt + UP/DOWN
Comment 30 Felipe Borges 2017-08-09 14:19:58 UTC
Created attachment 357273 [details] [review]
search: Add notification advertising the reordering shortcuts

When a list row is selected, reveal a notification instructing
how to reorder the list with the keyboard shortcuts.

"Use Alt+↑ and Alt+↓ to move rows"
Comment 31 Felipe Borges 2017-08-09 14:21:30 UTC
Created attachment 357274 [details]
screenshot-notification

(In reply to Felipe Borges from comment #30)
> Created attachment 357273 [details] [review] [review]
> search: Add notification advertising the reordering shortcuts

The attached screenshot shows how the notification looks like.
Comment 32 Felipe Borges 2017-08-09 14:23:07 UTC
Created attachment 357275 [details]
Screenshot: proposal with keycaps

We could use keycaps in the shortcuts, if desirable (see example in the screenshot attached).
Comment 33 Felipe Borges 2017-09-12 10:17:50 UTC
Created attachment 359599 [details] [review]
search: Introduce Drag and Drop

These changes are according to the design guidelines available
at https://wiki.gnome.org/Design/SystemSettings/Search
Comment 34 Felipe Borges 2017-09-12 10:17:57 UTC
Created attachment 359600 [details] [review]
search: Move the gear button to the top of the panel

Also introduce panel usage instructions.

These changes are according to the design guidelines available at
https://wiki.gnome.org/Design/SystemSettings/Search
Comment 35 Felipe Borges 2017-09-12 10:18:03 UTC
Created attachment 359601 [details] [review]
search: Drop move buttons

Since we now support Drag & Drop to sort the list.

These changes are according to the design guidelines available
at https://wiki.gnome.org/Design/SystemSettings/Search
Comment 36 Felipe Borges 2017-09-12 10:18:09 UTC
Created attachment 359602 [details] [review]
search: Adjust panel height according to num of rows

We cannot benefit here from the cc_list_box_setup_scrolling ()
list-box helper function because we are also embedding other
widgets in the scrolled window, such as the box which contains
the panel usage instructions and the gear button.

In doing so, we manually set the "cc-scrolling-scrolled-window"
and "cc-max-row-visible" properties in the GtkListBox so the
cc_list_box_adjust_scrolling () helper function can properly
calculate the total height of the visible list box rows.

MAX_ROWS_VISIBLE is arbitrarily set to 7 instead of 5 because
the other children of the scrolled window are not computed in
the cc_list_box_adjust_scrolling () function. The two lines
GtkLabel height summed to its vertical margins should equal
something around the size of two rows (2 + 5 = 7).

This commit should be reverted when the new Control Center
resizable shell gets introduced.
Comment 37 Felipe Borges 2017-09-12 10:18:16 UTC
Created attachment 359603 [details] [review]
search: Make the list_box the DnD target

By making the list_box itself the Drag and Drop target, we are
able to use CSS to create a gap between the rows while on hover.
Comment 38 Felipe Borges 2017-09-12 10:18:23 UTC
Created attachment 359604 [details] [review]
search: Introduce reordering keyboard shortcut

Alt + UP/DOWN
Comment 39 Felipe Borges 2017-09-12 10:18:29 UTC
Created attachment 359605 [details] [review]
search: Add notification advertising the reordering shortcuts

When a list row is selected, reveal a notification instructing
how to reorder the list with the keyboard shortcuts.

"Use Alt+↑ and Alt+↓ to move rows"
Comment 40 Rui Matos 2017-09-26 15:38:10 UTC
Review of attachment 359605 [details] [review]:

::: panels/search/search.ui
@@ +2,3 @@
 <interface>
   <!-- interface-requires gtk+ 3.0 -->
+<object class="GtkOverlay" id="search_vbox">

not a fan of how this look, overlayed on top of the panel's main (top) label. especially since it doesn't go away after it shows up.

perhaps it could go at the bottom, after the list? and perhaps be permanently visible?

@@ +13,3 @@
+        <object class="GtkLabel">
+          <property name="visible">True</property>
+          <property name="label" translatable="yes">Use Alt+↑ and Alt+↓ to move rows</property>

maybe this could use GtkShortcutsShortcut to show the shortcuts?
Comment 41 Rui Matos 2017-09-26 15:45:07 UTC
Review of attachment 359604 [details] [review]:

::: panels/search/cc-search-panel.c
@@ +555,3 @@
+
+  source_parent = gtk_widget_get_parent (source);
+  target_parent = gtk_widget_get_parent (target);

their parent should really be the same instance so we only need one of them, right? could just pass the list box as an argument into the function

@@ +585,3 @@
+  target = GTK_WIDGET (gtk_list_box_get_row_at_index (GTK_LIST_BOX (self->priv->list_box), index));
+  if (target) {
+    gtk_list_box_set_sort_func (GTK_LIST_BOX (self->priv->list_box), NULL, NULL, NULL);

same question as in the dnd patch
Comment 42 Rui Matos 2017-09-26 15:45:53 UTC
Review of attachment 359603 [details] [review]:

::: panels/search/cc-search-panel.c
@@ +380,3 @@
+      tmp = gtk_list_box_get_row_at_index (list, i);
+      if (tmp == NULL)
+        return row;

we will probably never have enough rows for this to be an issue but still I think it would be better to just keep track of how many rows we have instead of doing it like this

@@ +577,3 @@
   gtk_container_add (GTK_CONTAINER (box), handle);
 
+  gtk_style_context_add_class (gtk_widget_get_style_context (row), "row");

is this needed? GtkListBoxRow class already sets its css name as "row"

@@ +957,3 @@
+                    G_CALLBACK (drag_leave), NULL);
+
+  provider = gtk_css_provider_new ();

needs to be unrefed or use autoptr

@@ +960,3 @@
+  gtk_css_provider_load_from_data (provider, css, -1, NULL);
+  gtk_style_context_add_provider_for_screen (gdk_screen_get_default (),
+                                             GTK_STYLE_PROVIDER (provider), 800);

GTK_STYLE_PROVIDER_PRIORITY_APPLICATION ?

but shouldn't this css be in gtk+? it seems quite general to me
Comment 43 Rui Matos 2017-09-26 15:46:22 UTC
Review of attachment 359599 [details] [review]:

::: panels/search/cc-search-panel.c
@@ +447,3 @@
+}
+
+static GtkTargetEntry entries[] = {

too generic, maybe drag_target_entries

@@ +465,3 @@
+   * We don't drop the sorting entirely because you want the list to be
+   * sorted when there is no previous sorting stored. */
+  gtk_list_box_set_sort_func (list_box, NULL, NULL, NULL);

shouldn't this be undone in a drag-end handler? if the gsetting changes after we drag a row the listbox won't sync with it.

in fact, what happens if the gsetting changes while we have the drag going?

@@ +469,3 @@
+  row = gtk_widget_get_ancestor (widget, GTK_TYPE_LIST_BOX_ROW);
+  gtk_widget_get_allocation (row, &alloc);
+  surface = cairo_image_surface_create (CAIRO_FORMAT_ARGB32, alloc.width, alloc.height);

this should probably be gdk_window_create_similar_surface() since we don't really need an image surface (and there's gdk API to get an image one too)

@@ +531,3 @@
+  gtk_container_foreach (GTK_CONTAINER (self->priv->list_box), update_row_position, self);
+
+  search_panel_propagate_sort_order (self);

shouldn't gtk_drag_finish() be called?

@@ +564,3 @@
+  /* Drag and Drop */
+  handle = gtk_event_box_new ();
+  gtk_container_add (GTK_CONTAINER (handle), gtk_image_new_from_icon_name ("open-menu-symbolic", 1));

instead of 1 we should use a GtkIconSize enum value
Comment 44 Rui Matos 2017-09-26 15:46:42 UTC
Review of attachment 359600 [details] [review]:

ok
Comment 45 Rui Matos 2017-09-26 15:47:11 UTC
Review of attachment 359601 [details] [review]:

sure
Comment 46 Rui Matos 2017-09-26 15:47:18 UTC
Review of attachment 359602 [details] [review]:

we're using the resizable shell now so do we still need this?
Comment 47 Felipe Borges 2017-10-02 09:18:26 UTC
(In reply to Rui Matos from comment #40)
> Review of attachment 359605 [details] [review] [review]:
> 
> ::: panels/search/search.ui
> @@ +2,3 @@
>  <interface>
>    <!-- interface-requires gtk+ 3.0 -->
> +<object class="GtkOverlay" id="search_vbox">
> 
> not a fan of how this look, overlayed on top of the panel's main (top)
> label. especially since it doesn't go away after it shows up.
> 
> perhaps it could go at the bottom, after the list? and perhaps be
> permanently visible?

Not sure whether this helps with the discoverability problem.

What if it would go away after the first usage of the shortcuts?

> 
> @@ +13,3 @@
> +        <object class="GtkLabel">
> +          <property name="visible">True</property>
> +          <property name="label" translatable="yes">Use Alt+↑ and Alt+↓ to
> move rows</property>
> 
> maybe this could use GtkShortcutsShortcut to show the shortcuts?

The initial implementation was using GtkShortcutsShortcut but Allan suggested to not use them.
Comment 48 Felipe Borges 2017-10-02 09:19:05 UTC
Comment on attachment 359602 [details] [review]
search: Adjust panel height according to num of rows

(In reply to Rui Matos from comment #46)
> Review of attachment 359602 [details] [review] [review]:
> 
> we're using the resizable shell now so do we still need this?

No, we don't.
Comment 49 Felipe Borges 2017-10-02 09:20:19 UTC
Created attachment 360747 [details] [review]
search: Introduce Drag and Drop

These changes are according to the design guidelines available
at https://wiki.gnome.org/Design/SystemSettings/Search
Comment 50 Felipe Borges 2017-10-02 09:21:18 UTC
Created attachment 360748 [details] [review]
search: Make the list_box the DnD target

By making the list_box itself the Drag and Drop target, we are
able to use CSS to create a gap between the rows while on hover.
Comment 51 Felipe Borges 2017-10-02 09:21:25 UTC
Created attachment 360749 [details] [review]
search: Introduce reordering keyboard shortcut

Alt + UP/DOWN
Comment 52 Felipe Borges 2017-10-02 09:24:03 UTC
(In reply to Rui Matos from comment #42)
> Review of attachment 359603 [details] [review] [review]:
> 
> ::: panels/search/cc-search-panel.c
> @@ +577,3 @@
>    gtk_container_add (GTK_CONTAINER (box), handle);
>  
> +  gtk_style_context_add_class (gtk_widget_get_style_context (row), "row");
> 
> is this needed? GtkListBoxRow class already sets its css name as "row"

The custom css provided in the code doesn't seem to get applied without this. 

> 
> @@ +960,3 @@
> +  gtk_css_provider_load_from_data (provider, css, -1, NULL);
> +  gtk_style_context_add_provider_for_screen (gdk_screen_get_default (),
> +                                             GTK_STYLE_PROVIDER (provider),
> 800);
> 
> GTK_STYLE_PROVIDER_PRIORITY_APPLICATION ?
> 
> but shouldn't this css be in gtk+? it seems quite general to me

Eventually GtkListBox will wrap the whole drag and drop machinery in Gtk+, but so far we need to provide our custom css since it is not there yet.
Comment 53 Allan Day 2017-10-03 11:44:55 UTC
Created attachment 360825 [details]
quick mockup

(In reply to Felipe Borges from comment #47)
> (In reply to Rui Matos from comment #40)
...
> > not a fan of how this look, overlayed on top of the panel's main (top)
> > label. especially since it doesn't go away after it shows up.

Yes, it is quite visually dominant.

> > perhaps it could go at the bottom, after the list?

Placing the hint at the bottom and making it smaller will help to make it feel less intrusive - see the attached image for how it could look.

> > and perhaps be
> > permanently visible?

I'm not sure why you'd want to make it permanently visible. Moving the rows using the keyboard isn't going to be very common and you have to figure out how to give keyboard focus the list in the first place, which a lot of people won't know how to do.
 
> Not sure whether this helps with the discoverability problem.
> 
> What if it would go away after the first usage of the shortcuts?

The problem with hiding after the first usage of the shortcuts is that people might not remember them...
Comment 54 Bastien Nocera 2017-10-03 15:49:39 UTC
(In reply to Felipe Borges from comment #52)
<snip>
> Eventually GtkListBox will wrap the whole drag and drop machinery in Gtk+,
> but so far we need to provide our custom css since it is not there yet.

When? This cycle? Shouldn't we land this in GTK+ ASAP rather than implement it here and wonder why we need to reimplement it in the Notifications, Privacy, or other similar panels?
Comment 55 Georges Basile Stavracas Neto 2018-01-23 00:59:53 UTC
Marking these patches as reviewed until further action is taken. I agree this should be living in GTK+ side, for G-C-C is not the only module that would benefit from DnD in GtkListBox.
Comment 56 André Klapper 2021-06-09 16:29:24 UTC
GNOME is going to shut down bugzilla.gnome.org in favor of gitlab.gnome.org.
As part of that, we are mass-closing older open tickets in bugzilla.gnome.org
which have not seen updates for a longer time (resources are unfortunately
quite limited so not every ticket can get handled).

If you can still reproduce the situation described in this ticket in a recent
and supported software version, then please follow
  https://wiki.gnome.org/GettingInTouch/BugReportingGuidelines
and create a new bug report at
  https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/

Thank you for your understanding and your help.