Merge lp:~roadmr/checkbox/bug-937099 into lp:checkbox

Proposed by Daniel Manrique
Status: Merged
Merged at revision: 1275
Proposed branch: lp:~roadmr/checkbox/bug-937099
Merge into: lp:checkbox
Diff against target: 41 lines (+8/-2) (has conflicts)
2 files modified
checkbox_qt/qt_interface.py (+2/-2)
debian/changelog (+6/-0)
Text conflict in debian/changelog
To merge this branch: bzr merge lp:~roadmr/checkbox/bug-937099
Reviewer Review Type Date Requested Status
Marc Tardif (community) Approve
Review via email: mp+94265@code.launchpad.net

Description of the change

Mixing the old way of using gobject (in checkbox_qt.py import gobject) with the new way (in user_interface.py when importing gi.repository.Gio) break things. This updates checkbox_qt.py to use gi.repository instead.

I found several other instances of gobject use, but they seem to be self-contained in testing scripts, so they shouldn't cause problems for now, however at some point these should also be reviewed and rewritten to use gi.repository as the way to do it (tm).

To post a comment you must log in.
Revision history for this message
Marc Tardif (cr3) wrote :

Awesome, thanks so much!

review: Approve
Revision history for this message
Tiago Salem Herrmann (tiagosh) wrote :

Looks like there is a conflict in the changelog file, is that correct?

Revision history for this message
Marc Tardif (cr3) wrote :

Right, but that's common because the same part of the same file is changed for every merge request. So, the person merging a branch should make sure to properly resolve any conflicts such as this one. This is what I did when merging this branch as revno 1275 in trunk:

=== modified file 'debian/changelog'
--- debian/changelog 2012-02-22 18:02:51 +0000
+++ debian/changelog 2012-02-22 21:05:54 +0000
@@ -1,5 +1,11 @@
 checkbox (0.13.3) precise; urgency=low

+ [Brendan Donegan]
+ * Typo in command for for miscellanea/virtualization-check (LP: #934243)
+
+ [Daniel Manrique]
+ * Use GObject from gi.repository instead of gobject (LP: #937099)
+
   [Javier Collado]
   * Fixed running of disk/read_performance tests (LP: #933528)

@@ -7,9 +13,6 @@
   * Fix depends fields in info and suspend test suites (LP: #934051)
   * Display results report in non-graphical interfaces (LP: #937657)

- [Brendan Donegan]
- * Typo in command for for miscellanea/virtualization-check (LP: #934243)
-
   [ Tiago Salem Herrmann ]
   * Remove auto generated qt resource file (LP: #938863)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'checkbox_qt/qt_interface.py'
2--- checkbox_qt/qt_interface.py 2012-02-14 21:56:03 +0000
3+++ checkbox_qt/qt_interface.py 2012-02-22 20:16:18 +0000
4@@ -20,7 +20,7 @@
5 import time
6 import posixpath
7 import inspect
8-import gobject
9+from gi.repository import GObject
10 import os
11
12 from gettext import gettext as _
13@@ -51,7 +51,7 @@
14 self.bus = dbus.SessionBus(mainloop=DBusGMainLoop())
15 self.qtfront = self.bus.get_object('com.canonical.QtCheckbox', '/QtCheckbox')
16 self.qtiface = dbus.Interface(self.qtfront, dbus_interface='com.canonical.QtCheckbox')
17- self.loop = gobject.MainLoop()
18+ self.loop = GObject.MainLoop()
19 notReady = False
20 except:
21 time.sleep(0.5)
22
23=== modified file 'debian/changelog'
24--- debian/changelog 2012-02-22 18:02:51 +0000
25+++ debian/changelog 2012-02-22 20:16:18 +0000
26@@ -10,9 +10,15 @@
27 [Brendan Donegan]
28 * Typo in command for for miscellanea/virtualization-check (LP: #934243)
29
30+<<<<<<< TREE
31 [ Tiago Salem Herrmann ]
32 * Remove auto generated qt resource file (LP: #938863)
33
34+=======
35+ [Daniel Manrique]
36+ * Use GObject from gi.repository instead of gobject (LP: #937099)
37+
38+>>>>>>> MERGE-SOURCE
39 -- Marc Tardif <marc@ubuntu.com> Thu, 16 Feb 2012 10:31:18 -0500
40
41 checkbox (0.13.2) precise; urgency=low

Subscribers

People subscribed via source and target branches