Re: Self Introduction



Soon as I can, I'll post compiling errors.

2008/12/15 Milosz Derezynski <internalerror gmail com>
On Mon, Dec 15, 2008 at 11:57 AM, Fabrício Godoy <skarllot gmail com> wrote:
Hi,
 
m_OptionMenu.set_menu(*m_pMenu);
The method needs a reference to Gtk::Menu, see http://www.gtkmm.org/docs/gtkmm-2.4/docs/reference/html/classGtk_1_1OptionMenu.html#0803d2e805dd785709c502374555a720


m_pMenu is a pointer; dereferencing it allows to pass a reference to the called function. The original code for this is correct.
 

2008/12/14 Murray Cumming <murrayc murrayc com>

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




_______________________________________________
gtkmm-list mailing list
gtkmm-list gnome org
http://mail.gnome.org/mailman/listinfo/gtkmm-list




--
Please note that according to the German law on data retention,
information on every electronic information exchange with me is
retained for a period of six months.
[Bitte beachten Sie, dass dem Gesetz zur Vorratsdatenspeicherung zufolge
jeder elektronische Kontakt mit mir sechs Monate lang gespeichert wird.]



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