[Pkg-privacy-commits] [nautilus-wipe] 67/224: Drop GtkCellRendererSpin in favour to GtkCellRendererText

Ulrike Uhlig u-guest at moszumanska.debian.org
Thu Jul 7 19:45:35 UTC 2016


This is an automated email from the git hooks/post-receive script.

u-guest pushed a commit to branch master
in repository nautilus-wipe.

commit 7dbbd75d97b49e188360e8c1eafb48cd7cea91be
Author: Colomban Wendling <ban at herbesfolles.org>
Date:   Sun Mar 14 00:07:55 2010 +0100

    Drop GtkCellRendererSpin in favour to GtkCellRendererText
    
    We don't need the features GtkCellRendererSpin adds and it is only
    available with newer GTK versions (>= 2.10), so drop it.
---
 nautilus-srm/operation-manager.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/nautilus-srm/operation-manager.c b/nautilus-srm/operation-manager.c
index 8dc8984..76342e3 100644
--- a/nautilus-srm/operation-manager.c
+++ b/nautilus-srm/operation-manager.c
@@ -335,11 +335,11 @@ operation_confirm_dialog (GtkWindow                    *parent,
       /* store columns: setting value     (enum)
        *                number of passes  (int)
        *                descriptive text  (string) */
-      store = gtk_list_store_new (3, G_TYPE_INT, G_TYPE_INT, G_TYPE_STRING);
+      store = gtk_list_store_new (3, G_TYPE_INT, G_TYPE_STRING, G_TYPE_STRING);
       combo = gtk_combo_box_new_with_model (GTK_TREE_MODEL (store));
       gtk_label_set_mnemonic_widget (GTK_LABEL (label), combo);
       /* number of passes column */
-      renderer = gtk_cell_renderer_spin_new ();
+      renderer = gtk_cell_renderer_text_new ();
       gtk_cell_layout_pack_start (GTK_CELL_LAYOUT (combo), renderer, FALSE);
       gtk_cell_layout_set_attributes (GTK_CELL_LAYOUT (combo), renderer,
                                       "text", 1, NULL);
@@ -357,7 +357,7 @@ operation_confirm_dialog (GtkWindow                    *parent,
           GtkTreeIter iter;                                                    \
                                                                                \
           gtk_list_store_append (store, &iter);                                \
-          gtk_list_store_set (store, &iter, 0, value, 1, n_pass, 2, text, -1); \
+          gtk_list_store_set (store, &iter, 0, value, 1, #n_pass, 2, text, -1);\
           if (value == *delete_mode) {                                         \
               gtk_combo_box_set_active_iter (GTK_COMBO_BOX (combo), &iter);    \
           }                                                                    \

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-privacy/packages/nautilus-wipe.git



More information about the Pkg-privacy-commits mailing list