From 3a89a7b675adb771e0ce7e960a9afff0de16c6c5 Mon Sep 17 00:00:00 2001 From: Stefano Karapetsas Date: Sun, 21 Apr 2013 22:18:48 +0200 Subject: mate-conf-import: Add support for more applets --- mate-conf/mate-conf-import | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'mate-conf') diff --git a/mate-conf/mate-conf-import b/mate-conf/mate-conf-import index da22754..15c519b 100755 --- a/mate-conf/mate-conf-import +++ b/mate-conf/mate-conf-import @@ -27,7 +27,7 @@ import sys # to read MateConf files import xml.etree.ElementTree as ElementTree - +# gobject introspection import gi # to show dialogs gi.require_version("Gtk", "2.0") @@ -82,7 +82,8 @@ dialog = Gtk.MessageDialog (None, Gtk.DialogFlags.MODAL, Gtk.MessageType.QUESTION, Gtk.ButtonsType.YES_NO, - "Migrate settings from MATE 1.4?") + "Are you sure to migrate settings from MATE 1.4?\n" + \ + "This will delete permanently all your current 1.6 settings.") res = dialog.run() if res != Gtk.ResponseType.YES: dialog.destroy() @@ -343,6 +344,10 @@ if os.path.exists(mateconf_panel_file): applet_iid = "DictionaryAppletFactory::DictionaryApplet" elif applet_iid == "OAFIID:Invest_Applet": applet_iid = "InvestAppletFactory::InvestApplet" + elif applet_iid == "OAFIID:MATE_DictionaryApplet": + applet_iid = "DictionaryAppletFactory::DictionaryApplet" + elif applet_iid == "OAFIID:MATE_InhibitApplet": + applet_iid = "InhibitAppletFactory::InhibitApplet" elif applet_iid == "OAFIID:TimerApplet": # not yet ready in 1.6 :( applet_iid = "TimerAppletFactory::TimerApplet" -- cgit v1.2.1