Merge lp:~victored/granite/remove-conditional-compilation into lp:~elementary-pantheon/granite/granite

Proposed by Victor Martinez
Status: Merged
Approved by: Cody Garver
Approved revision: 605
Merged at revision: 606
Proposed branch: lp:~victored/granite/remove-conditional-compilation
Merge into: lp:~elementary-pantheon/granite/granite
Diff against target: 23 lines (+2/-12)
1 file modified
lib/Widgets/SourceList.vala (+2/-12)
To merge this branch: bzr merge lp:~victored/granite/remove-conditional-compilation
Reviewer Review Type Date Requested Status
Cody Garver (community) Approve
Review via email: mp+180666@code.launchpad.net

Commit message

[SourceList] Remove workaround for https://bugzilla.gnome.org/show_bug.cgi?id=685177 because it was fixed in vala 0.20.

This also allows valadoc to compile documentation without errors, as it does not support conditional compilation directives.

Description of the change

[SourceList] Remove workaround for https://bugzilla.gnome.org/show_bug.cgi?id=685177 because it was fixed in vala 0.20.

This also allows valadoc to compile documentation without errors, as it does not support conditional compilation directives.

To post a comment you must log in.
Revision history for this message
Cody Garver (codygarver) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'lib/Widgets/SourceList.vala'
2--- lib/Widgets/SourceList.vala 2013-05-30 09:13:43 +0000
3+++ lib/Widgets/SourceList.vala 2013-08-16 22:56:23 +0000
4@@ -820,18 +820,8 @@
5 // and its handlers could potentially depend on one of the methods mentioned above.
6 items.unset (item);
7
8- if (child_iter != null) {
9-#if VALA_0_18
10- // Workaround for a bug in valac 0.18 that tries to pass an invalid pointer type
11- // (GtkTreeIter** instead of GtkTreeIter*) to gtk_tree_store_remove() in the
12- // generated C code. https://bugzilla.gnome.org/show_bug.cgi?id=685177
13- Gtk.TreeIter iter = child_iter;
14-
15- child_tree.remove (ref iter);
16-#else
17- child_tree.remove (child_iter);
18-#endif
19- }
20+ if (child_iter != null)
21+ child_tree.remove (ref child_iter);
22
23 push_parent_update (item.parent);
24

Subscribers

People subscribed via source and target branches