[gimp] app: configure the IM overlay's opacity explicitely
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: configure the IM overlay's opacity explicitely
- Date: Wed, 24 Feb 2010 00:37:28 +0000 (UTC)
commit 261bb2c598e4565dd2cf543ef27bf55dfd624ea2
Author: Michael Natterer <mitch gimp org>
Date: Wed Feb 24 01:36:10 2010 +0100
app: configure the IM overlay's opacity explicitely
app/tools/gimptexttool-editor.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/app/tools/gimptexttool-editor.c b/app/tools/gimptexttool-editor.c
index 95c0e7b..7002085 100644
--- a/app/tools/gimptexttool-editor.c
+++ b/app/tools/gimptexttool-editor.c
@@ -34,6 +34,7 @@
#include "text/gimptextlayout.h"
#include "widgets/gimpdialogfactory.h"
+#include "widgets/gimpoverlaybox.h"
#include "widgets/gimptexteditor.h"
#include "widgets/gimptextproxy.h"
@@ -1167,10 +1168,12 @@ gimp_text_tool_im_preedit_start (GtkIMContext *context,
text_tool->preedit_overlay = gtk_frame_new (NULL);
gtk_frame_set_shadow_type (GTK_FRAME (text_tool->preedit_overlay),
GTK_SHADOW_OUT);
- gimp_display_shell_add_overlay (GIMP_DISPLAY_SHELL (shell),
+ gimp_display_shell_add_overlay (shell,
text_tool->preedit_overlay,
cursor_rect.x + off_x,
cursor_rect.y + off_y);
+ gimp_overlay_box_set_child_opacity (GIMP_OVERLAY_BOX (shell->canvas),
+ text_tool->preedit_overlay, 0.7);
gtk_widget_show (text_tool->preedit_overlay);
frame = gtk_frame_new (NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]