Page 1 of 2 12 LastLast
Results 1 to 10 of 18

Thread: HOWTO: Change nautilus sidebar icon size

  1. #1
    Join Date
    Apr 2005
    Location
    Finland
    Beans
    300
    Distro
    Ubuntu 7.04 Feisty Fawn

    HOWTO: Change nautilus sidebar icon size

    This is just a little mod that allows you to change Nautilus file manager's Places sidebar icon size. See modified Nautilus screenshot below. This guide is tested only with Feisty Fawn!



    STEP 1. Get source and install needed dependencies
    Get nautilus source
    Code:
    apt-get source nautilus
    Install needed dependencies (these are needed for compiling)
    Code:
    sudo apt-get build-dep nautilus
    STEP 2. Edit Nautilus source
    Move to nautilus source directory
    Code:
    cd nautilus-2.18.1/src
    Open source code file with Gedit
    Code:
    gedit nautilus-places-sidebar.c
    Line 191 should look like this (In Gutsy it's line 200):
    Code:
    pixbuf = nautilus_icon_factory_get_pixbuf_from_name_with_stock_size (icon, NULL, GTK_ICON_SIZE_MENU, NULL);
    Change that line to:
    Code:
    pixbuf = nautilus_icon_factory_get_pixbuf_from_name_with_stock_size (icon, NULL, 5, NULL);
    Save changes and close editor.

    STEP 3. Compile and install
    Move to nautilus source root (this dir contains configure file)
    Code:
    cd..
    Then configure, compile, install
    Code:
    ./configure --prefix=/usr
    Code:
    make
    Code:
    sudo make install
    STEP 4. Restart X
    You might need to restart X, before changes occur.

    UNINSTALL
    You should be able to uninstall this simply by reinstalling nautilus package with Synaptic
    Last edited by Laterix; October 20th, 2007 at 02:54 PM.

  2. #2
    Join Date
    Feb 2006
    Location
    Finland
    Beans
    53

    Re: HOWTO: Change nautilus sidebar icon size

    Thanks!

  3. #3
    Join Date
    Oct 2006
    Location
    Argentina
    Beans
    584
    Distro
    Ubuntu

    Re: HOWTO: Change nautilus sidebar icon size

    Thanks!

    I have one question.
    Do you know how to remove the sidebar selection thing.
    It takes room it is ugly and I only use places anyway.

    I mean to make it look like this:


    I think that "nautilus-side-pane.c" must be edited but I don't know what to edit.

  4. #4
    Join Date
    Apr 2005
    Location
    Finland
    Beans
    300
    Distro
    Ubuntu 7.04 Feisty Fawn

    Re: HOWTO: Change nautilus sidebar icon size

    Quote Originally Posted by Yuzem View Post
    Thanks!

    I have one question.
    Do you know how to remove the sidebar selection thing.
    It takes room it is ugly and I only use places anyway.

    I mean to make it look like this:


    I think that "nautilus-side-pane.c" must be edited but I don't know what to edit.
    This answer took two months. The answer is that I don't know, but I will look into this. I would like achive the same thing as you.

  5. #5
    Join Date
    Apr 2005
    Location
    Finland
    Beans
    300
    Distro
    Ubuntu 7.04 Feisty Fawn

    Re: HOWTO: Change nautilus sidebar icon size

    I managed to remove that Dropdown menu from nautilus sidebar. It was quite easy after all. Just comment out one line of code.

    Open nautilus-side-pane.c and comment out line 331 (in Gutsy). So the line should look like this after modification:
    Code:
    //gtk_box_pack_start (GTK_BOX (side_pane), frame, FALSE, FALSE, 0);
    Last edited by Laterix; March 16th, 2008 at 04:21 PM.

  6. #6
    Join Date
    Oct 2006
    Location
    Argentina
    Beans
    584
    Distro
    Ubuntu

    Re: HOWTO: Change nautilus sidebar icon size

    Wow, thanks a lot. Better later than never.
    I never liked that drop down menu on the sidebar.

    Now, I am having one little problem, when I run this command:
    Code:
    sudo apt-get build-dep nautilus
    I get:
    Code:
    E: No se pudieron satisfacer las dependencias de construcción de nautilus.
    Which means something like: The build dependencies for nautilus could not been satisfied.
    I am running Gutsy, any ideas?
    Last edited by Yuzem; March 16th, 2008 at 06:46 PM.

  7. #7
    Join Date
    Apr 2005
    Location
    Finland
    Beans
    300
    Distro
    Ubuntu 7.04 Feisty Fawn

    Re: HOWTO: Change nautilus sidebar icon size

    Quote Originally Posted by Yuzem View Post
    Which means something like: The build dependencies for nautilus could not been satisfied.
    I am running Gutsy, any ideas?
    Hmm... have you enabled source repositories? Synaptic -> Settings -> Repositories -> Source Code (Does it have tick?) There should be no problems with downloading dependencies if all repositories are set.

  8. #8
    Join Date
    Oct 2006
    Location
    Argentina
    Beans
    584
    Distro
    Ubuntu

    Re: HOWTO: Change nautilus sidebar icon size

    Yes, source code is enabled.
    I found the problem:
    http://ubuntuforums.org/showthread.php?t=204922

    I have the mac menu hack installed with a fake version number to not be overwritten every time by updates. I think that is the cause of my problem.

    Thanks again.

  9. #9
    Join Date
    Aug 2007
    Beans
    119
    Distro
    Hardy Heron (Ubuntu Development)

    Re: HOWTO: Change nautilus sidebar icon size

    i get
    bash: cd: nautilus-2.18.1/src: No such file or directory

    when i try to cd

  10. #10
    Join Date
    Oct 2006
    Location
    Argentina
    Beans
    584
    Distro
    Ubuntu

    Re: HOWTO: Change nautilus sidebar icon size

    On Gutsy it is:
    Code:
    cd nautilus-2.20.0/src

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •