Merge lp:~jnuzman/simple-scan/bug-843361 into lp:~simple-scan-team/simple-scan/trunk

Proposed by Joseph Nuzman
Status: Merged
Merged at revision: 589
Proposed branch: lp:~jnuzman/simple-scan/bug-843361
Merge into: lp:~simple-scan-team/simple-scan/trunk
Diff against target: 102 lines (+31/-8) (has conflicts)
5 files modified
NEWS (+8/-0)
configure.ac (+4/-0)
src/book-view.vala (+7/-7)
src/book.vala (+1/-1)
src/page-view.vala (+11/-0)
Text conflict in NEWS
Text conflict in configure.ac
To merge this branch: bzr merge lp:~jnuzman/simple-scan/bug-843361
Reviewer Review Type Date Requested Status
Robert Ancell Pending
Review via email: mp+113867@code.launchpad.net

Description of the change

Intended to fix bug#843361. Developed against 3.4.2.

To post a comment you must log in.
Revision history for this message
Robert Ancell (robert-ancell) wrote :

Hi, thanks for this.

I've committed the signal disconnections along with some other ones. I'm a little wary of committing the other changes as I'm not sure why they fix the problem but am investigating the code around these.

Revision history for this message
Joseph Nuzman (jnuzman) wrote :

OK, looks good.

As to the other changes:

Moving existing page add to end of BookView constructor: looks problematic
to me to populate the page_data hash and then a few lines later initialize
page_data with with "new".

Emitting cleared signal before destroying pages list in Book.clear(): I
wanted to ensure the pages were still around to disconnect from when the
PageView destructor is called, but I guess since the PageView holds a
reference to the Page, it shouldn't be an issue.

Joe

On Thu, Jul 12, 2012 at 8:46 AM, Robert Ancell
<email address hidden>wrote:

> Hi, thanks for this.
>
> I've committed the signal disconnections along with some other ones. I'm a
> little wary of committing the other changes as I'm not sure why they fix
> the problem but am investigating the code around these.
> --
> https://code.launchpad.net/~jnuzman/simple-scan/bug-843361/+merge/113867<https://code.launchpad.net/%7Ejnuzman/simple-scan/bug-843361/+merge/113867>
> You are the owner of lp:~jnuzman/simple-scan/bug-843361.
>

Revision history for this message
Michael Nagel (nailor) wrote :

can this merge request be closed?

the main problem seems fixed, and for the other suggested changes a new ticket/bu report/merge request should be created.

Revision history for this message
Joseph Nuzman (jnuzman) wrote :

Yes, I'm fine with closing the merge request.

Revision history for this message
Michael Nagel (nailor) wrote :

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'NEWS'
2--- NEWS 2012-07-03 02:11:06 +0000
3+++ NEWS 2012-07-08 18:45:23 +0000
4@@ -1,4 +1,12 @@
5+<<<<<<< TREE
6 Overview of changes in simple-scan 3.5.3
7+=======
8+Overview of changes in simple-scan 3.4.2
9+
10+ * Fix save dialog filter labels
11+
12+Overview of changes in simple-scan 3.4.1
13+>>>>>>> MERGE-SOURCE
14
15 * Always set scanner options in the same order to avoid options resetting
16 options already set.
17
18=== modified file 'configure.ac'
19--- configure.ac 2012-07-03 02:11:06 +0000
20+++ configure.ac 2012-07-08 18:45:23 +0000
21@@ -1,7 +1,11 @@
22 dnl Process this file with autoconf to produce a configure script.
23
24 AC_INIT(configure.ac)
25+<<<<<<< TREE
26 AM_INIT_AUTOMAKE(simple-scan, 3.5.3)
27+=======
28+AM_INIT_AUTOMAKE(simple-scan, 3.4.2)
29+>>>>>>> MERGE-SOURCE
30 AM_CONFIG_HEADER(config.h)
31 AM_MAINTAINER_MODE
32 GNOME_MAINTAINER_MODE_DEFINES
33
34=== modified file 'src/book-view.vala'
35--- src/book-view.vala 2012-05-28 17:27:53 +0000
36+++ src/book-view.vala 2012-07-08 18:45:23 +0000
37@@ -43,13 +43,6 @@
38 {
39 this.book = book;
40
41- /* Load existing pages */
42- for (var i = 0; i < book.get_n_pages (); i++)
43- {
44- Page page = book.get_page (i);
45- add_cb (book, page);
46- }
47-
48 select_page (book.get_page (0));
49
50 /* Watch for new pages */
51@@ -82,6 +75,13 @@
52 drawing_area.focus_out_event.connect_after (focus_cb);
53 adjustment.value_changed.connect (scroll_cb);
54
55+ /* Load existing pages */
56+ for (var i = 0; i < book.get_n_pages (); i++)
57+ {
58+ Page page = book.get_page (i);
59+ add_cb (book, page);
60+ }
61+
62 drawing_area.show ();
63 }
64
65
66=== modified file 'src/book.vala'
67--- src/book.vala 2012-05-15 09:48:22 +0000
68+++ src/book.vala 2012-07-08 18:45:23 +0000
69@@ -28,8 +28,8 @@
70
71 public void clear ()
72 {
73+ cleared ();
74 pages = null;
75- cleared ();
76 }
77
78 private void page_changed_cb (Page page)
79
80=== modified file 'src/page-view.vala'
81--- src/page-view.vala 2011-06-11 09:30:07 +0000
82+++ src/page-view.vala 2012-07-08 18:45:23 +0000
83@@ -80,6 +80,17 @@
84 page.scan_direction_changed.connect (scan_direction_changed_cb);
85 }
86
87+ ~PageView ()
88+ {
89+ page.pixels_changed.disconnect (page_pixels_changed_cb);
90+ page.size_changed.disconnect (page_size_changed_cb);
91+ page.crop_changed.disconnect (page_overlay_changed_cb);
92+ page.scan_line_changed.disconnect (page_overlay_changed_cb);
93+ page.scan_direction_changed.disconnect (scan_direction_changed_cb);
94+ }
95+
96+
97+
98 public Page get_page ()
99 {
100 return page;
101
102=== modified file 'src/ui.vala'

Subscribers

People subscribed via source and target branches