gnomemm r1963 - in cluttermm_tutorial/trunk: . docs/tutorial examples/full_example



Author: murrayc
Date: Tue Jan  6 22:24:12 2009
New Revision: 1963
URL: http://svn.gnome.org/viewvc/gnomemm?rev=1963&view=rev

Log:
2009-01-06  Murray Cumming  <murrayc murrayc com>

* docs/tutorial/cluttermm-tut.xml: Correct the base URLs for the 
(not ideal) reference documentation for cluttermm and clutter-gtkmm.
* examples/full_example/main.cc: Replaced some g_print()s with 
std::cout.

Modified:
   cluttermm_tutorial/trunk/ChangeLog
   cluttermm_tutorial/trunk/docs/tutorial/cluttermm-tut.xml
   cluttermm_tutorial/trunk/examples/full_example/main.cc

Modified: cluttermm_tutorial/trunk/docs/tutorial/cluttermm-tut.xml
==============================================================================
--- cluttermm_tutorial/trunk/docs/tutorial/cluttermm-tut.xml	(original)
+++ cluttermm_tutorial/trunk/docs/tutorial/cluttermm-tut.xml	Tue Jan  6 22:24:12 2009
@@ -13,8 +13,8 @@
  <!ENTITY url_refdocs_base_clutter "http://clutter-project.org/docs/clutter/0.9/Clutter";>
  <!ENTITY url_refdocs_base_clutter_alt "http://clutter-project.org/docs/clutter/0.9/clutter-Clutter-";>
  <!ENTITY url_refdocs_base_clutter_gtk "http://www.clutter-project.org/docs/clutter-gtk/0.9/";>
- <!ENTITY url_refdocs_base_cluttermm "FIXME">
- <!ENTITY url_refdocs_base_clutter_gtkmm "FIXME">
+ <!ENTITY url_refdocs_base_cluttermm "http://www.gtkmm.org/docs/cluttermm-0.9/docs/reference/html/";>
+ <!ENTITY url_refdocs_base_clutter_gtkmm "http://www.gtkmm.org/docs/clutter-gtkmm-0.9/docs/reference/html/";>
 ]>
 
 <!--

Modified: cluttermm_tutorial/trunk/examples/full_example/main.cc
==============================================================================
--- cluttermm_tutorial/trunk/examples/full_example/main.cc	(original)
+++ cluttermm_tutorial/trunk/examples/full_example/main.cc	Tue Jan  6 22:24:12 2009
@@ -19,6 +19,7 @@
 #include <algorithm>
 #include <list>
 #include <string>
+#include <iostream>
 #include <cmath>
 
 namespace
@@ -327,7 +328,7 @@
   // Set the number of frames to be proportional to the distance to travel,
   // so the speed is always the same:
   const int pos_to_move = (pos_front < pos) ? items_.size() + (pos - pos_front)
-                                            : pos_front - pos;
+                                            : pos_front - pos; //TODO: This is not used. murrayc.
   timeline_rotation_->set_n_frames(angle_diff);
 
   // Remember what item will be at the front when this timeline finishes:
@@ -342,11 +343,11 @@
   // if the objects are moving), to simplify things.
   if(timeline_rotation_ && timeline_rotation_->is_playing())
   {
-    g_print("on_texture_button_press(): ignoring\n");
+    std::cout << "on_texture_button_press(): ignoring." << std::endl;
     return false;
   }
   else
-    g_print("on_texture_button_press(): handling\n");
+    std::cout << "on_texture_button_press(): handling.o" << std::endl;
 
   rotate_item_to_front(pitem);
   return true;



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