Merge lp:~kelemeng/synaptic/bug702181 into lp:~ubuntu-core-dev/synaptic/ubuntu

Proposed by Gabor Kelemen
Status: Merged
Approved by: Sebastien Bacher
Approved revision: 1740
Merge reported by: Michael Vogt
Merged at revision: not available
Proposed branch: lp:~kelemeng/synaptic/bug702181
Merge into: lp:~ubuntu-core-dev/synaptic/ubuntu
Diff against target: 52 lines (+5/-5)
2 files modified
gtk/rgfiltermanager.cc (+4/-4)
gtk/rgmainwindow.cc (+1/-1)
To merge this branch: bzr merge lp:~kelemeng/synaptic/bug702181
Reviewer Review Type Date Requested Status
Michael Vogt (community) Approve
Mathieu Trudel-Lapierre Needs Fixing
Review via email: mp+46110@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Mathieu Trudel-Lapierre (cyphermox) wrote :

Nice work, but I think it's done against the wrong branch. You may want to re-apply this on lp:synaptic and file a new merge request.

review: Needs Fixing
Revision history for this message
Gabor Kelemen (kelemeng) wrote :

lp:synaptic is not migrated yet to Gtkbuilder[1], but the version packaged in Natty is. That version looks to be coming from this branch.

[1]: http://bazaar.launchpad.net/~synaptic-developers/synaptic/trunk/files/head:/gtk/glade/

Revision history for this message
Michael Vogt (mvo) wrote :

Thanks a lot Gabor! Now that debian has released I updated trunk to the current gtkbuilder work too and merged your fix.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'gtk/rgfiltermanager.cc'
--- gtk/rgfiltermanager.cc 2010-11-12 15:13:26 +0000
+++ gtk/rgfiltermanager.cc 2011-01-13 09:35:19 +0000
@@ -66,7 +66,7 @@
66 GTK_COMBO_BOX(_comboPatternWhat)));66 GTK_COMBO_BOX(_comboPatternWhat)));
67 for (int i = 0; DepOptions[i] != NULL; i++) {67 for (int i = 0; DepOptions[i] != NULL; i++) {
68 gtk_list_store_append(comboStore, &comboIter);68 gtk_list_store_append(comboStore, &comboIter);
69 gtk_list_store_set(comboStore, &comboIter, 0, DepOptions[i], -1);69 gtk_list_store_set(comboStore, &comboIter, 0, _(DepOptions[i]), -1);
70 }70 }
71 crt = gtk_cell_renderer_text_new();71 crt = gtk_cell_renderer_text_new();
72 gtk_cell_layout_clear(GTK_CELL_LAYOUT(_comboPatternWhat));72 gtk_cell_layout_clear(GTK_CELL_LAYOUT(_comboPatternWhat));
@@ -82,7 +82,7 @@
82 GTK_COMBO_BOX(_comboPatternDo)));82 GTK_COMBO_BOX(_comboPatternDo)));
83 for (int i = 0; ActOptions[i] != NULL; i++) {83 for (int i = 0; ActOptions[i] != NULL; i++) {
84 gtk_list_store_append(comboStore, &comboIter);84 gtk_list_store_append(comboStore, &comboIter);
85 gtk_list_store_set(comboStore, &comboIter, 0, ActOptions[i], -1);85 gtk_list_store_set(comboStore, &comboIter, 0, _(ActOptions[i]), -1);
86 }86 }
87 crt = gtk_cell_renderer_text_new();87 crt = gtk_cell_renderer_text_new();
88 gtk_cell_layout_clear(GTK_CELL_LAYOUT(_comboPatternDo));88 gtk_cell_layout_clear(GTK_CELL_LAYOUT(_comboPatternDo));
@@ -623,7 +623,7 @@
623 if (row < 0) {623 if (row < 0) {
624 gtk_list_store_append(GTK_LIST_STORE(_patternListStore), &iter);624 gtk_list_store_append(GTK_LIST_STORE(_patternListStore), &iter);
625 gtk_list_store_set(GTK_LIST_STORE(_patternListStore), &iter,625 gtk_list_store_set(GTK_LIST_STORE(_patternListStore), &iter,
626 0, array[0], 1, _(array[1]), 2, array[2], -1);626 0, _(array[0]), 1, _(array[1]), 2, array[2], -1);
627 GtkTreeSelection *select =627 GtkTreeSelection *select =
628 gtk_tree_view_get_selection(GTK_TREE_VIEW(_patternList));628 gtk_tree_view_get_selection(GTK_TREE_VIEW(_patternList));
629 gtk_tree_selection_select_iter(select, &iter);629 gtk_tree_selection_select_iter(select, &iter);
@@ -633,7 +633,7 @@
633 if (gtk_tree_model_get_iter(GTK_TREE_MODEL(_patternListStore),633 if (gtk_tree_model_get_iter(GTK_TREE_MODEL(_patternListStore),
634 &iter, path)) {634 &iter, path)) {
635 gtk_list_store_set(GTK_LIST_STORE(_patternListStore),635 gtk_list_store_set(GTK_LIST_STORE(_patternListStore),
636 &iter, 0, array[0], 1, _(array[1]), 2, 636 &iter, 0, _(array[0]), 1, _(array[1]), 2,
637 array[2], -1);637 array[2], -1);
638 }638 }
639 gtk_tree_path_free(path);639 gtk_tree_path_free(path);
640640
=== modified file 'gtk/rgmainwindow.cc'
--- gtk/rgmainwindow.cc 2010-12-07 09:40:39 +0000
+++ gtk/rgmainwindow.cc 2011-01-13 09:35:19 +0000
@@ -1551,7 +1551,7 @@
1551 GtkTreeIter relIter;1551 GtkTreeIter relIter;
1552 for (int i = 0; relOptions[i] != NULL; i++) {1552 for (int i = 0; relOptions[i] != NULL; i++) {
1553 gtk_list_store_append(relTypes, &relIter);1553 gtk_list_store_append(relTypes, &relIter);
1554 gtk_list_store_set(relTypes, &relIter, 0, relOptions[i], -1);1554 gtk_list_store_set(relTypes, &relIter, 0, _(relOptions[i]), -1);
1555 }1555 }
1556 gtk_combo_box_set_model(GTK_COMBO_BOX(comboDepends),1556 gtk_combo_box_set_model(GTK_COMBO_BOX(comboDepends),
1557 GTK_TREE_MODEL(relTypes));1557 GTK_TREE_MODEL(relTypes));

Subscribers

People subscribed via source and target branches

to all changes: