From 8238696eb6ec59ec035c208f13c3e786e3112f89 Mon Sep 17 00:00:00 2001 From: dooglus Date: Wed, 26 Sep 2007 05:57:12 +0000 Subject: [PATCH] Finish fix for 1801220. I forgot about the call to change the frame background back to normal when not in edit mode. We don't need that now. git-svn-id: http://svn.voria.com/code@760 1f10aa63-cdf2-0310-b900-c93c546f37ac --- synfig-studio/trunk/src/gtkmm/workarea.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/synfig-studio/trunk/src/gtkmm/workarea.cpp b/synfig-studio/trunk/src/gtkmm/workarea.cpp index a6ca612..14a54c0 100644 --- a/synfig-studio/trunk/src/gtkmm/workarea.cpp +++ b/synfig-studio/trunk/src/gtkmm/workarea.cpp @@ -2048,7 +2048,6 @@ WorkArea::refresh(GdkEventExpose*event) } } - // Calculate the window coordinates of the top-left // corner of the canvas. //const synfig::Vector::value_type @@ -2062,11 +2061,10 @@ WorkArea::refresh(GdkEventExpose*event) Glib::RefPtr gc=Gdk::GC::create(drawing_area->get_window()); - - // If we are in animate mode, draw a red border around the screen if(canvas_interface->get_mode()&synfigapp::MODE_ANIMATE) { +// #define USE_FRAME_BACKGROUND_TO_SHOW_EDIT_MODE #ifdef USE_FRAME_BACKGROUND_TO_SHOW_EDIT_MODE // This method of drawing the red border doesn't work on any // Gtk theme which uses the crux-engine, hcengine, industrial, @@ -2084,10 +2082,10 @@ WorkArea::refresh(GdkEventExpose*event) drawing_area->get_width()-1,drawing_area->get_height()-1); // w,h #endif } +#ifdef USE_FRAME_BACKGROUND_TO_SHOW_EDIT_MODE else drawing_frame->unset_bg(Gtk::STATE_NORMAL); - - +#endif previous_focus=get_focus_point(); -- 2.7.4