[shotwell/wip/dedeprecate: 17/64] De-deprecate StraightenTool
- From: Jens Georg <jensgeorg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [shotwell/wip/dedeprecate: 17/64] De-deprecate StraightenTool
- Date: Thu, 10 Nov 2016 22:46:01 +0000 (UTC)
commit 8ce143f5cd256e89eb23e2e89a0d41dc5c261239
Author: Jens Georg <mail jensge org>
Date: Sat Oct 1 17:27:34 2016 +0200
De-deprecate StraightenTool
Signed-off-by: Jens Georg <mail jensge org>
src/editing_tools/StraightenTool.vala | 17 ++++++++++++++---
1 files changed, 14 insertions(+), 3 deletions(-)
---
diff --git a/src/editing_tools/StraightenTool.vala b/src/editing_tools/StraightenTool.vala
index f869739..7d19c98 100644
--- a/src/editing_tools/StraightenTool.vala
+++ b/src/editing_tools/StraightenTool.vala
@@ -114,8 +114,15 @@ public class StraightenTool : EditingTool {
angle_slider.set_value(0.0);
angle_slider.set_draw_value(false);
- description_label.set_padding(CONTROL_SPACING, 0);
- angle_label.set_padding(0, 0);
+ description_label.margin_start = CONTROL_SPACING;
+ description_label.margin_end = CONTROL_SPACING;
+ description_label.margin_top = 0;
+ description_label.margin_bottom = 0;
+
+ angle_label.margin_start = 0;
+ angle_label.margin_end = 0;
+ angle_label.margin_top = 0;
+ angle_label.margin_bottom = 0;
angle_label.set_size_request(MIN_LABEL_SIZE,-1);
Gtk.Box slider_layout = new Gtk.Box(Gtk.Orientation.HORIZONTAL, CONTROL_SPACING);
@@ -355,7 +362,11 @@ public class StraightenTool : EditingTool {
prepare_image();
// set crosshair cursor
- canvas.get_drawing_window().set_cursor(new Gdk.Cursor(Gdk.CursorType.CROSSHAIR));
+ var drawing_window = canvas.get_drawing_window ();
+ var display = window.get_display ();
+ var cursor = new Gdk.Cursor.for_display (display,
+ Gdk.CursorType.CROSSHAIR);
+ drawing_window.set_cursor (cursor);
window = new StraightenToolWindow(canvas.get_container());
bind_window_handlers();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]