Use gtk_widget_get_window() instead of widget->window

This commit is contained in:
Michael Natterer 2009-10-09 11:02:12 +02:00
parent 676e7f8c31
commit 33150b4a1b
1 changed files with 4 additions and 3 deletions

View File

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