Merge lp:~not-used-anymore-deactivatedaccount/apport/fixes-bug-1422176 into lp:~apport-hackers/apport/trunk

Proposed by not-used-anymore
Status: Merged
Merged at revision: 2920
Proposed branch: lp:~not-used-anymore-deactivatedaccount/apport/fixes-bug-1422176
Merge into: lp:~apport-hackers/apport/trunk
Diff against target: 29 lines (+3/-3)
2 files modified
gtk/apport-gtk (+2/-2)
gtk/apport-gtk.ui (+1/-1)
To merge this branch: bzr merge lp:~not-used-anymore-deactivatedaccount/apport/fixes-bug-1422176
Reviewer Review Type Date Requested Status
Martin Pitt (community) Approve
Review via email: mp+251375@code.launchpad.net

Description of the change

Rationale: In apport gui, the error icon was not showing correctly. This needs to be fixed

Fix: in gui/apport-gtk, the constants used to reference the error dialog icon were legacy (deprecated). Changed from Gtk.STOCK_DIALOG_ERROR legacy constant to icon string 'dialog-error'

Also, in gui/apport-gtk.ui, fixed legacy icon reference 'gtk-dialog-error' to be current 'dialog-error'

Test: I could not find a way to test from the source code directory of the branch I downloaded. So, I booted up a vivid Ubuntu-Gnome instance using the LiveCD in a VM and selected "Try Ubuntu," then altered the /usr/share/apport/apport-gtk file with the changes described in "Fix:" above, then verified by running "apport-bug gnome-session" that the GUI now correctly showed the error icon.

To post a comment you must log in.
Revision history for this message
Martin Pitt (pitti) wrote :

LGTM, thank you!

For the record, I usually call PYTHONPATH=. gtk/apport-gtk [args], and also running "test/run ui_gtk" cannot hurt.

review: Approve
Revision history for this message
not-used-anymore (not-used-anymore-deactivatedaccount) wrote :

You're welcome!

Wish I had known the "right" way to test at the time!

Take care,

Scott

On Mon, Mar 2, 2015 at 1:14 AM, Martin Pitt <email address hidden> wrote:

> Review: Approve
>
> LGTM, thank you!
>
> For the record, I usually call PYTHONPATH=. gtk/apport-gtk [args], and
> also running "test/run ui_gtk" cannot hurt.
> --
> https://code.launchpad.net/~aeoril/apport/fixes-bug-1422176/+merge/251375
> You are the owner of lp:~aeoril/apport/fixes-bug-1422176.
>

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'gtk/apport-gtk'
2--- gtk/apport-gtk 2015-02-06 07:55:25 +0000
3+++ gtk/apport-gtk 2015-02-28 20:46:10 +0000
4@@ -335,10 +335,10 @@
5 app_icon.set_from_pixbuf(pb)
6 except GLib.GError:
7 self.w('application_icon').set_from_icon_name(
8- Gtk.STOCK_DIALOG_ERROR, Gtk.IconSize.DIALOG)
9+ 'dialog-error', Gtk.IconSize.DIALOG)
10 else:
11 self.w('application_icon').set_from_icon_name(
12- Gtk.STOCK_DIALOG_ERROR, Gtk.IconSize.DIALOG)
13+ 'dialog-error', Gtk.IconSize.DIALOG)
14
15 d = self.w('dialog_crash_new')
16 if 'DistroRelease' in self.report:
17
18=== modified file 'gtk/apport-gtk.ui'
19--- gtk/apport-gtk.ui 2014-12-19 06:31:22 +0000
20+++ gtk/apport-gtk.ui 2015-02-28 20:46:10 +0000
21@@ -131,7 +131,7 @@
22 <property name="visible">True</property>
23 <property name="can_focus">False</property>
24 <property name="yalign">0</property>
25- <property name="icon-name">gtk-dialog-error</property>
26+ <property name="icon-name">dialog-error</property>
27 <property name="icon-size">6</property>
28 </object>
29 <packing>

Subscribers

People subscribed via source and target branches