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.
This commit is contained in:
Michael Natterer
2011-04-09 21:04:40 +02:00
parent 7415ef3a8e
commit 1a9434cef1

View File

@ -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);