summaryrefslogtreecommitdiff
path: root/svtools
diff options
context:
space:
mode:
authorirem <iremsendur1@gmail.com>2016-05-01 15:28:53 +0300
committerCaolán McNamara <caolanm@redhat.com>2016-05-03 09:22:16 +0000
commit2fce97c51ceb15c7722ed828b2cc0ea4b21c8c95 (patch)
treef0dd9efa9ff53e1122fed864d832df50e820d8db /svtools
parenta05ab9ef5e1804faed90f3df2f7fb8cb49065590 (diff)
tdf#99211 Use the restart dialog for notifications about restart
Change-Id: I2093e99d7b377285f6b3248a90072f0dea12f732 Reviewed-on: https://gerrit.libreoffice.org/24556 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'svtools')
-rw-r--r--svtools/source/dialogs/restartdialog.cxx3
-rw-r--r--svtools/uiconfig/ui/restartdialog.ui15
2 files changed, 18 insertions, 0 deletions
diff --git a/svtools/source/dialogs/restartdialog.cxx b/svtools/source/dialogs/restartdialog.cxx
index 3b9df0ff3ee7..99c0fd865af8 100644
--- a/svtools/source/dialogs/restartdialog.cxx
+++ b/svtools/source/dialogs/restartdialog.cxx
@@ -46,6 +46,9 @@ public:
case svtools::RESTART_REASON_LANGUAGE_CHANGE:
get(reason_, "reason_language_change");
break;
+ case svtools::RESTART_REASON_ADDING_PATH:
+ get(reason_, "reason_adding_path");
+ break;
default:
assert(false); // this cannot happen
}
diff --git a/svtools/uiconfig/ui/restartdialog.ui b/svtools/uiconfig/ui/restartdialog.ui
index 2dc71d79eadf..0d94b81cfa59 100644
--- a/svtools/uiconfig/ui/restartdialog.ui
+++ b/svtools/uiconfig/ui/restartdialog.ui
@@ -136,6 +136,21 @@
</packing>
</child>
<child>
+ <object class="GtkLabel" id="reason_adding_path">
+ <property name="can_focus">False</property>
+ <property name="no_show_all">True</property>
+ <property name="xalign">0</property>
+ <property name="label" translatable="yes">For the added path to take effect, %PRODUCTNAME must be restarted.</property>
+ <property name="wrap">True</property>
+ <property name="max_width_chars">50</property>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">True</property>
+ <property name="position">3</property>
+ </packing>
+ </child>
+ <child>
<object class="GtkLabel" id="label">
<property name="visible">True</property>
<property name="can_focus">False</property>