[glom] Print Layout: Make items transparent.



commit 8cf4a1e9a95a6636b9981e882ce33bf1c7fb033d
Author: Murray Cumming <murrayc murrayc com>
Date:   Wed Aug 10 23:36:39 2011 +0200

    Print Layout: Make items transparent.
    
    * glom/utility_widgets/canvas/canvas_group_resizable.cc:
    create_rect_manipulators(): Make items transparent instead of white.

 ChangeLog                                          |    7 +++++++
 glom/print_layout/canvas_layout_item.cc            |    3 ++-
 .../canvas/canvas_group_resizable.cc               |    4 ++--
 3 files changed, 11 insertions(+), 3 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index f2f83a7..be7b633 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
 2011-08-10  Murray Cumming  <murrayc murrayc com>
 
+	Print Layout: Make items transparent.
+
+	* glom/utility_widgets/canvas/canvas_group_resizable.cc:
+	create_rect_manipulators(): Make items transparent instead of white.
+
+2011-08-10  Murray Cumming  <murrayc murrayc com>
+
 	Print Layout: Allow rules to be moved.
 
 	* glom/utility_widgets/canvas/canvas_line_movable.[h|cc]: Added 
diff --git a/glom/print_layout/canvas_layout_item.cc b/glom/print_layout/canvas_layout_item.cc
index 709fc34..3a4087f 100644
--- a/glom/print_layout/canvas_layout_item.cc
+++ b/glom/print_layout/canvas_layout_item.cc
@@ -218,7 +218,8 @@ Glib::RefPtr<CanvasItemMovable> CanvasLayoutItem::create_canvas_item_for_layout_
       else
         canvas_item->set_image_empty(); //show a no-image picture.
 
-      canvas_item->property_fill_color() = "white"; //This makes the whole area clickable, not just the outline stroke.
+      //canvas_item->property_fill_color() = "white"; //This makes the whole area clickable, not just the outline stroke.
+      //canvas_item->property_fill_color_rgba() = 0xFFFFFF00;
 
       child = canvas_item;
       child_item = canvas_item;
diff --git a/glom/utility_widgets/canvas/canvas_group_resizable.cc b/glom/utility_widgets/canvas/canvas_group_resizable.cc
index 27f7755..d743b9f 100644
--- a/glom/utility_widgets/canvas/canvas_group_resizable.cc
+++ b/glom/utility_widgets/canvas/canvas_group_resizable.cc
@@ -72,7 +72,7 @@ void CanvasGroupResizable::create_rect_manipulators()
 {
   m_rect = Goocanvas::Rect::create(0, 0, 0, 0);
   m_rect->property_line_width() = 0;
-  m_rect->property_fill_color() = "white";
+  m_rect->property_fill_color_rgba() = 0xFFFFFF00; //Needed to make it react to drags. White but completely transparent.
   add_child(m_rect);
 
   //Allow dragging of the rect to move everything:
@@ -253,7 +253,7 @@ void CanvasGroupResizable::position_rect_manipulators()
   m_rect->property_y() = child_y;
   m_rect->property_width() = child_width;
   m_rect->property_height() = child_height;
-  m_rect->property_fill_color() = "white";
+  //m_rect->property_fill_color_rgba() = 0xFFFFFF00;
 
   const double x2 = child_x + child_width;
   const double y2 = child_y + child_height;



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