[gimp] app: use a GimpOverlayFrame for the text style editor



commit 170f0bed00aa67a4f2c6d2a17979e8f87704159e
Author: Michael Natterer <mitch gimp org>
Date:   Sat Jun 12 23:49:55 2010 +0200

    app: use a GimpOverlayFrame for the text style editor
    
    so it gets round corners and doesn't look so old school.

 app/tools/gimptexttool-editor.c |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/app/tools/gimptexttool-editor.c b/app/tools/gimptexttool-editor.c
index 950b73a..8d7aa55 100644
--- a/app/tools/gimptexttool-editor.c
+++ b/app/tools/gimptexttool-editor.c
@@ -38,6 +38,7 @@
 
 #include "widgets/gimpdialogfactory.h"
 #include "widgets/gimpoverlaybox.h"
+#include "widgets/gimpoverlayframe.h"
 #include "widgets/gimptextbuffer.h"
 #include "widgets/gimptexteditor.h"
 #include "widgets/gimptextproxy.h"
@@ -167,9 +168,9 @@ gimp_text_tool_editor_start (GimpTextTool *text_tool)
       gdouble  xres = 1.0;
       gdouble  yres = 1.0;
 
-      text_tool->style_overlay = gtk_frame_new (NULL);
-      gtk_frame_set_shadow_type (GTK_FRAME (text_tool->style_overlay),
-                                 GTK_SHADOW_OUT);
+      text_tool->style_overlay = gimp_overlay_frame_new ();
+      gtk_container_set_border_width (GTK_CONTAINER (text_tool->style_overlay),
+                                      4);
       gimp_display_shell_add_overlay (shell,
                                       text_tool->style_overlay,
                                       0, 0,



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]