Merge lp:~roadmr/checkbox/apport-integration into lp:checkbox

Proposed by Daniel Manrique
Status: Merged
Merge reported by: Brendan Donegan
Merged at revision: not available
Proposed branch: lp:~roadmr/checkbox/apport-integration
Merge into: lp:checkbox
Diff against target: 52 lines (+11/-2)
3 files modified
checkbox_gtk/gtk_interface.py (+5/-2)
debian/changelog (+4/-0)
plugins/apport_prompt.py (+2/-0)
To merge this branch: bzr merge lp:~roadmr/checkbox/apport-integration
Reviewer Review Type Date Requested Status
Brendan Donegan (community) Approve
Review via email: mp+76819@code.launchpad.net

Description of the change

This code fixes apport integration, broken due to gi introspection and Apport related API changes.

A small issue remains where checkbox "freezes" for about 30 seconds after closing the browser used for bug reporting. I'll be tackling this next week, but I wanted to get this code out there for review and inclusion into trunk. The freezing problem appears to be orthogonal and can be fixed separately.

To post a comment you must log in.
Revision history for this message
Brendan Donegan (brendan-donegan) wrote :

Is the freezing problem potentially a seperate bug then? As in, if this code does what it say, should it be merged and the bugs linked above set to Fix Commited, or should it wait for a fix for that?

Revision history for this message
Daniel Manrique (roadmr) wrote :

The freezing problem gives a totally different trace, I guess we could file a separate bug about that and merge this code (which makes apport integration work but checkbox freeze for a bit afterwards), as opposed to not merging and waiting (which means apport integration doesn't really work at all) :)

Revision history for this message
Brendan Donegan (brendan-donegan) wrote :

I think that makes sense, I'll give this a once over and merge it if it's all okay

Revision history for this message
Brendan Donegan (brendan-donegan) wrote :

Looks good and does what it claims to, so I approve. Merging.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'checkbox_gtk/gtk_interface.py'
2--- checkbox_gtk/gtk_interface.py 2011-09-06 20:37:13 +0000
3+++ checkbox_gtk/gtk_interface.py 2011-09-23 21:43:43 +0000
4@@ -302,7 +302,8 @@
5 vbox = self._get_widget("vbox_options_list")
6 for option in options:
7 label = "_%s%s" % (option[0].upper(), option[1:])
8- check_button = Gtk.CheckButton(label)
9+ check_button = Gtk.CheckButton(label = label,
10+ use_underline = True)
11 check_button.get_child().set_line_wrap(True)
12 check_button.show()
13 option_table[option] = check_button
14@@ -348,7 +349,9 @@
15 vbox = self._get_widget("vbox_options_list")
16 for option in options:
17 label = "_%s%s" % (option[0].upper(), option[1:])
18- radio_button = Gtk.RadioButton(option_group, label)
19+ radio_button = Gtk.RadioButton(group = option_group,
20+ label = label,
21+ use_underline = True)
22 radio_button.get_child().set_line_wrap(True)
23 radio_button.show()
24 option_table[option] = radio_button
25
26=== modified file 'debian/changelog'
27--- debian/changelog 2011-09-23 16:29:43 +0000
28+++ debian/changelog 2011-09-23 21:43:43 +0000
29@@ -16,6 +16,10 @@
30 screens (LP: #852204)
31 * Remove memory/test from the Ubuntu Friendly whitelist (LP: #853799)
32 * Use diff instead of grep, better comparing of empty files (LP: #852014)
33+ * Apport integration: new mandatory "tag" value in ApportOptions
34+ (LP: #852201)
35+ * Apport integration: Fix instantiation of Gtk.RadioButton, needed due
36+ to PyGI related API changes (LP: #805679)
37
38 [ Evan Broder ]
39 * Replace resolution_test with an implementation which uses GdkScreen to
40
41=== modified file 'plugins/apport_prompt.py'
42--- plugins/apport_prompt.py 2011-07-01 11:49:38 +0000
43+++ plugins/apport_prompt.py 2011-09-23 21:43:43 +0000
44@@ -55,6 +55,8 @@
45 self.symptom = symptom
46 self.pid = None
47 self.save = False
48+ self.tag = '' #Additional tags to add to reports filed
49+ #through this tool
50
51
52 class ApportUserInterface(UserInterface):

Subscribers

People subscribed via source and target branches