</object>
<!-- interface-requires gtk+ 2.16 -->
<!-- interface-naming-policy toplevel-contextual -->
- <object class="GtkWindow" id="output-viewer-window">
- <property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
- <property name="default_width">600</property>
- <property name="default_height">400</property>
- <child>
<object class="GtkBox" id="box1">
<property name="visible">True</property>
<property name="orientation">GTK_ORIENTATION_VERTICAL</property>
</packing>
</child>
</object>
- </child>
- </object>
</interface>
static void
psppire_output_window_init (PsppireOutputWindow *window)
{
- GtkBuilder *xml;
+ GtkBuilder *xml = builder_new ("output-window.ui");
- xml = builder_new ("output-window.ui");
-
- gtk_widget_reparent (get_widget_assert (xml, "box1"), GTK_WIDGET (window));
+ GtkWidget *box = get_widget_assert (xml, "box1");
+ gtk_container_add (GTK_CONTAINER (window), box);
window->dispose_has_run = FALSE;