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 414199 - information sidebar
information sidebar
Status: RESOLVED FIXED
Product: nautilus
Classification: Core
Component: [obsolete] Sidebar Panel: Information
2.18.x
Other FreeBSD
: Normal minor
: ---
Assigned To: Nautilus Maintainers
Nautilus Maintainers
Depends on:
Blocks:
 
 
Reported: 2007-03-03 11:50 UTC by Marcin
Modified: 2007-07-10 01:43 UTC
See Also:
GNOME target: ---
GNOME version: 2.17/2.18


Attachments
Patch (922 bytes, patch)
2007-07-05 22:42 UTC, Andrea Cimitan
none Details | Review

Description Marcin 2007-03-03 11:50:06 UTC
In nautilus 2.17.2 i find small bug, in the panel of the information the part of the information is leveled to the left, but the part for the middle (icon), i think the whole should be center its look the best

Other information:
Comment 1 Marcin 2007-03-17 14:06:51 UTC
now ist (<right>info and <center>icons):

http://img186.imageshack.us/img186/994/zrzutekranu2ep1.png

must be(all <center>):

http://img457.imageshack.us/img457/9862/zrzutekranu2rp3.png

Comment 2 Gert Kulyk 2007-03-22 13:57:11 UTC
I can confirm this for 2.18.0.1. Any hint which file to change to get old behavior back?
Comment 3 Andrea Cimitan 2007-07-05 21:40:38 UTC
I confirm, same issue also in 2.19.4
Comment 4 Andrea Cimitan 2007-07-05 21:49:48 UTC
Probably it's related to the PANGO_ELLIPSIZE_START and a missed alignment... but i'm not sure as I've no knowledges on Pango.
Probably adding an alignment line should fix this
Comment 5 Andrea Cimitan 2007-07-05 22:05:13 UTC
No the ellipsize start doesn't interess that bug :D
Comment 6 Andrea Cimitan 2007-07-05 22:42:57 UTC
Created attachment 91278 [details] [review]
Patch

Index: src/nautilus-sidebar-title.c
===================================================================
--- src/nautilus-sidebar-title.c        (revisione 12983)
+++ src/nautilus-sidebar-title.c        (copia locale)
@@ -670,7 +670,6 @@
        gtk_label_set_justify (GTK_LABEL (title_label), GTK_JUSTIFY_CENTER);
        gtk_label_set_selectable (GTK_LABEL (title_label), TRUE);
        gtk_label_set_ellipsize (GTK_LABEL (title_label), PANGO_ELLIPSIZE_END);
-       gtk_misc_set_alignment (GTK_MISC (title_label), 0., 0.5);
 
        return title_label;
 }
@@ -685,7 +684,6 @@
        gtk_label_set_justify (GTK_LABEL (more_info_label), GTK_JUSTIFY_CENTER);
        gtk_label_set_selectable (GTK_LABEL (more_info_label), TRUE);
        gtk_label_set_ellipsize (GTK_LABEL (more_info_label), PANGO_ELLIPSIZE_END);
-       gtk_misc_set_alignment (GTK_MISC (more_info_label), 0., 0.5);
 
        return more_info_label;
 }
Comment 7 Andrea Cimitan 2007-07-05 23:00:33 UTC
and this was the commit that causes the problem:
http://svn.gnome.org/viewcvs/nautilus?view=revision&revision=11530
by the way i've no problems with long folders, as this still truncates the end of the word
Comment 8 Gert Kulyk 2007-07-06 09:47:54 UTC
Your patch indeed fixes the issue. The only thing I can't really understand is why the bug did not occur prior to 2.17-line. The stable 2.16 series includes above mentioned revision of nautilus-sidebar-title.c, but the bug is not present there. Any idea why?
Comment 9 Andrea Cimitan 2007-07-06 10:14:06 UTC
I've said, the bug is due to http://svn.gnome.org/viewcvs/nautilus?view=revision&revision=11530 commit, which fixes long folders name in the sidebar, but as I said, removing the alignment part keep the things works without any issue
Comment 10 Martin Wehner 2007-07-10 01:43:25 UTC
Thanks, it's on HEAD:

2007-07-10  Martin Wehner  <martin.wehner@gmail.com>

	* src/nautilus-sidebar-title.c: (sidebar_title_create_title_label),
	(sidebar_title_create_more_info_label):
	Fix alignment of labels in information sidebar. (#414199)
	Patch from Andrea Cimitan  <andrea.cimitan@gmail.com>