Commit a8bc8d20 authored by Michael Natterer's avatar Michael Natterer 😴

Bug 784480 - Clicking on-canvas GUI with a tablet stylus crashes...

...if "Show rulers" is disabled

Add HACK to gimp_display_shell_canvas_realize() that makes sure the
rulers are always mapped once for each new GimpDisplayShell. This
seems to magically fix all the crashes.
parent 3568f1cb
......@@ -116,6 +116,17 @@ gimp_display_shell_canvas_realize (GtkWidget *canvas,
gtk_widget_set_size_request (GTK_WIDGET (shell), 0, 0);
shell->xfer = gimp_display_xfer_realize (GTK_WIDGET(shell));
/* HACK: remove with GTK+ 3.x: this unconditionally maps the
* rulers, if configured to be hidden they are never visible to the
* user because they will be hidden again right away.
*
* For some obscure reason, having the rulers mapped once prevents
* crashes with tablets and on-canvas dialogs. See bug #784480 and
* all its duplicates.
*/
gtk_widget_show (shell->hrule);
gtk_widget_show (shell->vrule);
}
void
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment