[gimp] app: set the rulers as track widgets for each other



commit 1a9434cef1a9bd3d7e3c719f3f8a3fceab358fe7
Author: Michael Natterer <mitch gimp org>
Date:   Sat Apr 9 21:04:40 2011 +0200

    app: set the rulers as track widgets for each other
    
    so we don't end up with one ruler wrongly being stuck a few pixels off
    while we are hovering the other.

 app/display/gimpdisplayshell.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/app/display/gimpdisplayshell.c b/app/display/gimpdisplayshell.c
index a97629c..c234dfd 100644
--- a/app/display/gimpdisplayshell.c
+++ b/app/display/gimpdisplayshell.c
@@ -534,6 +534,13 @@ gimp_display_shell_constructed (GObject *object)
                     G_CALLBACK (gimp_display_shell_vruler_button_press),
                     shell);
 
+  /*  set the rulers as track widgets for each other, so we don't end up
+   *  with one ruler wrongly being stuck a few pixels off while we are
+   *  hovering the other
+   */
+  gimp_ruler_add_track_widget (GIMP_RULER (shell->hrule), shell->vrule);
+  gimp_ruler_add_track_widget (GIMP_RULER (shell->vrule), shell->hrule);
+
   gimp_help_set_help_data (shell->vrule, NULL, GIMP_HELP_IMAGE_WINDOW_RULER);
 
   gimp_devices_add_widget (shell->display->gimp, shell->hrule);



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