projects
/
pspp
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
table-casereader: Put space between columns.
[pspp]
/
src
/
ui
/
gui
/
goto-case-dialog.c
diff --git
a/src/ui/gui/goto-case-dialog.c
b/src/ui/gui/goto-case-dialog.c
index a22b5cb0ebe4077f202de1a35931950b13822118..832e1f2dbdfff5376f432deed5a1d03202bfeee9 100644
(file)
--- a/
src/ui/gui/goto-case-dialog.c
+++ b/
src/ui/gui/goto-case-dialog.c
@@
-19,12
+19,12
@@
#include "goto-case-dialog.h"
#include "helper.h"
#include "psppire-dialog.h"
#include "goto-case-dialog.h"
#include "helper.h"
#include "psppire-dialog.h"
-#include "
data-editor
.h"
+#include "
psppire-data-window
.h"
#include "psppire-data-store.h"
static void
#include "psppire-data-store.h"
static void
-refresh (const
struct data_editor
*de, GtkBuilder *xml)
+refresh (const
PsppireDataWindow
*de, GtkBuilder *xml)
{
PsppireDataStore *ds = NULL;
casenumber case_count ;
{
PsppireDataStore *ds = NULL;
casenumber case_count ;
@@
-35,21
+35,18
@@
refresh (const struct data_editor *de, GtkBuilder *xml)
case_count = psppire_data_store_get_case_count (ds);
case_count = psppire_data_store_get_case_count (ds);
- gtk_spin_button_set_range (GTK_SPIN_BUTTON (case_num_entry),
- 1, case_count);
+ gtk_spin_button_set_range (GTK_SPIN_BUTTON (case_num_entry), 1, case_count);
}
void
}
void
-goto_case_dialog (
GObject *o, gpointer data
)
+goto_case_dialog (
PsppireDataWindow *de
)
{
gint response;
{
gint response;
- GtkBuilder *xml = builder_new ("psppire.ui");
- struct data_editor *de = data;
+ GtkBuilder *xml = builder_new ("goto-case.ui");
GtkWidget *dialog = get_widget_assert (xml, "goto-case-dialog");
GtkWidget *dialog = get_widget_assert (xml, "goto-case-dialog");
-
- gtk_window_set_transient_for (GTK_WINDOW (dialog), de->parent.window);
+ gtk_window_set_transient_for (GTK_WINDOW (dialog), GTK_WINDOW (de));
refresh (de, xml);
refresh (de, xml);