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 499361 - No borders on the sidebar (and file window)
No borders on the sidebar (and file window)
Status: RESOLVED FIXED
Product: nautilus
Classification: Core
Component: [obsolete] Sidebar
2.25.x
Other All
: Normal trivial
: ---
Assigned To: Nautilus Maintainers
Nautilus Maintainers
: 558791 568054 584644 (view as bug list)
Depends on: 571533
Blocks:
 
 
Reported: 2007-11-24 15:24 UTC by Andreas Nilsson
Modified: 2009-12-10 20:27 UTC
See Also:
GNOME target: ---
GNOME version: 2.25/2.26


Attachments
Current nautilus look (462.75 KB, image/png)
2007-11-24 15:28 UTC, Andreas Nilsson
  Details
rhythmbox comparision (40.10 KB, image/png)
2007-11-24 15:28 UTC, Andreas Nilsson
  Details
totem comparision (18.55 KB, image/png)
2007-11-24 15:28 UTC, Andreas Nilsson
  Details
nautilus with borders (462.91 KB, image/png)
2007-11-24 15:29 UTC, Andreas Nilsson
  Details
a first patch (1.38 KB, patch)
2009-01-09 23:09 UTC, Baptiste Mille-Mathias
none Details | Review
screenshot with the patch, I show also the double border (68.93 KB, image/png)
2009-01-09 23:09 UTC, Baptiste Mille-Mathias
  Details
screenshot of spatial nautilus (using clearlooks) (84.86 KB, image/png)
2009-01-10 01:01 UTC, Andreas Nilsson
  Details
shadow around the listview (68.90 KB, image/png)
2009-01-14 00:02 UTC, Andrea Cimitan
  Details
Patch that add border to all sidebars (2.16 KB, patch)
2009-01-21 19:46 UTC, Baptiste Mille-Mathias
none Details | Review
updated version (2.14 KB, patch)
2009-01-21 21:04 UTC, Baptiste Mille-Mathias
none Details | Review
mockup (73.95 KB, image/png)
2009-01-22 09:31 UTC, Andreas Nilsson
  Details
Difference between file open dialog and nautilus window (10.58 KB, image/png)
2009-01-23 01:59 UTC, Ilya Chernykh
  Details
Screenshot showing the difference between file open dialog (left) and Nautilus (right) (10.58 KB, image/png)
2009-01-23 02:01 UTC, Ilya Chernykh
  Details
Latest patch [version 3] (2.75 KB, patch)
2009-01-24 08:42 UTC, Baptiste Mille-Mathias
none Details | Review
screenshot of the latest patch with my theme (72.08 KB, image/png)
2009-01-24 08:43 UTC, Baptiste Mille-Mathias
  Details
screenshot of nautilus with GTK_SHADOW_NONE on statusbar (172.53 KB, image/png)
2009-02-04 21:58 UTC, Christopher Roy Bratusek
  Details
Navigational - Remove borders and removing GtkStatusBar border. Fix bug 499361 (4.01 KB, patch)
2009-05-16 19:57 UTC, Baptiste Mille-Mathias
needs-work Details | Review
Updated Ukrainian translation (320.15 KB, patch)
2009-06-01 15:31 UTC, Baptiste Mille-Mathias
rejected Details | Review
Navigational - Remove borders and removing GtkStatusBar border. Fix bug 499361 (4.01 KB, patch)
2009-06-01 15:33 UTC, Baptiste Mille-Mathias
rejected Details | Review
Baptiste in the world of git, third part (3.63 KB, patch)
2009-06-01 15:59 UTC, Baptiste Mille-Mathias
none Details | Review
Take 4 (damn I hate git now) (3.78 KB, patch)
2009-06-02 19:11 UTC, Baptiste Mille-Mathias
none Details | Review
mockup (53.02 KB, image/png)
2009-06-16 04:43 UTC, David Prieto
  Details

Description Andreas Nilsson 2007-11-24 15:24:23 UTC
Please describe the problem:
In browser mode, the sidebar lacks a 1px border around it. So does the file window .

Steps to reproduce:


Actual results:


Expected results:


Does this happen every time?


Other information:
Comment 1 Andreas Nilsson 2007-11-24 15:28:04 UTC
Created attachment 99573 [details]
Current nautilus look
Comment 2 Andreas Nilsson 2007-11-24 15:28:40 UTC
Created attachment 99574 [details]
rhythmbox comparision
Comment 3 Andreas Nilsson 2007-11-24 15:28:57 UTC
Created attachment 99575 [details]
totem comparision
Comment 4 Andreas Nilsson 2007-11-24 15:29:46 UTC
Created attachment 99576 [details]
nautilus with borders
Comment 5 Andreas Nilsson 2007-11-24 15:39:07 UTC
Added Jody Kozey to cc, as he have a patch for this somewhere.
Comment 6 Baptiste Mille-Mathias 2009-01-09 13:55:51 UTC
Jody, could you post the patch ?

Comment 7 Baptiste Mille-Mathias 2009-01-09 23:09:05 UTC
Created attachment 126144 [details] [review]
a first patch

This is patch which add a border to the sidebar and the "file view", bonus I removed the border of the sidebar top, I thought it was prettier.

The patch changes only the browser view not the spatial view, I guess the border should be fixed in spatial too Andreas?

The looking doesn't seems to me perfect because we have two border side by side on top and at the bottom of the file view, and the borders for sidebar and fileview, seems to me a bit thick (I'll attach a screenshot). Any opinion how to have a thinner border?
Comment 8 Baptiste Mille-Mathias 2009-01-09 23:09:57 UTC
Created attachment 126145 [details]
screenshot with the patch, I show also the double border
Comment 9 Andreas Nilsson 2009-01-10 01:01:46 UTC
Created attachment 126154 [details]
screenshot of spatial nautilus (using clearlooks)

Spatial nautilus actually looks pretty ok.
Comment 10 Baptiste Mille-Mathias 2009-01-10 10:45:30 UTC
> 
> Spatial nautilus actually looks pretty ok.
> 

I don't see any border on the left so I thought it was missing.
Comment 11 A. Walton 2009-01-13 21:41:56 UTC
*** Bug 558791 has been marked as a duplicate of this bug. ***
Comment 12 Andrea Cimitan 2009-01-14 00:02:17 UTC
(In reply to comment #8)
> Created an attachment (id=126145) [edit]
> screenshot with the patch, I show also the double border
> 

On the sidebar, I would add the shadow on the listview, not around the notebook.
Comment 13 Andrea Cimitan 2009-01-14 00:02:47 UTC
Created attachment 126390 [details]
shadow around the listview
Comment 14 A. Walton 2009-01-17 01:33:00 UTC
*** Bug 568054 has been marked as a duplicate of this bug. ***
Comment 15 Baptiste Mille-Mathias 2009-01-21 19:46:24 UTC
Created attachment 126937 [details] [review]
Patch that add border to all sidebars
Comment 16 Andrea Cimitan 2009-01-21 20:39:23 UTC
please use shadow_in, not etched in
Comment 17 Baptiste Mille-Mathias 2009-01-21 21:04:35 UTC
Created attachment 126944 [details] [review]
updated version

I don't see the difference but I updated the patch and replace ETCHED_IN
Comment 18 Andreas Nilsson 2009-01-22 09:31:16 UTC
Created attachment 126981 [details]
mockup

As discussed on IRC, what about some border around the main browser area and a statusbar more in the style of f-spot and banshee?
Comment 19 Andrea Cimitan 2009-01-22 09:37:36 UTC
(In reply to comment #18)
> Created an attachment (id=126981) [edit]
> mockup
> 
> As discussed on IRC, what about some border around the main browser area and a
> statusbar more in the style of f-spot and banshee?
> 

You can't have that statusbar without patching clearlooks and other engines.
You can't avoid the double border between toolbar and file window.
Comment 20 Ilya Chernykh 2009-01-23 01:59:34 UTC
Created attachment 127054 [details]
Difference between file open dialog and nautilus window

This screenshot shows difference between file open dialog and nautilus window. The Nautilus window lacks shadows around file list area that create 3D-like effect in the open file dialog window.
Comment 21 Ilya Chernykh 2009-01-23 02:01:22 UTC
Created attachment 127055 [details]
Screenshot showing the difference between file open dialog (left) and Nautilus (right)

This screenshot shows difference between file open dialog and nautilus window. The Nautilus window lacks shadows around file list area that create 3D-like effect in the open file dialog window.
Comment 22 Ilya Chernykh 2009-01-23 02:05:19 UTC
I think Nautilus window should use the same style as file open dialog, tree browsing area of GConf editor etc, i.e. it should be a 3D effect created by shadowing.
Comment 23 Andrea Cimitan 2009-01-24 01:44:09 UTC
@andreasn (happy birthday!) @crevette:
I was wrong, the code is already in clearlooks: you just need to set shadow-type to GTK_SHADOW_NONE on the statusbar to avoid drawing the border/edge/highlight on the statusbar.
Comment 24 Andreas Nilsson 2009-01-24 02:07:12 UTC
@cimi: haha, thank you!
Comment 25 Baptiste Mille-Mathias 2009-01-24 08:42:25 UTC
Created attachment 127153 [details] [review]
Latest patch [version 3]

This patch sets GTK_SHADOW_IN for sidebar widgets and various nautilus files views.
@Cimi, after our discussion 2 days ago, I looked the API of GtkStatsubar, the gobject "shadow-style" is not writable so I'm not able to change it. I be thankful if you can help me for that to change the statusbar looking.

Regards
Comment 26 Baptiste Mille-Mathias 2009-01-24 08:43:58 UTC
Created attachment 127154 [details]
screenshot of the latest patch with my theme
Comment 27 Christopher Roy Bratusek 2009-02-04 21:58:32 UTC
Created attachment 127960 [details]
screenshot of nautilus with GTK_SHADOW_NONE on statusbar

... I'm using GTK_SHADOW_NONE to remove the border around the statusbar in my theme, perhaps you may want this for nautilus, too?

GtkStatusbar::shadow_type = GTK_SHADOW_NONE
Comment 28 Baptiste Mille-Mathias 2009-02-05 07:43:39 UTC
(In reply to comment #27)
> 
> ... I'm using GTK_SHADOW_NONE to remove the border around the statusbar in my
> theme, perhaps you may want this for nautilus, too?
> 
> GtkStatusbar::shadow_type = GTK_SHADOW_NONE
> 

This is not possible in GTK, the property "shadow-type" of widget GtkStatusBar is read-only and set to GTK_SHADOW_IN
Comment 29 Andrea Cimitan 2009-02-05 07:46:42 UTC
(In reply to comment #27)
> Created an attachment (id=127960) [edit]
> screenshot of nautilus with GTK_SHADOW_NONE on statusbar
> 
> ... I'm using GTK_SHADOW_NONE to remove the border around the statusbar in my
> theme, perhaps you may want this for nautilus, too?
> 
> GtkStatusbar::shadow_type = GTK_SHADOW_NONE
> 

To make nautilus looks better you should change your gtk+ theme first of all :-)
Comment 30 Ilya Chernykh 2009-02-08 13:53:35 UTC
Baptiste Mille-Mathias, I cannot realise from your screenshot how it was made in the latest patch. Does it use shadows to make 3D appearance like for example file open dialog (or GConf editor) or it simply makes a fixed-color frame around the icon area?
Comment 31 Baptiste Mille-Mathias 2009-05-16 19:57:05 UTC
Created attachment 134777 [details] [review]
Navigational - Remove borders and removing GtkStatusBar border. Fix bug 499361
Comment 32 Cosimo Cecchi 2009-05-17 11:01:54 UTC
Comment on attachment 134777 [details] [review]
Navigational - Remove borders and removing GtkStatusBar border. Fix bug 499361

Thanks for the patch!
Now it looks much better, but I think it looks too packed in spatial view. Maybe a 1px/2px padding between the folder selector and the top of the status would help.

>+	/* Remove Top border on GtkStatusBar */
>+	gtk_rc_parse_string (
>+		"style \"default\"\n"
>+		"{\n"
>+		"   GtkStatusbar::shadow_type = GTK_SHADOW_NONE\n"
>+		"}\n");

The way you're using gtk_rc_parse_string is slightly wrong, because this will modify the appearance of every statusbar in Nautilus, not just the one in the navigation window, as you're modifying the "default" theme.
You should instead assign a name to the statusbar you want to modify, with gtk_widget_set_name; then the rc parse string would become

"style \"my-style\"\n"
"{\n"
"   /* style changes here */\n"
"}\n"
"widget \"*.my-custom-widget-name\" style \"my-style\""
Comment 33 Baptiste Mille-Mathias 2009-05-18 12:11:18 UTC
(In reply to comment #32)
> (From update of attachment 134777 [details] [review] [edit])
> Thanks for the patch!
> Now it looks much better, but I think it looks too packed in spatial view.
> Maybe a 1px/2px padding between the folder selector and the top of the status
> would help.
> 

the Folder selection widget make the statusbar of the spatail windows already thick, I'm afraid it'll make ticker. As susggested by Paolo Borelli, could it be possible to use the widget used in latest gedit (I can open another bug)? 

For the other part I changed the code to make you suggested.
Comment 34 Baptiste Mille-Mathias 2009-06-01 15:31:37 UTC
Created attachment 135741 [details] [review]
Updated Ukrainian translation
Comment 35 Baptiste Mille-Mathias 2009-06-01 15:33:30 UTC
Comment on attachment 135741 [details] [review]
Updated Ukrainian translation

sorry, I made a mistake with git-bz :/
Comment 36 Baptiste Mille-Mathias 2009-06-01 15:33:37 UTC
Created attachment 135742 [details] [review]
Navigational - Remove borders and removing GtkStatusBar border. Fix bug 499361
Comment 37 Baptiste Mille-Mathias 2009-06-01 15:59:55 UTC
Created attachment 135745 [details] [review]
Baptiste in the world of git, third part
Comment 38 Baptiste Mille-Mathias 2009-06-02 19:02:52 UTC
*** Bug 584644 has been marked as a duplicate of this bug. ***
Comment 39 Baptiste Mille-Mathias 2009-06-02 19:11:02 UTC
Created attachment 135839 [details] [review]
Take 4 (damn I hate git now)
Comment 41 David Prieto 2009-06-16 04:43:46 UTC
Created attachment 136687 [details]
mockup

About the latest screenshots: would it be possible to lose the dark line above the side pane? Like in this mockup.
Comment 42 Baptiste Mille-Mathias 2009-06-16 06:59:21 UTC
(In reply to comment #41)
> About the latest screenshots: would it be possible to lose the dark line above
> the side pane? Like in this mockup.
> 

No I don't think it is possible to avoid that, this is the bottom border of the side bar
Comment 43 Andrea Cimitan 2009-06-16 07:49:12 UTC
(In reply to comment #42)
> (In reply to comment #41)
> > About the latest screenshots: would it be possible to lose the dark line above
> > the side pane? Like in this mockup.
> > 
> 
> No I don't think it is possible to avoid that, this is the bottom border of the
> side bar
> 

It is, you mean the toolbar right? Just set the shadow-type to none
Comment 44 Ilya Chernykh 2009-06-16 08:26:54 UTC
You can remove the shadow through Gnome Color Chooser utility.
Comment 45 David Prieto 2009-06-16 14:02:16 UTC
So, if it's possible to remove it, is it desirable to do it by default? Do you guys think it looks better with or without the toolbar shadow?

Personally, I think the window looks much cleaner WITHOUT the shadow.
Comment 46 Ilya Chernykh 2009-06-16 14:10:09 UTC
First, I think it's much better with toolbar shadow, and secon, it's a global Gnome setting, affecting not only Nautilus. It is unrelated to this bugreport. 
Comment 47 Ilya Chernykh 2009-06-16 14:11:57 UTC
Also it depends on the GTK widget theme used. Some themes look ugly with the shadow and some look ugly without it.
Comment 48 David Prieto 2009-06-16 14:14:05 UTC
Oh... so it's the GTK theme you have to modify to hide the shadow? Not Nautilus?
Comment 49 Ilya Chernykh 2009-06-16 15:09:29 UTC
It's GTK settings.
Comment 50 Ilya Chernykh 2009-06-16 15:11:15 UTC
You can save all the settings as a new theme through Gnome Color Chooser.
Comment 51 Baptiste Mille-Mathias 2009-08-02 20:04:38 UTC
UI freeze is coming next week, can I know if some part of the patch (like only the sidebar change) can be interesting?

Thanks
Comment 52 Alexander Larsson 2009-12-10 20:27:58 UTC
This is commited on master.