insert variables in var view (#55357)
[pspp] / src / ui / gui / psppire-dict.c
index 84a89527e807dced67884c924745b9c9e10ddb60..7ec2f9754d877b862175b51fd036e8d9e9d990d6 100644 (file)
@@ -107,14 +107,14 @@ gi (GListModel *list, guint id)
        PangoContext *context = gtk_widget_create_pango_context (button);
        PangoLayout *layout = pango_layout_new (context);
        PangoRectangle rect;
-      
+
        pango_layout_set_text (layout, "M", 1);
-      
+
        pango_layout_get_extents (layout, NULL, &rect);
-      
+
        g_object_unref (G_OBJECT (layout));
        g_object_unref (G_OBJECT (context));
-      
+
        gtk_widget_set_size_request (button,
                                     (0.25 + var_get_display_width (v))
                                     * rect.width / PANGO_SCALE,
@@ -379,7 +379,7 @@ psppire_dict_new_from_dict (struct dictionary *d)
 void
 psppire_dict_replace_dictionary (PsppireDict *dict, struct dictionary *d)
 {
-  struct variable *var =  dict_get_weight (d);
+  const struct variable *var =  dict_get_weight (d);
 
   struct dictionary *old_dict = dict->dict;