X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fui%2Fgui%2Fselect-cases-dialog.c;h=63061b1fa3a4b98cd1a2ab1ae92827c53d373497;hb=b94025a12799b6826a772731b8f58907dca2cf5c;hp=3c36f4ededbfa10c201e959af1d235b017d43683;hpb=7fbfc32fc3c636959b0a25b3e76609f86519e84a;p=pspp-builds.git diff --git a/src/ui/gui/select-cases-dialog.c b/src/ui/gui/select-cases-dialog.c index 3c36f4ed..63061b1f 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,7 +18,7 @@ #include "select-cases-dialog.h" #include -#include "helper.h" +#include "executor.h" #include "psppire-dialog.h" #include "psppire-data-window.h" #include "psppire-selector.h" @@ -27,6 +27,7 @@ #include "widget-io.h" #include #include "helper.h" +#include #include @@ -325,17 +326,19 @@ select_cases_dialog (GObject *o, gpointer data) { GtkWidget *source = get_widget_assert (scd.xml, "select-cases-treeview"); - g_object_set (source, "dictionary", + g_object_set (source, "model", scd.data_store->dict, "selection-mode", GTK_SELECTION_SINGLE, NULL); - psppire_selector_set_subjects (PSPPIRE_SELECTOR (selector), - source, - entry, + psppire_selector_set_select_func (PSPPIRE_SELECTOR (selector), insert_source_row_into_entry, - is_currently_in_entry, NULL); + + psppire_selector_set_filter_func (PSPPIRE_SELECTOR (selector), + is_currently_in_entry); + + } @@ -388,7 +391,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 ("");