Opened 8 years ago

Last modified 6 years ago

#12414 new defect

Tray icon clipped in KDE4 (incorrect size)

Reported by: mehdus Owned by:
Milestone: Component: pidgin (gtk)
Version: 2.7.2 Keywords: tray icon size kde
Cc:

Description

This only occurs the first time, tray icon have correct size after restarting pidgin.
this is the same as Ticket #2466 (out of date). The bug persist with pidgin 2.7.2

Attachments (8)

pidgin_tray_kde.png (10.1 KB) - added by mehdus 8 years ago.
Pidgin tray icon (KDE 4.4.5)
pidgin.png (4.5 KB) - added by winecurmudgeon 8 years ago.
pidgin-docklet-resize.patch (1.3 KB) - added by tomkiewicz 8 years ago.
Fix: handle docklet resize signal
pidgin-clipped-icon.png (16.9 KB) - added by tomkiewicz 8 years ago.
Incorrect sized icon
pidgin-docklet-resize.2.patch (2.2 KB) - added by tomkiewicz 8 years ago.
Extended debug informations
pidgin-docklet-resize.2.2.patch (2.2 KB) - added by tomkiewicz 8 years ago.
Extended debug informations and corrected user function prototype
pidgin-docklet-resize.3.patch (2.3 KB) - added by tomkiewicz 8 years ago.
Code polishing (callback function should return value)
pidgin-docklet-resize.3.debug.patch (2.4 KB) - added by tomkiewicz 7 years ago.
More debug information

Download all attachments as: .zip

Change History (13)

Changed 8 years ago by mehdus

Pidgin tray icon (KDE 4.4.5)

Changed 8 years ago by winecurmudgeon

comment:1 Changed 8 years ago by tomkiewicz

Same problem in 2.7.11 and KDE 4.6.0 (opensuse 11.4).

Icon is clipped always after system reboot, and it's ok always after manually restarting Pidgin.

Changed 8 years ago by tomkiewicz

Fix: handle docklet resize signal

comment:2 Changed 8 years ago by tomkiewicz

I've managed to fix it, by handling docklet resize signal. Now, tray icon is always in good size, even after reboot.

I have tested it few times (1-2 hours of rebooting...):

  • version without patch always gives big clipped icon after reboot
  • version with patch always gives proper sized icon (after reboot too)

both versions always gives proper icon after manual launch of Pidgin.

comment:3 Changed 8 years ago by tomkiewicz

In _some_ cases, that fix doesn't help for issue. Let's say it's 1/20 reboots. But it's always better, than always broken icon ;).

Changed 8 years ago by tomkiewicz

Incorrect sized icon

Changed 8 years ago by tomkiewicz

Extended debug informations

Changed 8 years ago by tomkiewicz

Extended debug informations and corrected user function prototype

Changed 8 years ago by tomkiewicz

Code polishing (callback function should return value)

Changed 7 years ago by tomkiewicz

More debug information

comment:4 Changed 7 years ago by tomkiewicz

Unfortunately, the bug still appears. That may be the problem with GTK itself. I was thinking, it could be only bad sized icon image, but (after applying the "...3.debug" patch) I found out, that GtkStatusIcon? object is sized 32x32 (instead of 22x22).

It needs further research...

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!