[shotwell] Remove non-functional slider
- From: Jens Georg <jensgeorg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [shotwell] Remove non-functional slider
- Date: Mon, 10 Apr 2017 18:11:15 +0000 (UTC)
commit 0eee31c74bbe387238c90a9168b4c6556418eed0
Author: Jens Georg <mail jensge org>
Date: Mon Apr 10 18:51:36 2017 +0200
Remove non-functional slider
Signed-off-by: Jens Georg <mail jensge org>
src/editing_tools/RGBHistogramManipulator.vala | 17 -----------------
1 files changed, 0 insertions(+), 17 deletions(-)
---
diff --git a/src/editing_tools/RGBHistogramManipulator.vala b/src/editing_tools/RGBHistogramManipulator.vala
index affa337..cce72ac 100644
--- a/src/editing_tools/RGBHistogramManipulator.vala
+++ b/src/editing_tools/RGBHistogramManipulator.vala
@@ -161,7 +161,6 @@ public class RGBHistogramManipulator : Gtk.DrawingArea {
draw_histogram_frame(ctx, area);
draw_histogram(ctx, area);
- draw_trough(ctx, area);
draw_nub(ctx, area, left_nub_position);
draw_nub(ctx, area, right_nub_position);
@@ -272,23 +271,7 @@ public class RGBHistogramManipulator : Gtk.DrawingArea {
Gdk.cairo_set_source_pixbuf(ctx, histogram_graphic, area.x + NUB_HALF_WIDTH, area.y + 2);
ctx.paint();
}
-
- private void draw_trough(Cairo.Context ctx, Gdk.Rectangle area) {
- int trough_x = area.x;
- int trough_y = area.y + (CONTROL_HEIGHT - TROUGH_HEIGHT - TROUGH_BOTTOM_OFFSET - 3);
-
- Gtk.StyleContext stylectx = dummy_slider.get_style_context();
- stylectx.save();
-
- stylectx.get_path().append_type(typeof(Gtk.Scale));
- stylectx.get_path().iter_add_class(0, "scale");
- stylectx.add_class(Gtk.STYLE_CLASS_TROUGH);
- stylectx.render_activity(ctx, trough_x, trough_y, TROUGH_WIDTH, TROUGH_HEIGHT);
-
- stylectx.restore();
- }
-
private void draw_nub(Cairo.Context ctx, Gdk.Rectangle area, int position) {
ctx.move_to(area.x + position, area.y + NUB_V_POSITION + NUB_SIZE);
ctx.line_to(area.x + position + NUB_HALF_WIDTH, area.y + NUB_V_POSITION);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]