[chronojump] On backup, icon of cancel/close changes



commit 905722bb2eed303d8e7699bcb3c1484b23aa23f5
Author: Xavier de Blas <xaviblas gmail com>
Date:   Wed May 11 14:08:09 2022 +0200

    On backup, icon of cancel/close changes

 src/gui/app1/session/backup.cs | 10 ++++++++++
 1 file changed, 10 insertions(+)
---
diff --git a/src/gui/app1/session/backup.cs b/src/gui/app1/session/backup.cs
index f5ba84301..e28421733 100644
--- a/src/gui/app1/session/backup.cs
+++ b/src/gui/app1/session/backup.cs
@@ -64,6 +64,8 @@ public partial class ChronoJumpWindow
                app1s_button_backup_start.Sensitive = false;
                app1s_button_delete_old_incomplete.Visible = false;
                app1s_button_backup_cancel_close.Sensitive = true;
+               image_app1s_button_backup_cancel_close.Pixbuf =
+                               new Gdk.Pixbuf (null, Util.GetImagePath(false) + "image_cancel.png");
                app1s_label_backup_cancel_close.Text = Catalog.GetString("Cancel");
 
                app1s_notebook.CurrentPage = app1s_PAGE_BACKUP;
@@ -165,6 +167,8 @@ public partial class ChronoJumpWindow
                app1s_label_remind_feedback.Text = message;
 
                backup_cancel_close_show_more_notebook = false; //clicking on close should not show session 
more
+               image_app1s_button_backup_cancel_close.Pixbuf =
+                               new Gdk.Pixbuf (null, Util.GetImagePath(false) + "image_close.png");
                app1s_label_backup_cancel_close.Text = Catalog.GetString("Close");
                app1s_button_backup_cancel_close.Visible = true;
        }
@@ -359,6 +363,8 @@ public partial class ChronoJumpWindow
                        app1s_button_backup_cancel_close.Sensitive = false; //or make cancel sensitive while 
process?
                } else {
                        app1s_button_backup_cancel_close.Sensitive = true;
+                       image_app1s_button_backup_cancel_close.Pixbuf =
+                               new Gdk.Pixbuf (null, Util.GetImagePath(false) + "image_close.png");
                        app1s_label_backup_cancel_close.Text = Catalog.GetString("Close");
                }
        }
@@ -394,6 +400,8 @@ public partial class ChronoJumpWindow
        private void on_app1s_button_delete_old_incomplete_clicked (object o, EventArgs args)
        {
                label_backup_why.Visible = false; //do not show again label_backup_why
+               image_app1s_button_backup_cancel_close.Pixbuf =
+                               new Gdk.Pixbuf (null, Util.GetImagePath(false) + "image_cancel.png");
                app1s_label_backup_cancel_close.Text = Catalog.GetString("Cancel");
 
                notebook_session_backup.Page = Convert.ToInt32(notebook_session_backup_pages.DELETE_OLD);
@@ -404,6 +412,8 @@ public partial class ChronoJumpWindow
 
                app1s_button_old_backups_delete_do.Sensitive = false;
                app1s_label_old_backups_delete_done.Visible = true;
+               image_app1s_button_backup_cancel_close.Pixbuf =
+                               new Gdk.Pixbuf (null, Util.GetImagePath(false) + "image_close.png");
                app1s_label_backup_cancel_close.Text = Catalog.GetString("Close");
        }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]