mirror of https://github.com/GNOME/gimp.git
Use gtk_widget_get_window() instead of widget->window
This commit is contained in:
parent
676e7f8c31
commit
33150b4a1b
|
@ -2250,11 +2250,12 @@ gimp_text_tool_editor (GimpTextTool *text_tool)
|
|||
static void
|
||||
gimp_text_tool_canvas_editor (GimpTextTool *text_tool)
|
||||
{
|
||||
GimpTool *tool = GIMP_TOOL (text_tool);
|
||||
GimpTextOptions *options = GIMP_TEXT_TOOL_GET_OPTIONS (text_tool);
|
||||
GimpTool *tool = GIMP_TOOL (text_tool);
|
||||
GimpTextOptions *options = GIMP_TEXT_TOOL_GET_OPTIONS (text_tool);
|
||||
GimpDisplayShell *shell = gimp_display_get_shell (tool->display);
|
||||
|
||||
gtk_im_context_set_client_window (text_tool->im_context,
|
||||
gimp_display_get_shell (tool->display)->canvas->window);
|
||||
gtk_widget_get_window (shell->canvas));
|
||||
|
||||
gtk_im_context_focus_in (text_tool->im_context);
|
||||
|
||||
|
|
Loading…
Reference in New Issue