Xfce Forum

Sub domains
 

You are not logged in.

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

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

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)


arch xfce x86_64

Offline

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

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,492

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)


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

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

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

Re: Change 'Places' Icon?

thx!


arch xfce x86_64

Offline

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

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

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?


arch xfce x86_64

Offline

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

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,492

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?


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

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

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

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


arch xfce x86_64

Offline

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

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,492

Re: Change 'Places' Icon?

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


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.009 seconds, 7 queries executed - Memory usage: 541.27 KiB (Peak: 542.55 KiB) ]