Xfce Forum

Sub domains
 

You are not logged in.

#1 2018-07-30 19:46:43

johnywhy
Member
Registered: 2011-10-09
Posts: 151

Change 'Places' Icon?

How to change panel icon for Places widget?

http://goodies.xfce.org/projects/panel- … ces-plugin

Last edited by johnywhy (2018-08-05 19:39:23)


Mint 19 xfce, 4.15.0-29-generic #31-Ubuntu SMP, x86_64 x86_64 x86_64 GNU/Linux

Offline

#2 2018-07-30 22:37:28

ToZ
Moderator
From: Canada
Registered: 2011-06-02
Posts: 4,660

Re: Change 'Places' Icon?

It's currently hard-coded to these icons:

   static const gchar *icons[] = { "system-file-manager",
                                   "xfce-filemanager",
                                   "file-manager",
                                   "folder",
                                   NULL };

It will use the first one found in your icon theme.

Here is an old enhancement request, however, I don't believe the plugin currently has a maintainer.

Edit: Here is a patch that adds "places-icon" to the front of the list of icons searched for. You can then add a "places-icon.png" file in ~/.icons and it will read that:

diff --git a/panel-plugin/view.c b/panel-plugin/view.c
index 8984ed2..612db96 100644
--- a/panel-plugin/view.c
+++ b/panel-plugin/view.c
@@ -762,7 +762,8 @@ pview_open_menu(PlacesView *pd)
 static GdkPixbuf*
 pview_pixbuf_factory(gint size)
 {
-   static const gchar *icons[] = { "system-file-manager",
+   static const gchar *icons[] = { "places-icon",
+			       	   "system-file-manager",
                                    "xfce-filemanager",
                                    "file-manager",
                                    "folder",

Last edited by ToZ (2018-07-30 22:47:06)

Offline

#3 2018-07-31 22:12:08

johnywhy
Member
Registered: 2011-10-09
Posts: 151

Re: Change 'Places' Icon?

thx!


Mint 19 xfce, 4.15.0-29-generic #31-Ubuntu SMP, x86_64 x86_64 x86_64 GNU/Linux

Offline

#4 2018-08-05 19:39:09

johnywhy
Member
Registered: 2011-10-09
Posts: 151

Re: Change 'Places' Icon?

ToZ wrote:

Here is a patch that adds "places-icon" to the front of the list of icons searched for.

Where do i put that patch?


Mint 19 xfce, 4.15.0-29-generic #31-Ubuntu SMP, x86_64 x86_64 x86_64 GNU/Linux

Offline

#5 2018-08-06 03:14:11

ToZ
Moderator
From: Canada
Registered: 2011-06-02
Posts: 4,660

Re: Change 'Places' Icon?

Unfortunately, you need to build the package from source. Which distro are you using and which version of the xfce4-places-plugin?

Offline

#6 2018-08-06 19:08:43

johnywhy
Member
Registered: 2011-10-09
Posts: 151

Re: Change 'Places' Icon?

4.15.0-29-generic #31-Ubuntu SMP Tue Jul 17 15:39:52 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

xfce4-places-plugin/bionic,now 1.7.0-3 amd64


Mint 19 xfce, 4.15.0-29-generic #31-Ubuntu SMP, x86_64 x86_64 x86_64 GNU/Linux

Offline

#7 2018-08-06 20:09:52

ToZ
Moderator
From: Canada
Registered: 2011-06-02
Posts: 4,660

Re: Change 'Places' Icon?

Ubuntu's documentation on updating a deb can be found here.

Offline

Board footer

Powered by FluxBB