[gtkmm-documentation] ProgressBar example: Fix the type of a data member



commit 61c49105ca9c245a2e555a6faafc9bdce451565c
Author: Kjell Ahlstedt <kjell ahlstedt bredband net>
Date:   Sun Mar 6 11:10:21 2016 +0100

    ProgressBar example: Fix the type of a data member
    
    * examples/book/progressbar/examplewindow.[h|cc]:
    Replace int m_connection_id_timeout by sigc::connection m_connection_timeout.
    The compiler did not notice this bug until sigc::connection::operator bool()
    was made explicit.

 examples/book/progressbar/examplewindow.cc |    4 +---
 examples/book/progressbar/examplewindow.h  |    4 +---
 2 files changed, 2 insertions(+), 6 deletions(-)
---
diff --git a/examples/book/progressbar/examplewindow.cc b/examples/book/progressbar/examplewindow.cc
index f77883f..b43c15a 100644
--- a/examples/book/progressbar/examplewindow.cc
+++ b/examples/book/progressbar/examplewindow.cc
@@ -1,5 +1,3 @@
-//$Id: examplewindow.cc 836 2007-05-09 03:02:38Z jjongsma $ -*- c++ -*-
-
 /* gtkmm example Copyright (C) 2002 gtkmm development team
  *
  * This program is free software; you can redistribute it and/or modify
@@ -40,7 +38,7 @@ ExampleWindow::ExampleWindow()
   m_ProgressBar.set_show_text(false);
 
   //Add a timer callback to update the value of the progress bar:
-  m_connection_id_timeout = Glib::signal_timeout().connect(sigc::mem_fun(*this,
+  m_connection_timeout = Glib::signal_timeout().connect(sigc::mem_fun(*this,
               &ExampleWindow::on_timeout), 50 );
 
   m_VBox.pack_start(m_Separator, Gtk::PACK_SHRINK);
diff --git a/examples/book/progressbar/examplewindow.h b/examples/book/progressbar/examplewindow.h
index 1ea43c3..a17d825 100644
--- a/examples/book/progressbar/examplewindow.h
+++ b/examples/book/progressbar/examplewindow.h
@@ -1,5 +1,3 @@
-//$Id: examplewindow.h 705 2006-07-19 02:55:32Z jjongsma $ -*- c++ -*-
-
 /* gtkmm example Copyright (C) 2002 gtkmm development team
  *
  * This program is free software; you can redistribute it and/or modify
@@ -44,7 +42,7 @@ protected:
   Gtk::CheckButton m_CheckButton_Text, m_CheckButton_Activity, m_CheckButton_Inverted;
   Gtk::Button m_Button_Close;
 
-  int m_connection_id_timeout;
+  sigc::connection m_connection_timeout;
   bool m_bActivityMode;
 };
 


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