gtkmm r969 - in branches/gtkmm-2-12: . demos/gtk-demo examples/book/box examples/book/drawingarea/arcs examples/book/drawingarea/clock examples/book/treeview/editable_cells examples/gdk gtk/gtkmm gtk/src



Author: murrayc
Date: Sat Feb 23 18:39:51 2008
New Revision: 969
URL: http://svn.gnome.org/viewvc/gtkmm?rev=969&view=rev

Log:
2008-02-21  Deng Xiyue <manphiz gmail com>

* demos/gtk-demo/demowindow.cc
* demos/gtk-demo/example_pixbufs.cc
* demos/gtk-demo/example_textview.cc
* demos/gtk-demo/example_treeview_editable_cells.cc
* demos/gtk-demo/textwidget.cc
* examples/book/box/main.cc
* examples/book/custom/custom_widget/mywidget.cc
* examples/book/drawingarea/arcs/myarea.cc
* examples/book/drawingarea/clock/clock.cc
* examples/book/treeview/editable_cells/examplewindow.cc
* examples/gdk/radar.cc
* gtk/gtkmm/targetentry.cc
* gtk/src/ruler.ccg
* gtk/src/scale.ccg
* gtk/src/treeview.hg
Fix header inclusion and use using directive for C functions to
fix build on gcc-4.3 and Solaris.  Refined from Tim Mooney's
patch.
(Bug #498438, #517530)


Modified:
   branches/gtkmm-2-12/ChangeLog
   branches/gtkmm-2-12/demos/gtk-demo/demowindow.cc
   branches/gtkmm-2-12/demos/gtk-demo/example_pixbufs.cc
   branches/gtkmm-2-12/demos/gtk-demo/example_textview.cc
   branches/gtkmm-2-12/demos/gtk-demo/example_treeview_editable_cells.cc
   branches/gtkmm-2-12/demos/gtk-demo/textwidget.cc
   branches/gtkmm-2-12/examples/book/box/main.cc
   branches/gtkmm-2-12/examples/book/drawingarea/arcs/myarea.cc
   branches/gtkmm-2-12/examples/book/drawingarea/clock/clock.cc
   branches/gtkmm-2-12/examples/book/treeview/editable_cells/examplewindow.cc
   branches/gtkmm-2-12/examples/gdk/radar.cc
   branches/gtkmm-2-12/gtk/gtkmm/targetentry.cc
   branches/gtkmm-2-12/gtk/src/ruler.ccg
   branches/gtkmm-2-12/gtk/src/scale.ccg
   branches/gtkmm-2-12/gtk/src/treesortable.hg
   branches/gtkmm-2-12/gtk/src/treeview.hg

Modified: branches/gtkmm-2-12/demos/gtk-demo/demowindow.cc
==============================================================================
--- branches/gtkmm-2-12/demos/gtk-demo/demowindow.cc	(original)
+++ branches/gtkmm-2-12/demos/gtk-demo/demowindow.cc	Sat Feb 23 18:39:51 2008
@@ -31,7 +31,12 @@
 #include <cctype>
 #include <cerrno>
 #include <stdio.h>
-#include <string.h>
+
+#include <cstring>
+
+using std::isspace;
+using std::strlen;
+
 #include "demo-common.h"
 
 #ifdef NEED_FLOCKFILE_PROTO

Modified: branches/gtkmm-2-12/demos/gtk-demo/example_pixbufs.cc
==============================================================================
--- branches/gtkmm-2-12/demos/gtk-demo/example_pixbufs.cc	(original)
+++ branches/gtkmm-2-12/demos/gtk-demo/example_pixbufs.cc	Sat Feb 23 18:39:51 2008
@@ -15,7 +15,6 @@
 //#include <config.h>
 
 #include <gtkmm.h>
-#include <stdlib.h>
 #include <math.h>
 #include "demo-common.h"
 

Modified: branches/gtkmm-2-12/demos/gtk-demo/example_textview.cc
==============================================================================
--- branches/gtkmm-2-12/demos/gtk-demo/example_textview.cc	(original)
+++ branches/gtkmm-2-12/demos/gtk-demo/example_textview.cc	Sat Feb 23 18:39:51 2008
@@ -7,11 +7,15 @@
  *
  */
 
-#include "gtkmm.h"
-#include "gtk/gtkstock.h"
-#include "gtk/gtk.h"
+#include <cstdlib>
+#include <gtkmm.h>
+#include <gtk/gtkstock.h>
+#include <gtk/gtk.h>
+
 #include "demo-common.h"
 
+using std::exit;
+
 class Window_EasterEgg : public Gtk::Window
 {
 public:

Modified: branches/gtkmm-2-12/demos/gtk-demo/example_treeview_editable_cells.cc
==============================================================================
--- branches/gtkmm-2-12/demos/gtk-demo/example_treeview_editable_cells.cc	(original)
+++ branches/gtkmm-2-12/demos/gtk-demo/example_treeview_editable_cells.cc	Sat Feb 23 18:39:51 2008
@@ -6,8 +6,11 @@
  *
  */
 
+#include <cstdlib>
 #include <gtkmm.h>
 
+using std::strtod;
+
 class CellItem_Product
 {
 public:

Modified: branches/gtkmm-2-12/demos/gtk-demo/textwidget.cc
==============================================================================
--- branches/gtkmm-2-12/demos/gtk-demo/textwidget.cc	(original)
+++ branches/gtkmm-2-12/demos/gtk-demo/textwidget.cc	Sat Feb 23 18:39:51 2008
@@ -19,9 +19,13 @@
  * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  */
 
+#include <cstring>
 #include "textwidget.h"
-#include <string.h>
 #include "pangomm/fontdescription.h"
+  
+using std::strstr;
+using std::strncmp;
+using std::strlen;
 
 
 TextWidget::TextWidget(bool is_source)

Modified: branches/gtkmm-2-12/examples/book/box/main.cc
==============================================================================
--- branches/gtkmm-2-12/examples/book/box/main.cc	(original)
+++ branches/gtkmm-2-12/examples/book/box/main.cc	Sat Feb 23 18:39:51 2008
@@ -17,9 +17,12 @@
  */
 
 #include <iostream>
+#include <cstdlib>
 #include <gtkmm/main.h>
 #include "examplewindow.h"
 
+using std::atoi;
+
 int main(int argc, char *argv[])
 {
   Gtk::Main main_instance(argc, argv);

Modified: branches/gtkmm-2-12/examples/book/drawingarea/arcs/myarea.cc
==============================================================================
--- branches/gtkmm-2-12/examples/book/drawingarea/arcs/myarea.cc	(original)
+++ branches/gtkmm-2-12/examples/book/drawingarea/arcs/myarea.cc	Sat Feb 23 18:39:51 2008
@@ -18,6 +18,7 @@
 
 #include "myarea.h"
 #include <cairomm/context.h>
+#include <math.h>
 
 MyArea::MyArea()
 {

Modified: branches/gtkmm-2-12/examples/book/drawingarea/clock/clock.cc
==============================================================================
--- branches/gtkmm-2-12/examples/book/drawingarea/clock/clock.cc	(original)
+++ branches/gtkmm-2-12/examples/book/drawingarea/clock/clock.cc	Sat Feb 23 18:39:51 2008
@@ -17,6 +17,7 @@
  */
 
 #include <ctime>
+#include <math.h>
 #include <cairomm/context.h>
 #include "clock.h"
 

Modified: branches/gtkmm-2-12/examples/book/treeview/editable_cells/examplewindow.cc
==============================================================================
--- branches/gtkmm-2-12/examples/book/treeview/editable_cells/examplewindow.cc	(original)
+++ branches/gtkmm-2-12/examples/book/treeview/editable_cells/examplewindow.cc	Sat Feb 23 18:39:51 2008
@@ -17,8 +17,13 @@
  */
 
 #include <iostream>
+#include <cstdio>
+#include <cstdlib>
 #include "examplewindow.h"
 
+using std::sprintf;
+using std::strtol;
+
 ExampleWindow::ExampleWindow()
 : m_Button_Quit("Quit"),
   m_validate_retry(false)

Modified: branches/gtkmm-2-12/examples/gdk/radar.cc
==============================================================================
--- branches/gtkmm-2-12/examples/gdk/radar.cc	(original)
+++ branches/gtkmm-2-12/examples/gdk/radar.cc	Sat Feb 23 18:39:51 2008
@@ -31,7 +31,6 @@
 #include <gtkmm/window.h>
 #include <gtkmm/main.h>
 
-#include <cmath>
 #include <math.h> //Needed by the IRIX MipsPro compiler, for sin().
 #include <sstream>
 

Modified: branches/gtkmm-2-12/gtk/gtkmm/targetentry.cc
==============================================================================
--- branches/gtkmm-2-12/gtk/gtkmm/targetentry.cc	(original)
+++ branches/gtkmm-2-12/gtk/gtkmm/targetentry.cc	Sat Feb 23 18:39:51 2008
@@ -23,6 +23,8 @@
 #include <gtkmm/targetentry.h>
 #include <cstring> //For memset().
 
+using std::memset;
+
 namespace Gtk
 {
 

Modified: branches/gtkmm-2-12/gtk/src/ruler.ccg
==============================================================================
--- branches/gtkmm-2-12/gtk/src/ruler.ccg	(original)
+++ branches/gtkmm-2-12/gtk/src/ruler.ccg	Sat Feb 23 18:39:51 2008
@@ -25,6 +25,7 @@
 #include <gtk/gtkvruler.h>
 #include <cstring>
 
+using std::strcmp;
 
 namespace Gtk
 {

Modified: branches/gtkmm-2-12/gtk/src/scale.ccg
==============================================================================
--- branches/gtkmm-2-12/gtk/src/scale.ccg	(original)
+++ branches/gtkmm-2-12/gtk/src/scale.ccg	Sat Feb 23 18:39:51 2008
@@ -29,6 +29,8 @@
 #include <cstring> //For strlen()
 #include <memory>
 
+using std::strlen;
+
 namespace Gtk
 {
 

Modified: branches/gtkmm-2-12/gtk/src/treesortable.hg
==============================================================================
--- branches/gtkmm-2-12/gtk/src/treesortable.hg	(original)
+++ branches/gtkmm-2-12/gtk/src/treesortable.hg	Sat Feb 23 18:39:51 2008
@@ -35,6 +35,8 @@
 namespace Gtk
 {
 
+//TODO: This should maybe derive from TreeModel, because it is a prerequisite. murrayc
+
 /**
  * @ingroup TreeView
 */

Modified: branches/gtkmm-2-12/gtk/src/treeview.hg
==============================================================================
--- branches/gtkmm-2-12/gtk/src/treeview.hg	(original)
+++ branches/gtkmm-2-12/gtk/src/treeview.hg	Sat Feb 23 18:39:51 2008
@@ -36,6 +36,9 @@
 _DEFS(gtkmm,gtk)
 _PINCLUDE(gtkmm/private/container_p.h)
 
+#include <cstdlib>
+
+using std::strtod;
 
 namespace Gtk
 {



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