#include <language/syntax-string-source.h>
#include "psppire-data-store.h"
#include <ui/gui/sheet/psppire-axis-impl.h>
+#include <libpspp/i18n.h>
#include "helper.h"
#include <gtk-contrib/gtkxpaned.h>
g_object_ref (de->data_store);
for (i = 0 ; i < 4 ; ++i )
- g_object_set (de->data_sheet[i],
- "model", de->data_store,
- NULL);
+ {
+ g_object_set (de->data_sheet[i],
+ "model", de->data_store,
+ NULL);
+
+ g_signal_connect_swapped (de->data_store->dict, "filter-changed",
+ G_CALLBACK (gtk_widget_queue_draw),
+ de->data_sheet[i]);
+ }
g_signal_connect (de->data_store->dict, "backend-changed",
G_CALLBACK (new_variables_callback), de);
gchar *text = g_strdup_printf ("%d: %s", row + FIRST_CASE_NUMBER,
var_get_name (var));
- gchar *s = pspp_locale_to_utf8 (text, -1, 0);
+ gchar *s = recode_string (UTF8,
+ psppire_dict_encoding (data_store->dict),
+ text, -1);
g_free (text);
de->vaxis[0] = psppire_axis_impl_new ();
de->vaxis[1] = psppire_axis_impl_new ();
- /* Txoxovhere's only one horizontal axis, since the
+ /* There's only one horizontal axis, since the
column widths are parameters of the variables */
de->haxis = psppire_axis_impl_new ();
-
de->split = TRUE;
de->paned = gtk_xpaned_new ();