From 2f5717ac9777654fdfd89ef7de63643574d9873d Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 30 May 2009 18:23:22 +0000 Subject: Better load plugin window geometry hinting. Consistent titles. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@2053 a436a847-0d15-0410-975c-d299462d15a1 --- src/gui/WindowFactory.cpp | 5 +++++ src/gui/ingen_gui.glade | 20 +++++++++----------- 2 files changed, 14 insertions(+), 11 deletions(-) diff --git a/src/gui/WindowFactory.cpp b/src/gui/WindowFactory.cpp index f2bda8e7..6c4cba1e 100644 --- a/src/gui/WindowFactory.cpp +++ b/src/gui/WindowFactory.cpp @@ -264,6 +264,11 @@ WindowFactory::present_load_plugin(SharedPtr patch, GraphObject::Pro _load_plugin_win->set_transient_for(*w->second); _load_plugin_win->set_modal(false); + _load_plugin_win->set_type_hint(Gdk::WINDOW_TYPE_HINT_DIALOG); + int width, height; + w->second->get_size(width, height); + _load_plugin_win->set_default_size(width - width / 8, height / 2); + _load_plugin_win->set_title(string("Load Plugin - ") + patch->path().str() + " - Ingen"); _load_plugin_win->present(patch, data); } diff --git a/src/gui/ingen_gui.glade b/src/gui/ingen_gui.glade index 6f47feee..d1054c7e 100644 --- a/src/gui/ingen_gui.glade +++ b/src/gui/ingen_gui.glade @@ -4,8 +4,6 @@ Ingen - 640 - 480 True @@ -465,10 +463,10 @@ 8 - Load Plugin + Load Plugin - Ingen center-on-parent - 640 - 480 + True + dialog True @@ -662,7 +660,7 @@ 320 8 - Create Subpatch + Create Subpatch - Ingen False center-on-parent dialog @@ -825,7 +823,7 @@ - Load Subpatch + Load Subpatch - Ingen center-on-parent dialog @@ -1073,7 +1071,7 @@ - Load Patch + Load Patch - Ingen center-on-parent dialog @@ -1228,7 +1226,7 @@ - window1 + Warehouse - Ingen True @@ -2873,7 +2871,7 @@ Contributors: 8 - Load Remote Patch + Download Patch - Ingen dialog @@ -2987,7 +2985,7 @@ Contributors: 8 - Upload Patch + Upload Patch - Ingen False dialog -- cgit v1.2.1