Merge lp:~gilir/xpad/xpad-panel-icon into lp:xpad

Proposed by Julien Lavergne
Status: Merged
Approved by: Arthur Borsboom
Approved revision: 643
Merged at revision: 645
Proposed branch: lp:~gilir/xpad/xpad-panel-icon
Merge into: lp:xpad
Diff against target: 19 lines (+8/-1)
1 file modified
src/xpad-tray.c (+8/-1)
To merge this branch: bzr merge lp:~gilir/xpad/xpad-panel-icon
Reviewer Review Type Date Requested Status
Arthur Borsboom Approve
Review via email: mp+119710@code.launchpad.net

Description of the change

Implementation for bug 907705 (adding an xpad-panel icon if it's in the icon theme)

To post a comment you must log in.
Revision history for this message
Arthur Borsboom (arthurborsboom) wrote :

https://code.launchpad.net/~gilir/xpad/xpad-panel-icon/+merge/119710

* Reason is feature request: https://bugs.launchpad.net/xpad/+bug/907705
* Proposed branch: lp:~gilir/xpad/xpad-panel-icon

Expected result(s)
If a file called xpad-panel.svg is added to the current Icon Theme,
this icon should be shown in the systray. The regular icon of the
application, should not change. Other behaviour of the application
should not change.

Specific tests regarding the change: works
Regression tests:
- Create new note: works
- Delete note: works
- Save note: works
- Tray shows: works
- Tray hides: works
- Quit application: works
- Show all: works
- Close all: works
- Select specific note from tray: works
- Preferences, font change: works
- Preferences, save font change: works

Code quality: fine.
Review: ok

Ready to be merged.

With kind regards,
Arthur Borsboom
------------------------

Revision history for this message
Arthur Borsboom (arthurborsboom) wrote :

https://code.launchpad.net/~gilir/xpad/xpad-panel-icon/+merge/119710

* Reason is feature request: https://bugs.launchpad.net/xpad/+bug/907705
* Proposed branch: lp:~gilir/xpad/xpad-panel-icon

Expected result(s)
If a file called xpad-panel.svg is added to the current Icon Theme,
this icon should be shown in the systray. The regular icon of the
application, should not change. Other behaviour of the application
should not change.

Specific tests regarding the change: works
Regression tests:
- Create new note: works
- Delete note: works
- Save note: works
- Tray shows: works
- Tray hides: works
- Quit application: works
- Show all: works
- Close all: works
- Select specific note from tray: works
- Preferences, font change: works
- Preferences, save font change: works

Code quality: fine.
Review: ok

Ready to be merged.

With kind regards,
Arthur Borsboom

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'src/xpad-tray.c'
2--- src/xpad-tray.c 2008-09-21 00:03:40 +0000
3+++ src/xpad-tray.c 2012-08-15 13:38:22 +0000
4@@ -45,7 +45,14 @@
5 if (!gtk_icon_theme_has_icon (theme, PACKAGE))
6 return;
7
8- docklet = gtk_status_icon_new_from_icon_name (PACKAGE);
9+ if (gtk_icon_theme_has_icon (theme, "xpad-panel"))
10+ {
11+ docklet = gtk_status_icon_new_from_icon_name ("xpad-panel");
12+ }
13+ else
14+ {
15+ docklet = gtk_status_icon_new_from_icon_name (PACKAGE);
16+ }
17
18 if (docklet)
19 {

Subscribers

People subscribed via source and target branches