Re: Self Introduction



On Sun, 2008-12-14 at 11:58 -0200, Fabrício Godoy wrote:
> Name: Fabrício Godoy
> City, Country: Santos, Brazil
> Profession: C# programmer
> 
> Currently I learning C++/Gtkmm reading "Programming with gtkmm"
> tutorial, in hope to help the open source development.
> Reading the tutorial (I'm not finished yet), I found minor errors as
> you can see below.
> 
> Thanks for great tutorial.
> 
> 
> Index: examples/book/range_widgets/examplewindow.cc
> ===================================================================
> --- examples/book/range_widgets/examplewindow.cc    (revisão 76)
> +++ examples/book/range_widgets/examplewindow.cc    (cópia de
> trabalho)
> @@ -192,8 +192,8 @@
>  void ExampleWindow::on_adjustment2_value_changed()
>  {
>      double val = m_adjustment_pagesize.get_value();
> -    m_adjustment.set_page_size((int)val);
> -    m_adjustment.set_page_increment((int)val);
> +    m_adjustment.set_page_size(val);
> +    m_adjustment.set_page_increment(val);
>  
>      // note that we don't have to emit the "changed" signal;
>      // gtkmm does this for us
> Index: examples/book/range_widgets/labeledoptionmenu.cc
> ===================================================================
> --- examples/book/range_widgets/labeledoptionmenu.cc    (revisão 76)
> +++ examples/book/range_widgets/labeledoptionmenu.cc    (cópia de
> trabalho)
> @@ -27,7 +27,7 @@
>    pack_start(m_label, Gtk::PACK_SHRINK);
>  
>    #ifndef GTKMM_DISABLE_DEPRECATED
> -  m_OptionMenu.set_menu(*m_pMenu);
> +  m_OptionMenu.set_menu(m_pMenu);
>    pack_start(m_OptionMenu);
>    #endif //GTKMM_DISABLE_DEPRECATED
>  }

Why do you think these are errors? Did you have a compilation error?

-- 
Murray Cumming
murrayc murrayc com
www.murrayc.com
www.openismus.com




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