gnomemm r1660 - in libgnomecanvasmm/trunk: . examples/canvas_affine libgnomecanvas/src



Author: murrayc
Date: Mon Aug  4 10:48:47 2008
New Revision: 1660
URL: http://svn.gnome.org/viewvc/gnomemm?rev=1660&view=rev

Log:
2008-08-04  Murray Cumming  <murrayc murrayc com>

* examples/canvas_affine/canvas_affine.cc: A const correction to 
avoid a warning.
* libgnomecanvas/src/canvas.ccg:
* libgnomecanvas/src/canvas.hg: Added a CanvasAA(GnomeCanvas*) 
constructor, to allow use with libglademm or Gtk::Builder.
Bug #541007 (Federico Poloni)

Modified:
   libgnomecanvasmm/trunk/ChangeLog
   libgnomecanvasmm/trunk/examples/canvas_affine/canvas_affine.cc
   libgnomecanvasmm/trunk/libgnomecanvas/src/canvas.ccg
   libgnomecanvasmm/trunk/libgnomecanvas/src/canvas.hg

Modified: libgnomecanvasmm/trunk/examples/canvas_affine/canvas_affine.cc
==============================================================================
--- libgnomecanvasmm/trunk/examples/canvas_affine/canvas_affine.cc	(original)
+++ libgnomecanvasmm/trunk/examples/canvas_affine/canvas_affine.cc	Mon Aug  4 10:48:47 2008
@@ -6,7 +6,7 @@
 #include <gtkmm/window.h>
 #include <gtkmm/main.h>
 
-Gnome::Canvas::Line* some_lines(Gnome::Canvas::Group *group, gchar * color="black")
+Gnome::Canvas::Line* some_lines(Gnome::Canvas::Group *group, const gchar* color = "black")
 {
   using namespace Gnome::Art;
 	

Modified: libgnomecanvasmm/trunk/libgnomecanvas/src/canvas.ccg
==============================================================================
--- libgnomecanvasmm/trunk/libgnomecanvas/src/canvas.ccg	(original)
+++ libgnomecanvasmm/trunk/libgnomecanvas/src/canvas.ccg	Mon Aug  4 10:48:47 2008
@@ -60,6 +60,11 @@
   //gtk_widget_pop_colormap();
 }
 
+CanvasAA::CanvasAA(GnomeCanvas* castitem)
+: Canvas(castitem)
+{
+}
+
 CanvasAA::~CanvasAA()
 {
 }

Modified: libgnomecanvasmm/trunk/libgnomecanvas/src/canvas.hg
==============================================================================
--- libgnomecanvasmm/trunk/libgnomecanvas/src/canvas.hg	(original)
+++ libgnomecanvasmm/trunk/libgnomecanvas/src/canvas.hg	Mon Aug  4 10:48:47 2008
@@ -167,6 +167,7 @@
 {
   public:
     CanvasAA();
+    explicit CanvasAA(GnomeCanvas* castitem);
     virtual ~CanvasAA();
 };
 



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