#include <config.h>
#include <gtk/gtk.h>
-#include <glade/glade.h>
-#include <gtksheet/gtksheet.h>
#include "dict-display.h"
#include "var-display.h"
#include <data/variable.h>
+#include <data/format.h>
#include <data/value-labels.h>
#include "data-editor.h"
#include "psppire-dialog.h"
#include "psppire-var-store.h"
#include "helper.h"
-#include <gtksheet/gtksheet.h>
#include <language/syntax-string-source.h>
#include "syntax-editor.h"
GtkTextBuffer *textbuffer = gtk_text_view_get_buffer (GTK_TEXT_VIEW(data));
const struct variable *var = get_selected_variable (treeview);
+ if ( var == NULL)
+ return;
gstring = g_string_sized_new (200);
text = name_to_string (var, NULL);
gint response ;
- GladeXML *xml = XML_NEW ("psppire.glade");
+ GtkBuilder *xml = builder_new ("psppire.ui");
GtkWidget *dialog = get_widget_assert (xml, "variable-info-dialog");
GtkWidget *treeview = get_widget_assert (xml, "treeview2");