projects
/
pspp
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Text Importer: Added filter to the file chooser.
[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 57db586511f27992fc7b569da1564f0c6c479434..1b85a53665e7817abfd169d61be3a84ee677b735 100644
(file)
--- a/
src/ui/gui/goto-case-dialog.c
+++ b/
src/ui/gui/goto-case-dialog.c
@@
-1,5
+1,5
@@
/* PSPPIRE - a graphical user interface for PSPP.
/* PSPPIRE - a graphical user interface for PSPP.
- Copyright (C) 2007 Free Software Foundation
+ Copyright (C) 2007
, 2012
Free Software Foundation
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
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
@@
-17,14
+17,14
@@
#include <config.h>
#include "goto-case-dialog.h"
#include <config.h>
#include "goto-case-dialog.h"
-#include "
hel
per.h"
+#include "
builder-wrap
per.h"
#include "psppire-dialog.h"
#include "psppire-data-window.h"
#include "psppire-data-store.h"
static void
#include "psppire-dialog.h"
#include "psppire-data-window.h"
#include "psppire-data-store.h"
static void
-refresh (const PsppireDataWindow *de, G
ladeXML
*xml)
+refresh (const PsppireDataWindow *de, G
tkBuilder
*xml)
{
PsppireDataStore *ds = NULL;
casenumber case_count ;
{
PsppireDataStore *ds = NULL;
casenumber case_count ;
@@
-35,20
+35,17
@@
refresh (const PsppireDataWindow *de, GladeXML *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;
- GladeXML *xml = XML_NEW ("psppire.glade");
- PsppireDataWindow *de = PSPPIRE_DATA_WINDOW (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), GTK_WINDOW (de));
refresh (de, xml);
gtk_window_set_transient_for (GTK_WINDOW (dialog), GTK_WINDOW (de));
refresh (de, xml);