Code

Avoid a gtk g_critical message when building Document Properties dialog.
authorpjrm <pjrm@users.sourceforge.net>
Thu, 17 May 2007 22:51:42 +0000 (22:51 +0000)
committerpjrm <pjrm@users.sourceforge.net>
Thu, 17 May 2007 22:51:42 +0000 (22:51 +0000)
src/ui/dialog/document-properties.cpp

index 4bf4db48aaa910406828c1ba750099b881015062..9bf2d761d2c9eb9278079365c17c7aa8012fe010 100644 (file)
@@ -370,11 +370,11 @@ DocumentProperties::build_gridspage()
         label_crea, 0,
         label_crea_type, (Gtk::Widget*) &_grids_combo_gridtype,
         (Gtk::Widget*) &_grids_button_new,         (Gtk::Widget*) &_grids_button_remove, 
-        label_def,         0,
-        (Gtk::Widget*) &_grids_notebook, 0
+        label_def,         0
     };
-
     attach_all(_page_grids.table(), widget_array, G_N_ELEMENTS(widget_array));
+    _page_grids.table().attach(_grids_notebook, 0, 3, 4, 5,
+                              Gtk::FILL|Gtk::EXPAND, (Gtk::AttachOptions)0,0,0);
 }