summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/gui/WindowFactory.cpp5
-rw-r--r--src/gui/ingen_gui.glade20
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<PatchModel> 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 @@
<!-- interface-naming-policy toplevel-contextual -->
<widget class="GtkWindow" id="patch_win">
<property name="title" translatable="yes">Ingen</property>
- <property name="default_width">640</property>
- <property name="default_height">480</property>
<child>
<widget class="GtkVBox" id="patch_win_vbox">
<property name="visible">True</property>
@@ -465,10 +463,10 @@
</widget>
<widget class="GtkWindow" id="load_plugin_win">
<property name="border_width">8</property>
- <property name="title" translatable="yes">Load Plugin</property>
+ <property name="title" translatable="yes">Load Plugin - Ingen</property>
<property name="window_position">center-on-parent</property>
- <property name="default_width">640</property>
- <property name="default_height">480</property>
+ <property name="destroy_with_parent">True</property>
+ <property name="type_hint">dialog</property>
<child>
<widget class="GtkVBox" id="vbox9">
<property name="visible">True</property>
@@ -662,7 +660,7 @@
<widget class="GtkWindow" id="new_subpatch_win">
<property name="width_request">320</property>
<property name="border_width">8</property>
- <property name="title" translatable="yes">Create Subpatch</property>
+ <property name="title" translatable="yes">Create Subpatch - Ingen</property>
<property name="resizable">False</property>
<property name="window_position">center-on-parent</property>
<property name="type_hint">dialog</property>
@@ -825,7 +823,7 @@
</child>
</widget>
<widget class="GtkFileChooserDialog" id="load_subpatch_win">
- <property name="title" translatable="yes">Load Subpatch</property>
+ <property name="title" translatable="yes">Load Subpatch - Ingen</property>
<property name="window_position">center-on-parent</property>
<property name="type_hint">dialog</property>
<child internal-child="vbox">
@@ -1073,7 +1071,7 @@
</child>
</widget>
<widget class="GtkFileChooserDialog" id="load_patch_win">
- <property name="title" translatable="yes">Load Patch</property>
+ <property name="title" translatable="yes">Load Patch - Ingen</property>
<property name="window_position">center-on-parent</property>
<property name="type_hint">dialog</property>
<child internal-child="vbox">
@@ -1228,7 +1226,7 @@
</child>
</widget>
<widget class="GtkWindow" id="warehouse_win">
- <property name="title" translatable="yes">window1</property>
+ <property name="title" translatable="yes">Warehouse - Ingen</property>
<child>
<widget class="GtkTable" id="table8">
<property name="visible">True</property>
@@ -2873,7 +2871,7 @@ Contributors:
</widget>
<widget class="GtkDialog" id="load_remote_patch_win">
<property name="border_width">8</property>
- <property name="title" translatable="yes">Load Remote Patch</property>
+ <property name="title" translatable="yes">Download Patch - Ingen</property>
<property name="type_hint">dialog</property>
<child internal-child="vbox">
<widget class="GtkVBox" id="dialog-vbox5">
@@ -2987,7 +2985,7 @@ Contributors:
</widget>
<widget class="GtkDialog" id="upload_patch_win">
<property name="border_width">8</property>
- <property name="title" translatable="yes">Upload Patch</property>
+ <property name="title" translatable="yes">Upload Patch - Ingen</property>
<property name="resizable">False</property>
<property name="type_hint">dialog</property>
<child internal-child="vbox">