/* PSPPIRE - a graphical user interface for PSPP.
- Copyright (C) 2011 Free Software Foundation
+ Copyright (C) 2011, 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
#include "psppire-var-view.h"
#include "executor.h"
+#include "builder-wrapper.h"
#include "helper.h"
#include <gtk/gtk.h>
static char * generate_syntax (const struct runs *rd);
-/* Makes widget W's sensitivity follow the active state of TOGGLE */
-static void
-sensitive_if_active (GtkToggleButton *toggle, GtkWidget *w)
-{
- gboolean active = gtk_toggle_button_get_active (toggle);
-
- gtk_widget_set_sensitive (w, active);
-}
-
static void
refresh (struct runs *fd)
{
NULL);
g_signal_connect (fd.cb[CB_CUSTOM], "toggled",
- G_CALLBACK (sensitive_if_active), fd.entry);
+ G_CALLBACK (set_sensitivity_from_toggle), fd.entry);
psppire_dialog_set_valid_predicate (PSPPIRE_DIALOG (dialog),
dialog_state_valid, &fd);
if ( gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (rd->cb[CB_CUSTOM])))
{
- char *text = gtk_entry_get_text (GTK_ENTRY (rd->entry));
+ const char *text = gtk_entry_get_text (GTK_ENTRY (rd->entry));
append_fragment (string, text, PSPPIRE_VAR_VIEW (rd->variables));
}