Trac is being migrated to new services! Issues can be found in our new YouTrack instance and WIKI pages can be found on our website.

Opened 13 years ago

Closed 12 years ago

#4988 closed patch (fixed)

pidgin-2.3.1 not paying attention to gtkrc pixmap_path

Reported by: reiffert Owned by: resiak
Milestone: 2.5.3 Component: pidgin (gtk)
Version: Keywords: pidgin gtk gtkrc
Cc:

Description

The motivation as of now can be found here: http://pidgin.im/pipermail/devel/2008-March/005012.html

I attached a patch that will correct the behaviour by correcting just a single occurence of loading pixmaps. When you are rebuilding pidgin-2.3.1 with this patch, you can test it like this:

Create a file /tmp/gtkrc with the following line:

pixmap_path "/where/the/pixmaps/are/pidgin"

Then start pidgin like this:

GTK2_RC_FILES=/tmp/gtkrc ./pidgin

What needs to be done:

  • Fix all other occurences in an appropriate way, maybe combine them into a single

function.

  • Add DATADIR/pidgin to the pixmap_path on runtime, so that pidgin looks first

into DATADIR/pidgin.

Kinds regards

Thomas Reifferscheid aka reiffert on freenode.

Please assign to Will Thompson

Attachments (1)

pidgin-2.3.1-use_gtk-diff (3.0 KB) - added by reiffert 13 years ago.

Download all attachments as: .zip

Change History (8)

Changed 13 years ago by reiffert

Attachment: pidgin-2.3.1-use_gtk-diff added

comment:1 Changed 13 years ago by resiak

Cc: will@… removed
Owner: set to resiak

comment:2 Changed 13 years ago by resiak

The freedesktop.org icon theme spec states:

By default, apps should look in $HOME/.icons (for backwards compatibility), in $XDG_DATA_DIRS/icons and in /usr/share/pixmaps (in that order).

I suggest we should add looking in $XDG_DATA_HOME/icons to that list (which usually means $HOME/.local/share/icons) and stick looking in DATADIR at the end, as is currently the case. So, the course of action probably looks something like:

  • Move all the pixmap-lookup code into a single function.
  • Add logic to search through the above sets of paths in order, using g_get_user_data_dir () and g_get_system_data_dirs ().
  • #ifdef as necessary to make it compile on old Gtks.

I think this is probably better than obeying the gtkrc pixmap_path, which predates the freedesktop.org icon spec, since this brings us closer towards using proper icon themes.

comment:3 Changed 13 years ago by rlaager

Milestone: Patches Needing Improvement
Type: defectpatch

comment:4 Changed 12 years ago by John Bailey

Status: newpending

reiffert: Have you addressed the issues resiak mentioned?

comment:5 Changed 12 years ago by John Bailey

Status: pendingnew

I have seen messages on IRC from reiffert saying that he no longer uses Pidgin and is no longer able to log in. From the former, I take that he no longer wishes to work on this patch; from the latter I take that even if he wanted to, he can't as he's not able to retrieve his password.

I might toss this into a side branch for further poking.

comment:6 Changed 12 years ago by sadrul

I am looking at this one.

comment:7 Changed 12 years ago by sadrul@…

Milestone: Patches Needing Improvement2.5.3
Resolution: fixed
Status: newclosed

(In a9579fef71ff6820f390a986132d30b079f590a0):
Try to be more compliant with the freedesktop.org icon spec thingy with the stock icons, by looking in user and system data-directories for the images before looking in DATADIR. Thanks to Thomas Reifferscheid aka reiffert for the initial patch. Closes #4988.

Note: See TracTickets for help on using tickets.
All information, including names and email addresses, entered onto this website or sent to mailing lists affiliated with this website will be public. Do not post confidential information, especially passwords!