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 747793 - Implement part of bookmarks mockups
Implement part of bookmarks mockups
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Widget: GtkFileChooser
unspecified
Other All
: Normal normal
: ---
Assigned To: gtk-bugs
Federico Mena Quintero
: 747641 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2015-04-13 18:19 UTC by Carlos Soriano
Modified: 2015-07-06 11:18 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
gtkplacessidebar: new bookmark row only at first position (8.15 KB, patch)
2015-04-13 18:19 UTC, Carlos Soriano
none Details | Review
gtkplacessidebar: add API for emulate drag sources (7.66 KB, patch)
2015-04-13 18:19 UTC, Carlos Soriano
none Details | Review
gtkplacessidebar: add new bookmark icon (1.66 KB, patch)
2015-04-13 18:20 UTC, Carlos Soriano
none Details | Review
gtkfilechooserwidget: show drop hints on gtkplacessidebar (3.70 KB, patch)
2015-04-13 18:20 UTC, Carlos Soriano
none Details | Review
gtkplacessidebar: make insensitive invalid drop targets (6.57 KB, patch)
2015-04-15 17:33 UTC, Carlos Soriano
none Details | Review
gtkplacessidebar: add color the new bookmark row (3.75 KB, patch)
2015-04-15 17:34 UTC, Carlos Soriano
reviewed Details | Review
gtkplacessidebar: new bookmark row only at first position (8.15 KB, patch)
2015-05-02 20:52 UTC, Carlos Soriano
none Details | Review
gtkplacessidebar: add API for emulate drag sources (7.61 KB, patch)
2015-05-02 20:53 UTC, Carlos Soriano
needs-work Details | Review
gtkplacessidebar: add new bookmark icon (1.66 KB, patch)
2015-05-02 20:53 UTC, Carlos Soriano
none Details | Review
gtkplacessidebar: make insensitive invalid drop targets (6.69 KB, patch)
2015-05-02 20:53 UTC, Carlos Soriano
none Details | Review
patch (3.73 KB, patch)
2015-05-02 20:59 UTC, Carlos Soriano
accepted-commit_now Details | Review
gtkplacessidebar: new bookmark row only at first position (8.26 KB, patch)
2015-05-06 10:54 UTC, Carlos Soriano
none Details | Review
gtkplacessidebar: add API for show drop hints (8.37 KB, patch)
2015-05-06 10:55 UTC, Carlos Soriano
none Details | Review
gtkplacessidebar: make insensitive invalid drop targets (4.63 KB, patch)
2015-05-06 10:56 UTC, Carlos Soriano
none Details | Review
gtkplacessidebar: add API for show drop hints (8.37 KB, patch)
2015-05-06 10:59 UTC, Carlos Soriano
none Details | Review
gtkplacessidebar: add API for show drop hints (8.29 KB, patch)
2015-05-11 17:42 UTC, Carlos Soriano
none Details | Review
gtkplacessidebar: make insensitive invalid drop targets (4.67 KB, patch)
2015-05-11 17:42 UTC, Carlos Soriano
none Details | Review
gtkfilechooserwidget: show drop hints on gtkplacessidebar (3.76 KB, patch)
2015-05-11 17:43 UTC, Carlos Soriano
none Details | Review
gtkplacessidebar: new bookmark row only at first position (8.26 KB, patch)
2015-05-12 14:19 UTC, Carlos Soriano
none Details | Review
gtkplacessidebar: add API for show drop hints (8.29 KB, patch)
2015-05-12 14:19 UTC, Carlos Soriano
none Details | Review
gtkplacessidebar: add new bookmark icon (1.69 KB, patch)
2015-05-12 14:20 UTC, Carlos Soriano
none Details | Review
gtkplacessidebar: make insensitive invalid drop targets (4.67 KB, patch)
2015-05-12 14:20 UTC, Carlos Soriano
none Details | Review
gtkfilechooserwidget: show drop hints on gtkplacessidebar.patch (62.97 KB, patch)
2015-05-12 14:28 UTC, Carlos Soriano
none Details | Review

Description Carlos Soriano 2015-04-13 18:19:48 UTC
Still need to figure out how to dim the labels in the cell renderer,
since seems sensitive=FALSE doesn't render them with dim-label
Comment 1 Carlos Soriano 2015-04-13 18:19:53 UTC
Created attachment 301478 [details] [review]
gtkplacessidebar: new bookmark row only at first position

Following the new mockups, put the new bookmark row always
in the first position, so it's easier to drop an item.
Comment 2 Carlos Soriano 2015-04-13 18:19:58 UTC
Created attachment 301479 [details] [review]
gtkplacessidebar: add API for emulate drag sources

It is convenient to allow applications to show all the drop
targets at once.
This improves the user experience with drag an drop.
Comment 3 Carlos Soriano 2015-04-13 18:20:04 UTC
Created attachment 301480 [details] [review]
gtkplacessidebar: add new bookmark icon

Following design mockups
Comment 4 Carlos Soriano 2015-04-13 18:20:09 UTC
Created attachment 301481 [details] [review]
gtkfilechooserwidget: show drop hints on gtkplacessidebar

Now with the API addition on gtkplacessidebar, we can show some
hints for the drop targets.
Comment 5 Matthias Clasen 2015-04-14 19:35:26 UTC
Review of attachment 301479 [details] [review]:

::: gtk/gtkplacessidebar.c
@@ +5285,3 @@
+ * has been finished.
+ *
+ * Since: 3.18

I don't like the name much. There's nothing being emulated here, really. We just want the sidebar to switch to a mode in which it shows its drop target.

Maybe gtk_places_sidebar_set_drop_target_visible (GtkPlacesSidebar, gboolean) ?
Comment 6 Matthias Clasen 2015-04-14 20:30:45 UTC
Review of attachment 301478 [details] [review]:

looks ok
Comment 7 Matthias Clasen 2015-04-14 20:32:14 UTC
Review of attachment 301480 [details] [review]:

::: gtk/gtkplacessidebar.c
@@ +1676,3 @@
   if (sidebar->drop_state == DROP_STATE_NORMAL)
     {
+      new_bookmark_icon =g_themed_icon_new ("bookmark-new-symbolic");

missing space after =
Comment 8 Matthias Clasen 2015-04-14 20:34:53 UTC
Review of attachment 301481 [details] [review]:

ok, modulo renaming of the api.
Comment 9 Matthias Clasen 2015-04-14 20:36:36 UTC
*** Bug 747641 has been marked as a duplicate of this bug. ***
Comment 10 Matthias Clasen 2015-04-14 22:32:33 UTC
one placessidebar annoyance we should fix while we are touching all this:

Make sure that we don't ellipsize the 'built-in' items, such as

Enter Location
New Bookmark
Browse Network

out of the box.
Comment 11 Carlos Soriano 2015-04-15 08:46:24 UTC
(In reply to Matthias Clasen from comment #8)
> Review of attachment 301481 [details] [review] [review]:
> 
> ok, modulo renaming of the api.

What does that mean?
Comment 12 Carlos Soriano 2015-04-15 08:49:58 UTC
(In reply to Matthias Clasen from comment #10)
> one placessidebar annoyance we should fix while we are touching all this:
> 
> Make sure that we don't ellipsize the 'built-in' items, such as
> 
> Enter Location
> New Bookmark
> Browse Network
> 
> out of the box.

To be honest, I though it's a good idea to stop using GtkTreeView (since we don't use a hierarchy at all) and port it to GtkListBox.

This will fix the hover state, css theming, eject button, etc.

So not sure if worth the effort to fix now some things. I would do it for 3.18.
Comment 13 Carlos Soriano 2015-04-15 17:33:43 UTC
Created attachment 301663 [details] [review]
gtkplacessidebar: make insensitive invalid drop targets
Comment 14 Carlos Soriano 2015-04-15 17:34:00 UTC
Created attachment 301664 [details] [review]
gtkplacessidebar: add color the new bookmark row

So it's more noticeable
Comment 15 Lapo Calamandrei 2015-04-15 18:20:26 UTC
The label rendering is a theme issue
Comment 16 Lapo Calamandrei 2015-04-15 18:23:10 UTC
Ditto, *was* a theme issue :-)

commit 149e7df6085dd13728e598f181a7a3221cd630ee
Author: Lapo Calamandrei <calamandrei@gmail.com>
Date:   Wed Apr 15 20:20:52 2015 +0200

    Adwaita: GtkPlacesSidebar insensitive items.
    
    Set the right colors there.
Comment 17 Carlos Soriano 2015-04-15 18:54:19 UTC
(In reply to Lapo Calamandrei from comment #16)
> Ditto, *was* a theme issue :-)
> 
> commit 149e7df6085dd13728e598f181a7a3221cd630ee
> Author: Lapo Calamandrei <calamandrei@gmail.com>
> Date:   Wed Apr 15 20:20:52 2015 +0200
> 
>     Adwaita: GtkPlacesSidebar insensitive items.
>     
>     Set the right colors there.

Ah, my patch included the fix for this, but your commit uses others colors that are probably more logical =)
I will commit without that part of the patch.
Comment 18 Matthias Clasen 2015-04-17 01:09:09 UTC
(In reply to Carlos Soriano from comment #11)
> (In reply to Matthias Clasen from comment #8)
> > Review of attachment 301481 [details] [review] [review] [review]:
> > 
> > ok, modulo renaming of the api.
> 
> What does that mean?

I meant that the name changes from the previous patch will need to be reflected here.
Comment 19 Matthias Clasen 2015-04-28 14:16:30 UTC
Review of attachment 301479 [details] [review]:

::: gtk/gtkplacessidebar.c
@@ +1833,3 @@
 
+static void
+drag_finalize (GtkPlacesSidebar *sidebar)

Not a fan of this name either - 'finalize' has a fairly specific meaning in gobject code bases.

Better to call this something else
Comment 20 Matthias Clasen 2015-04-28 14:26:43 UTC
Review of attachment 301663 [details] [review]:

Looks

::: gtk/gtkplacessidebar.c
@@ +1894,3 @@
+      stop_drop_feedback (sidebar);
+      update_possible_drop_targets (sidebar, FALSE);
+    }

Should update_possible_drop_targets just be called in stop_drop_feedback, perhaps ? ?
Comment 21 Matthias Clasen 2015-04-28 14:28:56 UTC
Review of attachment 301664 [details] [review]:

I have to try this again, I seem to remember that this felt a bit abrupt - a transition would be nicer, but that will have to wait for de-treeview-ification.

I'm also afraid that hardcoding black will not work great with a dark theme...
Comment 22 Carlos Soriano 2015-04-30 09:17:45 UTC
(In reply to Matthias Clasen from comment #21)
> Review of attachment 301664 [details] [review] [review]:
> 
> I have to try this again, I seem to remember that this felt a bit abrupt - a
> transition would be nicer, but that will have to wait for
> de-treeview-ification.
> 
> I'm also afraid that hardcoding black will not work great with a dark
> theme...

Yeah, it will come soon anyway.

What do you propose for the background then? If we have to take into account all themes possibilites... should I use css or something?
Comment 23 Lapo Calamandrei 2015-04-30 10:07:23 UTC
If you give me a style class I can take care of the recoloring in adwaita, as a bonus you can reuse it when it is de-treeviewified
Comment 24 Carlos Soriano 2015-05-02 20:52:54 UTC
Created attachment 302769 [details] [review]
gtkplacessidebar: new bookmark row only at first position

Following the new mockups, put the new bookmark row always
in the first position, so it's easier to drop an item.
Comment 25 Carlos Soriano 2015-05-02 20:53:03 UTC
Created attachment 302770 [details] [review]
gtkplacessidebar: add API for emulate drag sources

It is convenient to allow applications to show all the drop
targets at once.
This improves the user experience with drag an drop.
Comment 26 Carlos Soriano 2015-05-02 20:53:12 UTC
Created attachment 302771 [details] [review]
gtkplacessidebar: add new bookmark icon

Following design mockups
Comment 27 Carlos Soriano 2015-05-02 20:53:19 UTC
Created attachment 302772 [details] [review]
gtkplacessidebar: make insensitive invalid drop targets
Comment 28 Carlos Soriano 2015-05-02 20:59:18 UTC
Created attachment 302773 [details] [review]
patch
Comment 29 Carlos Soriano 2015-05-02 21:01:03 UTC
aplied the proposed changes and removed the patch for adding color to the bookmark, since seems it will be difficult to add a css style to a cellrenderer, and I don't think it would be very nice to have something custom in the code to directly lookup for a color in the css.

So instead, since I'm going to work on the port to GtkListBox starting tomorrow, it will be done at that time.
Comment 30 Matthias Clasen 2015-05-04 13:34:26 UTC
Review of attachment 302769 [details] [review]:

::: gtk/gtkplacessidebar.c
@@ +1681,3 @@
+
+  /* Add the row if it doesn't exists yet */
+  if (sidebar->drop_state == DROP_STATE_NORMAL)

Seems awkward to check the drop_state here...

@@ +1713,1 @@
       sidebar->drop_state = DROP_STATE_NEW_BOOKMARK_ARMED;

...but update it outside that function.

@@ +3897,3 @@
+    }
+
+  g_warning ("Index of bookmarks not calculable. No bookmarks heading");

The else branch here is totally redundant, and I don't think the warnings here add anything. I'd just drop them. This is basically a 'can't happen' condition, right ?
Comment 31 Matthias Clasen 2015-05-04 13:35:14 UTC
Review of attachment 302770 [details] [review]:

Still want those names changed...
Comment 32 Matthias Clasen 2015-05-04 13:35:39 UTC
Review of attachment 302771 [details] [review]:

sure
Comment 33 Matthias Clasen 2015-05-04 13:36:50 UTC
Review of attachment 302772 [details] [review]:

Please split the theme changes off into a separate commit.

::: gtk/gtkplacessidebar.c
@@ +1904,3 @@
+    {
+      stop_drop_feedback (sidebar);
+    }

No need for those {} here anymore
Comment 34 Matthias Clasen 2015-05-04 13:38:25 UTC
Review of attachment 302773 [details] [review]:

::: gtk/gtkfilechooserwidget.c
@@ +1656,3 @@
+                         GtkFileChooserWidget *impl)
+{
+  gtk_places_sidebar_drop_hints_start (GTK_PLACES_SIDEBAR (impl->priv->places_sidebar));

I like the function name better, but I don't think I've seen a patch that adds this function...
Comment 35 Carlos Soriano 2015-05-04 14:07:39 UTC
(In reply to Matthias Clasen from comment #34)
> Review of attachment 302773 [details] [review] [review]:
> 
> ::: gtk/gtkfilechooserwidget.c
> @@ +1656,3 @@
> +                         GtkFileChooserWidget *impl)
> +{
> +  gtk_places_sidebar_drop_hints_start (GTK_PLACES_SIDEBAR
> (impl->priv->places_sidebar));
> 
> I like the function name better, but I don't think I've seen a patch that
> adds this function...

The one you said: "I still want those names changed...."
It actually changed the names. Can you double check that review?
Comment 36 Matthias Clasen 2015-05-04 14:21:26 UTC
Review of attachment 302770 [details] [review]:

Also, please add the new api to docs/reference/gtk/gtk3-sections.txt at the suitable place.

::: gtk/gtkplacessidebar.h
@@ +139,1 @@
 

You need to rename them here, too.
Comment 37 Carlos Soriano 2015-05-06 07:45:04 UTC
(In reply to Matthias Clasen from comment #36)
> Review of attachment 302770 [details] [review] [review]:
> 
> Also, please add the new api to docs/reference/gtk/gtk3-sections.txt at the
> suitable place.
> 
> ::: gtk/gtkplacessidebar.h
> @@ +139,1 @@
>  
> 
> You need to rename them here, too.

argh yeah, I don't even know how it was working.

And sorry for the silly mistakes in the other patches as well...
Comment 38 Carlos Soriano 2015-05-06 10:54:35 UTC
Created attachment 302970 [details] [review]
gtkplacessidebar: new bookmark row only at first position

Following the new mockups, put the new bookmark row always
in the first position, so it's easier to drop an item.
Comment 39 Carlos Soriano 2015-05-06 10:55:53 UTC
Created attachment 302971 [details] [review]
gtkplacessidebar: add API for show drop hints

It is convenient to allow applications to show all the drop
targets at once. This improves the user experience with drag
an drop.

The new API allows the application to set the gtkplacessidebar
in a mode where invalid drop targets are insensitive and it
adds a "new bookmark" row. This mode is intended to be set
when the application is aware of a dnd operation and needs to
be stopped kwhen the application is aware that dnd operation
was cancelled or ended in a different part than gtkplacesisdebar.
Comment 40 Carlos Soriano 2015-05-06 10:56:59 UTC
Created attachment 302972 [details] [review]
gtkplacessidebar: make insensitive invalid drop targets
Comment 41 Carlos Soriano 2015-05-06 10:59:58 UTC
Created attachment 302974 [details] [review]
gtkplacessidebar: add API for show drop hints

It is convenient to allow applications to show all the drop
targets at once. This improves the user experience with drag
an drop.

The new API allows the application to set the gtkplacessidebar
in a mode where invalid drop targets are insensitive and it
adds a "new bookmark" row. This mode is intended to be set
when the application is aware of a dnd operation and needs to
be stopped kwhen the application is aware that dnd operation
was cancelled or ended in a different part than gtkplacesisdebar.
Comment 42 Matthias Clasen 2015-05-07 10:36:19 UTC
Review of attachment 302974 [details] [review]:

::: gtk/gtkplacessidebar.c
@@ +5382,3 @@
+ */
+void
+gtk_places_sidebar_drop_hints_start (GtkPlacesSidebar *sidebar)

I note that this is an unfortunate name too, because both 'drop' and 'start' are possible verbs :-(
Sorry for not noticing this last round.

void gtk_places_sidebar_set_drop_target_visible (GtkPlacesSidebar, gboolean)

is what I suggested earlier.
Or maybe:

gtk_places_sidebar_show_drop_hints
gtk_places_sidebar_hide_drop_gints

Or:

gtk_places_sidebar_set_drop_mode
Comment 43 Carlos Soriano 2015-05-11 17:42:12 UTC
Created attachment 303228 [details] [review]
gtkplacessidebar: add API for show drop hints

It is convenient to allow applications to show all the drop
targets at once. This improves the user experience with drag
an drop.

The new API allows the application to set the gtkplacessidebar
in a mode where invalid drop targets are insensitive and it
adds a "new bookmark" row. This mode is intended to be set
when the application is aware of a dnd operation and needs to
be stopped kwhen the application is aware that dnd operation
was cancelled or ended in a different part than gtkplacesisdebar.
Comment 44 Carlos Soriano 2015-05-11 17:42:47 UTC
Created attachment 303229 [details] [review]
gtkplacessidebar: make insensitive invalid drop targets
Comment 45 Carlos Soriano 2015-05-11 17:43:04 UTC
Created attachment 303230 [details] [review]
gtkfilechooserwidget: show drop hints on gtkplacessidebar

Now with the API addition on gtkplacessidebar, we can show some
hints for the drop targets.
Comment 46 Carlos Soriano 2015-05-11 17:44:11 UTC
You are right.

Just changed the API and attached the patches that slightly changed with your advice.
Comment 47 Matthias Clasen 2015-05-12 03:19:43 UTC
a little messy now - which order do they apply in ?
Comment 48 Carlos Soriano 2015-05-12 08:18:56 UTC
I can upload all of them again, is that better?
Comment 49 Carlos Soriano 2015-05-12 14:19:51 UTC
Created attachment 303260 [details] [review]
gtkplacessidebar: new bookmark row only at first position

Following the new mockups, put the new bookmark row always
in the first position, so it's easier to drop an item.
Comment 50 Carlos Soriano 2015-05-12 14:19:57 UTC
Created attachment 303261 [details] [review]
gtkplacessidebar: add API for show drop hints

It is convenient to allow applications to show all the drop
targets at once. This improves the user experience with drag
an drop.

The new API allows the application to set the gtkplacessidebar
in a mode where invalid drop targets are insensitive and it
adds a "new bookmark" row. This mode is intended to be set
when the application is aware of a dnd operation and needs to
be stopped kwhen the application is aware that dnd operation
was cancelled or ended in a different part than gtkplacesisdebar.
Comment 51 Carlos Soriano 2015-05-12 14:20:04 UTC
Created attachment 303262 [details] [review]
gtkplacessidebar: add new bookmark icon

Following design mockups
Comment 52 Carlos Soriano 2015-05-12 14:20:11 UTC
Created attachment 303263 [details] [review]
gtkplacessidebar: make insensitive invalid drop targets
Comment 53 Carlos Soriano 2015-05-12 14:28:20 UTC
Created attachment 303266 [details] [review]
gtkfilechooserwidget: show drop hints on gtkplacessidebar.patch
Comment 54 Matthias Clasen 2015-06-08 20:36:46 UTC
Looking at the branch again today. Here are a few comments from trying it briefly:

- I still think it is wrong to have drag highlighting on all the rows that don't accept the drop.

- Ellipsization kicks in much to early - there's a lot of unused space on the right side of the sidebar - maybe there's some room reserved for buttons and whatnot ? Looks wrong
Comment 55 Matthias Clasen 2015-06-08 21:36:39 UTC
I also get a crash when closing testfilechooser:

  • #0 g_type_check_instance_cast
    at gtype.c line 4060
  • #1 update_possible_drop_targets
    at gtkplacessidebar.c line 1346
  • #2 stop_drop_feedback
    at gtkplacessidebar.c line 1406
  • #3 gtk_places_sidebar_dispose
    at gtkplacessidebar.c line 3780

Comment 56 Matthias Clasen 2015-06-08 21:41:40 UTC
When dragging from another application (nautilus) to the file chooser, the drag highlighting is not effective, since the filechooser is in backdrop state. We should tweak the theme to make drag highlights work in backdrop too
Comment 57 Matthias Clasen 2015-06-08 21:50:27 UTC
The drag highlighting change breaks drag highlighting pretty much everywhere except for in the sidebar. This will need more work in the theme if we really want to get rid of the cairo rectangle.

I'll also notice that we probably need the same workaround that you have for the treeview for the iconview.
Comment 58 Carlos Soriano 2015-06-09 12:16:06 UTC
Thanks Mathias.

"I still think it is wrong to have drag highlighting on all the rows that don't accept the drop."
I guess you speak about in the file chooser. I have been going back and forward on this. Given that we show drop hints before actually being above the sidebar widget, we cannot know all the details (like the dnd action the client wants to do). So either we show wrong drop hints in that case and correct them when the dnd source is above the sidebar widget, or we do as we do now.
I implemented the former now.

"Ellipsization kicks in much to early"
This is on pourpose, instead of hiding the eject button I make it transparent & insensitive, so the vertical alignment is preserved.
So either we don't preserve the vertical aligment, or we reduce paddings, or we accept the trade-off. I think reducing paddings is not a good option.

"The drag highlighting change breaks drag highlighting pretty much everywhere except for in the sidebar. This will need more work in the theme if we really want to get rid of the cairo rectangle."
I tried the dnd I know where it was used, so if you have more examples (like the iconview that I missed or the backdrop) please tell me. And sure, I want to get rid of it, although probably we will need to special case GtkTreeView and draw a rectangle.
So in gtkdnd:
if (GTK_IS_TREE_VIEW (widget))
draw rectangle
else
add css
Comment 59 Carlos Soriano 2015-06-10 16:35:37 UTC
Ok, comments fixed in wip/csoriano/bookmarks branch.

The only thing remaining as said before without solution I can think of is the "hints" when using gtk_sidebar_show_drop_hints and the drop target is not above the gtkplacesidebar widget, but I think we cannot do anything here, and probably is a minor issue since it corrects the "hints" when dragging above the gtkplacesidebar widget.

Could you take another round of overview review?
Comment 60 Matthias Clasen 2015-06-11 02:57:25 UTC
You've addressed my concerns from comment 54, thanks.

Here are a few more things I observed now. These can probably be addressed as fixups afterwards:

- When rearranging bookmarks, the drag icon looks a bit misshapen - the spacing between icon and label is lost

- In a small file chooser, it is possible that the only active drop target ('new bookmark') is scrolled off to the bottom, which makes for an awkward experience. We should at least autoscroll if I move the pointer close to the bottom edge during the drag. Or possibly even scroll the 'new bookmark' item into view when it is added.
Comment 61 Carlos Soriano 2015-06-11 15:03:04 UTC
Hi Mathias,

Adressed point 1.
I will defer point 2 for afterwards fixes, since the expected time for this work is becoming a little tight.

Also I fixed completely the problem with filechooser. Basically now drop hints are always correctly detected, even when the source is not above the sidebar widget (achieved sending the drag context to the placesidebar to ask for the action the source wants to perform with the drag).

Should I put the patches here for fine review now?
Comment 62 Matthias Clasen 2015-06-13 04:06:18 UTC
Only one further nit that I've discovered while looking at individual patches:

the drag highlight rectangle appears on the new bookmark row on hover, but it doesn't disappear as I move elsewhere in the sidebar. It should, I think. It does disappear if I move out of the sidebar altogether.
Comment 63 Matthias Clasen 2015-06-13 04:06:43 UTC
Sorry for pushing an unrelated fix onto your branch - accident.
Comment 64 Carlos Soriano 2015-06-15 08:03:16 UTC
Fixed
Comment 65 Matthias Clasen 2015-06-15 12:10:39 UTC
More detailed review:

- I get

warning: implicit declaration of function ‘glib_autoptr_cleanup_GtkListBoxRow’ [-Wimplicit-function-declaration]

seems to me you can't use G_DECLARE_TYPE and friends with a parent type thats manually declared ?

- GtkPlacesSidebarSectionType and GtkPlacesSidebarPlaceType should not go into public headers if they are not meant as public API (and I can't see them used in any api)

- Since gtksidebarrow.h is not public api, the convention is to name it gtksidebarrowprivate.h
Comment 66 Carlos Soriano 2015-06-15 14:16:26 UTC
fixed
Comment 67 Matthias Clasen 2015-07-04 04:44:18 UTC
I think this should be closed ?
Comment 68 Carlos Soriano 2015-07-06 11:18:06 UTC
whops yes