if (case_num >= 0 &&
case_num < gtk_tree_model_iter_n_children (GTK_TREE_MODEL (ds), NULL))
{
- ssw_sheet_scroll_to (ds, -1, case_num);
- ssw_sheet_set_active_cell (ds, -1, case_num, 0);
+ ssw_sheet_scroll_to (SSW_SHEET (ds), -1, case_num);
+ ssw_sheet_set_active_cell (SSW_SHEET (ds), -1, case_num, 0);
}
}
}
#include "ui/gui/val-labs-dialog.h"
#include "ui/gui/missing-val-dialog.h"
#include "ui/gui/var-type-dialog.h"
+#include "ui/gui/value-variant.h"
#include "ui/gui/psppire-dict.h"
#include "ui/gui/psppire-data-store.h"
#include "ui/gui/psppire-data-window.h"
value_destroy (&val, width);
gtk_widget_grab_focus (de->data_sheet);
- ssw_sheet_set_active_cell (de->data_sheet, col, row, NULL);
+ ssw_sheet_set_active_cell (SSW_SHEET (de->data_sheet), col, row, NULL);
}
}
static gboolean
indicate_filtered_case (GtkWidget *widget, cairo_t *cr, PsppireDataStore *store)
{
- guint row = g_object_get_data (widget, "row");
+ guint row = GPOINTER_TO_INT (g_object_get_data (G_OBJECT (widget), "row"));
if (!psppire_data_store_filtered (store, row))
return FALSE;
{
PsppireDataStore *data_store = PSPPIRE_DATA_STORE (user_data);
- g_object_set_data (button, "row", GUINT_TO_POINTER (i));
- g_signal_connect_after (button, "draw", indicate_filtered_case, data_store);
+ g_object_set_data (G_OBJECT (button), "row", GUINT_TO_POINTER (i));
+ g_signal_connect_after (button, "draw", G_CALLBACK (indicate_filtered_case), data_store);
}
static void
static gint
__tree_model_get_n_columns (GtkTreeModel *tree_model)
{
- PsppireTextFile *tf = PSPPIRE_TEXT_FILE (tree_model);
return 2;
}
static void
on_entry_activate (GtkWidget *w)
{
- PsppireValueEntry *ve = PSPPIRE_VALUE_ENTRY (w);
g_signal_emit (w, signals [EDIT_DONE], 0);
}