[gimp] Use gtk_widget_get_window() instead of widget->window
- From: Michael Natterer <mitch src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gimp] Use gtk_widget_get_window() instead of widget->window
- Date: Fri, 9 Oct 2009 19:19:45 +0000 (UTC)
commit 33150b4a1bfc30f8b7f123675fd0d5eaef936bd6
Author: Michael Natterer <mitch gimp org>
Date: Fri Oct 9 11:02:12 2009 +0200
Use gtk_widget_get_window() instead of widget->window
app/tools/gimptexttool.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/app/tools/gimptexttool.c b/app/tools/gimptexttool.c
index e061f3c..761f8b6 100644
--- a/app/tools/gimptexttool.c
+++ b/app/tools/gimptexttool.c
@@ -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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]