summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 25e1114)
raw | patch | inline | side by side (parent: 25e1114)
author | buliabyak <buliabyak@users.sourceforge.net> | |
Fri, 18 Aug 2006 05:52:32 +0000 (05:52 +0000) | ||
committer | buliabyak <buliabyak@users.sourceforge.net> | |
Fri, 18 Aug 2006 05:52:32 +0000 (05:52 +0000) |
src/interface.cpp | patch | blob | history |
diff --git a/src/interface.cpp b/src/interface.cpp
index 348e71821acf13b4c6ee2fbf80526a000b460ff7..b31853cf3246c13877d9db892960282823deb5d1 100644 (file)
--- a/src/interface.cpp
+++ b/src/interface.cpp
void
sp_create_window(SPViewWidget *vw, gboolean editable)
{
- GtkWidget *w, *hb;
-
g_return_if_fail(vw != NULL);
g_return_if_fail(SP_IS_VIEW_WIDGET(vw));
- w = sp_window_new("", TRUE);
+ GtkWidget *w = sp_window_new("", TRUE);
if (editable) {
g_object_set_data(G_OBJECT(vw), "window", w);
static_cast<GtkWindow*>((void*)w);
}
- hb = gtk_hbox_new(FALSE, 0);
- gtk_widget_show(hb);
- gtk_container_add(GTK_CONTAINER(w), hb);
- g_object_set_data(G_OBJECT(w), "hbox", hb);
-
- /* fixme: */
if (editable) {
+ /* fixme: */
gtk_window_set_default_size((GtkWindow *) w, 640, 480);
g_object_set_data(G_OBJECT(w), "desktop", SP_DESKTOP_WIDGET(vw)->desktop);
g_object_set_data(G_OBJECT(w), "desktopwidget", vw);
gtk_window_set_policy(GTK_WINDOW(w), TRUE, TRUE, TRUE);
}
- gtk_box_pack_end(GTK_BOX(hb), GTK_WIDGET(vw), TRUE, TRUE, 0);
+ gtk_container_add(GTK_CONTAINER(w), GTK_WIDGET(vw));
gtk_widget_show(GTK_WIDGET(vw));
-
if ( completeDropTargets == 0 || completeDropTargetsCount == 0 )
{
std::vector<gchar*> types;