/* Switch between the VAR SHEET and the DATA SHEET */
static gboolean click2column (GtkWidget *w, gint col, gpointer data);
-
static gboolean click2row (GtkWidget *w, gint row, gpointer data);
-static void select_sheet (struct data_editor *de, guint page_num);
-
-
/* Callback for when the dictionary changes properties*/
static void on_weight_change (GObject *, gint, gpointer);
static void on_filter_change (GObject *, gint, gpointer);
G_CALLBACK (data_var_select), de);
-
g_signal_connect (get_widget_assert (de->xml, "view_statusbar"),
"activate",
G_CALLBACK (status_bar_activate), de);
g_signal_connect (G_OBJECT (data_sheet), "button-event-row",
G_CALLBACK (popup_cases_menu), de);
-
- select_sheet (de, PAGE_DATA_SHEET);
+ data_editor_select_sheet (de, PAGE_DATA_SHEET);
return de;
}
static void
-select_sheet (struct data_editor *de, guint page_num)
+data_var_select (GtkNotebook *notebook,
+ GtkNotebookPage *page,
+ guint page_num,
+ gpointer user_data)
{
+ struct data_editor *de = user_data;
+
GtkWidget *view_data = get_widget_assert (de->xml, "view_data");
GtkWidget *view_variables = get_widget_assert (de->xml, "view_variables");
}
-static void
-data_var_select (GtkNotebook *notebook,
- GtkNotebookPage *page,
- guint page_num,
- gpointer user_data)
-{
- struct data_editor *de = user_data;
-
- select_sheet (de, page_num);
-}
-
-
-
-
void
data_editor_select_sheet (struct data_editor *de, gint page)
{
}
+
static void
status_bar_activate (GtkCheckMenuItem *menuitem, gpointer data)
{
event->button, event->time);
}
}
-
-