[chronojump] Jumps table zoom in icon, now same than force sensor and changes also to zoom out icon
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] Jumps table zoom in icon, now same than force sensor and changes also to zoom out icon
- Date: Tue, 3 Aug 2021 21:28:20 +0000 (UTC)
commit d38a72d0c1c09f6520c6287cfcaf257d7e9e942c
Author: Xavier de Blas <xaviblas gmail com>
Date: Tue Aug 3 23:27:26 2021 +0200
Jumps table zoom in icon, now same than force sensor and changes also to zoom out icon
src/gui/app1/chronojump.cs | 7 ++++++-
src/gui/app1/icons.cs | 6 ++++--
2 files changed, 10 insertions(+), 3 deletions(-)
---
diff --git a/src/gui/app1/chronojump.cs b/src/gui/app1/chronojump.cs
index 768265f4f..24f01db5a 100644
--- a/src/gui/app1/chronojump.cs
+++ b/src/gui/app1/chronojump.cs
@@ -1529,9 +1529,14 @@ public partial class ChronoJumpWindow
private void on_button_jumps_zoom_clicked (object o, EventArgs args) {
myTreeViewJumps.ExpandState = myTreeViewJumps.ZoomChange(myTreeViewJumps.ExpandState);
if(myTreeViewJumps.ExpandState == TreeViewEvent.ExpandStates.MINIMIZED)
+ {
treeview_jumps.CollapseAll();
- else
+ image_jumps_zoom.Pixbuf = new Pixbuf(null, Util.GetImagePath(false) + "zoom_in.png");
+ }
+ else {
treeview_jumps.ExpandAll();
+ image_jumps_zoom.Pixbuf = new Pixbuf(null, Util.GetImagePath(false) + "zoom_out.png");
+ }
}
private void treeview_jumps_storeReset() {
diff --git a/src/gui/app1/icons.cs b/src/gui/app1/icons.cs
index 183732112..eaa7c9b26 100644
--- a/src/gui/app1/icons.cs
+++ b/src/gui/app1/icons.cs
@@ -780,7 +780,6 @@ public partial class ChronoJumpWindow
//and is not nice that the other are different for an user theme change
pixbuf = new Pixbuf (null, Util.GetImagePath(false) + Constants.FileNameZoomFitIcon);
- image_jumps_zoom.Pixbuf = pixbuf;
image_jumps_rj_zoom.Pixbuf = pixbuf;
image_runs_zoom.Pixbuf = pixbuf;
image_runs_interval_zoom.Pixbuf = pixbuf;
@@ -1024,7 +1023,10 @@ public partial class ChronoJumpWindow
image_force_sensor_ai_chained_link.Pixbuf = new Pixbuf(null, Util.GetImagePath(false) +
"link.png");
image_force_sensor_ai_chained_link_off.Pixbuf = new Pixbuf(null, Util.GetImagePath(false) +
"link_off.png");
- image_force_sensor_ai_zoom.Pixbuf = new Pixbuf(null, Util.GetImagePath(false) +
"zoom_in.png");
+
+ pixbuf = new Pixbuf(null, Util.GetImagePath(false) + "zoom_in.png");
+ image_force_sensor_ai_zoom.Pixbuf = pixbuf;
+ image_jumps_zoom.Pixbuf = pixbuf;
image_force_sensor_ai_zoom_out.Pixbuf = new Pixbuf(null, Util.GetImagePath(false) +
"zoom_out.png");
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]