X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fui%2Fgui%2Fpsppire-selector.c;h=7f34baebafcbcbad1ff98535aa30f1fdcb293a4e;hb=82d3fc0e14c1465eb2d1de00796317d062151fe0;hp=6465189d759d365b8c627654b84a8209f464db74;hpb=7eda1a159f93609f8bd68e98e1b04db2d99067f5;p=pspp-builds.git diff --git a/src/ui/gui/psppire-selector.c b/src/ui/gui/psppire-selector.c index 6465189d..7f34baeb 100644 --- a/src/ui/gui/psppire-selector.c +++ b/src/ui/gui/psppire-selector.c @@ -1,10 +1,9 @@ -/* - PSPPIRE --- A Graphical User Interface for PSPP +/* PSPPIRE - a graphical user interface for PSPP. Copyright (C) 2007 Free Software Foundation - This program is free software; you can redistribute it and/or modify + 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 - the Free Software Foundation; either version 2 of the License, or + the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, @@ -13,9 +12,7 @@ GNU General Public License for more details. You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software - Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - 02110-1301, USA. */ + along with this program. If not, see . */ /* This module provides a widget, PsppireSelector derived from @@ -68,6 +65,7 @@ #include #include +#include #include static void psppire_selector_base_finalize (PsppireSelectorClass *, gpointer); @@ -561,8 +559,8 @@ is_source_item_visible (GtkTreeModel *childmodel, { PsppireSelector *selector = list->data; - if ( selector->filter (childmodel, iter, selector)) - return FALSE; + if ( selector->filter && selector->filter (childmodel, iter, selector)) + return FALSE; list = list->next; } @@ -745,6 +743,11 @@ psppire_selector_set_subjects (PsppireSelector *selector, else if ( GTK_IS_ENTRY (dest)) set_entry_dest (selector, GTK_ENTRY (dest)); + else if (GTK_IS_TEXT_VIEW (dest)) + { + /* Nothing to be done */ + } + else g_error ("Unsupported destination widget: %s", G_OBJECT_TYPE_NAME (dest));