mirror of https://github.com/GNOME/gimp.git
Use gtk_widget_get_window() instead of widget->window
This commit is contained in:
parent
33150b4a1b
commit
2da2c510d2
|
@ -480,7 +480,7 @@ gimp_draw_tool_draw_guide_line (GimpDrawTool *draw_tool,
|
|||
x1 = 0;
|
||||
y1 = 0;
|
||||
|
||||
gdk_drawable_get_size (shell->canvas->window, &x2, &y2);
|
||||
gdk_drawable_get_size (gtk_widget_get_window (shell->canvas), &x2, &y2);
|
||||
|
||||
switch (orientation)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue