Update message

This commit is contained in:
Tony George 2013-11-08 19:54:39 +05:30
parent c0087dca19
commit facc7879d9
4 changed files with 15 additions and 10 deletions

6
debian/changelog vendored
View File

@ -1,7 +1,7 @@
timeshift (1.2.2) quantal; urgency=medium
* Fixed: Browse button does not work on Elementary OS
* Fixed: Application exists with an 'already mounted' error
* Exclude Konqueror web browser cache
* Exclude /cdrom
-- Tony George <tony.george.kol@gmail.com> Sun, 03 Oct 2013 10:00:00 +0530
-- Tony George <tony.george.kol@gmail.com> Fri, 08 Nov 2013 10:00:00 +0530

View File

@ -2076,11 +2076,6 @@ public class Main : GLib.Object{
public bool mount_device(PartitionInfo dev, string mount_point, string mount_options){
bool status = mount(dev.device, mount_point, mount_options);
if (status == false){
if (app_mode == ""){
gtk_messagebox_show(_("Error"), _("Failed to mount device") + ": %s".printf(dev.device));
}
}
return status;
}

View File

@ -771,6 +771,16 @@ class MainWindow : Gtk.Window{
bool status = App.mount_backup_device();
if (status == false){
string msg = _("Failed to mount device") + ": %s".printf(App.snapshot_device.device);
var dlg = new Gtk.MessageDialog.with_markup(null, Gtk.DialogFlags.MODAL, Gtk.MessageType.ERROR, Gtk.ButtonsType.OK, msg);
dlg.set_title(_("Error"));
dlg.set_default_size (200, -1);
dlg.set_transient_for(this);
dlg.set_modal(true);
dlg.run();
dlg.destroy();
cmb_backup_device.active = cmb_backup_device_index_default;
}
@ -1248,7 +1258,7 @@ class MainWindow : Gtk.Window{
txt = _("Please select the backup device");
}
else{
txt = _("Backup device not available");
txt = _("Backup device is not mounted!");;
}
txt = "<span foreground=\"#8A0808\">" + txt + "</span>";
lbl_backup_device_warning.label = txt;

View File

@ -492,7 +492,7 @@ public class RestoreWindow : Gtk.Dialog{
refresh_tv_partitions();
refresh_cmb_boot_device();
refresh_tv_exclude();
//refresh_tv_exclude(); //called by btn_reset_exclude_list_clicked()
//refresh_tv_apps();
}