summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 77fd5ff)
raw | patch | inline | side by side (parent: 77fd5ff)
author | buliabyak <buliabyak@users.sourceforge.net> | |
Sat, 19 Jul 2008 00:20:04 +0000 (00:20 +0000) | ||
committer | buliabyak <buliabyak@users.sourceforge.net> | |
Sat, 19 Jul 2008 00:20:04 +0000 (00:20 +0000) |
src/interface.cpp | patch | blob | history |
diff --git a/src/interface.cpp b/src/interface.cpp
index 1ad90c58c5746f1dfde172fc477b812407357fd3..dc583a645fe373e2c7fea4777b0372fdea776cc5 100644 (file)
--- a/src/interface.cpp
+++ b/src/interface.cpp
Gtk::Window *win = Inkscape::UI::window_new("", TRUE);
+ gtk_container_add(GTK_CONTAINER(win->gobj()), GTK_WIDGET(vw));
+ gtk_widget_show(GTK_WIDGET(vw));
+
if (editable) {
g_object_set_data(G_OBJECT(vw), "window", win);
win->signal_delete_event().connect(sigc::mem_fun(*(SPDesktop*)vw->view, &SPDesktop::onDeleteUI));
win->signal_window_state_event().connect(sigc::mem_fun(*desktop, &SPDesktop::onWindowStateEvent));
win->signal_focus_in_event().connect(sigc::mem_fun(*desktop_widget, &SPDesktopWidget::onFocusInEvent));
-
+
gint prefs_geometry =
(2==prefs_get_int_attribute("options.savewindowgeometry", "value", 0));
if (prefs_geometry) {
gtk_window_set_policy(GTK_WINDOW(win->gobj()), TRUE, TRUE, TRUE);
}
- gtk_container_add(GTK_CONTAINER(win->gobj()), GTK_WIDGET(vw));
- gtk_widget_show(GTK_WIDGET(vw));
-
if ( completeDropTargets == 0 || completeDropTargetsCount == 0 )
{
std::vector<gchar*> types;