Fix compiler warnings
authorJohn Darrington <john@darrington.wattle.id.au>
Sun, 8 Jul 2012 10:39:12 +0000 (12:39 +0200)
committerJohn Darrington <john@darrington.wattle.id.au>
Sun, 8 Jul 2012 10:39:12 +0000 (12:39 +0200)
src/ui/gui/pspp-sheet-view.c
src/ui/gui/psppire-data-editor.c

index 38eeb5d3e4cb63627d87906ff87b2892776103ec..c569d20403c201d967cbe7832349f71452141901 100644 (file)
@@ -1266,7 +1266,6 @@ static void
 pspp_sheet_view_finalize (GObject *object)
 {
   PsppSheetView *tree_view = PSPP_SHEET_VIEW (object);
-  GList *list;
 
   pspp_sheet_view_stop_editing (tree_view, TRUE);
 
index c445f7074899044fad14ef1b7a401d60dee5ca95..26c375640580d527a0e435291f5a1b345c9b45f5 100644 (file)
@@ -822,7 +822,7 @@ psppire_data_editor_split_window (PsppireDataEditor *de, gboolean split)
   /* FIXME:  old_vbox_widget needs to be unreffed in dispose.
        (currently it seems to provoke an error if I do that.  
        I don't know why. */
-  gtk_container_remove (de->vbox, de->datasheet_vbox_widget);
+  gtk_container_remove (GTK_CONTAINER (de->vbox), de->datasheet_vbox_widget);
 
   if (split)
     de->datasheet_vbox_widget = make_split_datasheet (de, grid_lines);