X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fui%2Fgui%2Fselect-cases-dialog.c;h=5b027825bc6e62ccec66116837e7f085015a9dc7;hb=fd0c595927a23ea0373551a1eed4570388ea0fc5;hp=e4d599edc8124480e2b51afb45ef1a25e44e7ca4;hpb=1b2a87ad88df1fcbf19efaff1476b48711278917;p=pspp-builds.git diff --git a/src/ui/gui/select-cases-dialog.c b/src/ui/gui/select-cases-dialog.c index e4d599ed..5b027825 100644 --- a/src/ui/gui/select-cases-dialog.c +++ b/src/ui/gui/select-cases-dialog.c @@ -1,5 +1,5 @@ /* PSPPIRE - a graphical user interface for PSPP. - Copyright (C) 2007, 2008 Free Software Foundation, Inc. + Copyright (C) 2007, 2008, 2009 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -18,14 +18,16 @@ #include "select-cases-dialog.h" #include -#include "helper.h" +#include "executor.h" #include "psppire-dialog.h" #include "psppire-data-window.h" -#include "dialog-common.h" +#include "psppire-selector.h" #include "dict-display.h" +#include "dialog-common.h" #include "widget-io.h" #include #include "helper.h" +#include #include @@ -324,16 +326,13 @@ select_cases_dialog (GObject *o, gpointer data) { GtkWidget *source = get_widget_assert (scd.xml, "select-cases-treeview"); - attach_dictionary_to_treeview (GTK_TREE_VIEW (source), - scd.data_store->dict, - GTK_SELECTION_SINGLE, NULL); + g_object_set (source, "model", + scd.data_store->dict, + "selection-mode", + GTK_SELECTION_SINGLE, NULL); - psppire_selector_set_subjects (PSPPIRE_SELECTOR (selector), - source, - entry, - insert_source_row_into_entry, - is_currently_in_entry, - NULL); + psppire_selector_set_filter_func (PSPPIRE_SELECTOR (selector), + is_currently_in_entry); } @@ -386,7 +385,7 @@ generate_syntax (const struct select_cases_dialog *scd) (GTK_TOGGLE_BUTTON (get_widget_assert (scd->xml, "radiobutton-all")))) { - return strdup ("\n"); + return xstrdup ("\n"); } string = g_string_new ("");