X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fui%2Fgui%2Fgoto-case-dialog.c;h=1b85a53665e7817abfd169d61be3a84ee677b735;hb=220a0c409390225346a8072917073e25a971e624;hp=9a523943b1c5686e639d4df34b56530d4f1b55a5;hpb=14aac9fe7a7efbb6c9bded2ed5969a643cb76645;p=pspp diff --git a/src/ui/gui/goto-case-dialog.c b/src/ui/gui/goto-case-dialog.c index 9a523943b1..1b85a53665 100644 --- 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. - 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 @@ -17,7 +17,7 @@ #include #include "goto-case-dialog.h" -#include "helper.h" +#include "builder-wrapper.h" #include "psppire-dialog.h" #include "psppire-data-window.h" #include "psppire-data-store.h" @@ -35,20 +35,17 @@ refresh (const PsppireDataWindow *de, GtkBuilder *xml) 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 -goto_case_dialog (GObject *o, gpointer data) +goto_case_dialog (PsppireDataWindow *de) { gint response; - GtkBuilder *xml = builder_new ("psppire.ui"); - PsppireDataWindow *de = PSPPIRE_DATA_WINDOW (data); + GtkBuilder *xml = builder_new ("goto-case.ui"); GtkWidget *dialog = get_widget_assert (xml, "goto-case-dialog"); - gtk_window_set_transient_for (GTK_WINDOW (dialog), GTK_WINDOW (de)); refresh (de, xml);