summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sfx2/inc/templatedlg.hxx4
-rw-r--r--sfx2/source/doc/templatedlg.cxx4
-rw-r--r--sfx2/uiconfig/ui/templatedlg.ui3
3 files changed, 8 insertions, 3 deletions
diff --git a/sfx2/inc/templatedlg.hxx b/sfx2/inc/templatedlg.hxx
index 58d18cf74e21..6731b71d3828 100644
--- a/sfx2/inc/templatedlg.hxx
+++ b/sfx2/inc/templatedlg.hxx
@@ -39,13 +39,13 @@ namespace com {
} } }
}
-class SfxTemplateManagerDlg : public ModelessDialog
+class SfxTemplateManagerDlg : public ModalDialog
{
typedef bool (*selection_cmp_fn)(const ThumbnailViewItem*,const ThumbnailViewItem*);
public:
- SfxTemplateManagerDlg (Window *parent = DIALOG_NO_PARENT);
+ SfxTemplateManagerDlg(Window *parent = NULL);
virtual ~SfxTemplateManagerDlg ();
diff --git a/sfx2/source/doc/templatedlg.cxx b/sfx2/source/doc/templatedlg.cxx
index 2f917961b1f5..94457a809c4b 100644
--- a/sfx2/source/doc/templatedlg.cxx
+++ b/sfx2/source/doc/templatedlg.cxx
@@ -175,7 +175,7 @@ static bool cmpSelectionItems (const ThumbnailViewItem *pItem1, const ThumbnailV
}
SfxTemplateManagerDlg::SfxTemplateManagerDlg(Window *parent)
- : ModelessDialog(parent, "TemplateDialog", "sfx/ui/templatedlg.ui"),
+ : ModalDialog(parent, "TemplateDialog", "sfx/ui/templatedlg.ui"),
maSelTemplates(cmpSelectionItems),
maSelFolders(cmpSelectionItems),
mbIsSaveMode(false),
@@ -183,6 +183,8 @@ SfxTemplateManagerDlg::SfxTemplateManagerDlg(Window *parent)
mbIsSynced(false),
maRepositories()
{
+ fprintf(stderr, "SfxTemplateManagerDlg::SfxTemplateManagerDlg\n");
+
get(mpTabControl, "tab_control");
get(mpSearchEdit, "search_edit");
get(mpViewBar, "action_view");
diff --git a/sfx2/uiconfig/ui/templatedlg.ui b/sfx2/uiconfig/ui/templatedlg.ui
index b6ecee8cc42d..f6bcdff60393 100644
--- a/sfx2/uiconfig/ui/templatedlg.ui
+++ b/sfx2/uiconfig/ui/templatedlg.ui
@@ -7,6 +7,7 @@
<property name="width_request">800</property>
<property name="height_request">560</property>
<property name="can_focus">False</property>
+ <property name="modal">True</property>
<child>
<object class="GtkBox" id="box1">
<property name="visible">True</property>
@@ -326,6 +327,7 @@
<object class="sfxlo-TemplateSearchView" id="search_view">
<property name="can_focus">True</property>
<property name="no_show_all">True</property>
+ <property name="margin">0</property>
<property name="hexpand">True</property>
<property name="vexpand">True</property>
</object>
@@ -339,6 +341,7 @@
<object class="sfxlo-TemplateRemoteView" id="remote_view">
<property name="can_focus">True</property>
<property name="no_show_all">True</property>
+ <property name="margin">0</property>
<property name="hexpand">True</property>
<property name="vexpand">True</property>
</object>