Hi,

> m_adjustment.set_page_size((int)val);
>
The method set_page_size needs a double as parameter, see
http://www.gtkmm.org/docs/gtkmm-2.4/docs/reference/html/classGtk_1_1Adjustment.html#8ce619f778049f760ef25269d9da7273

m_adjustment.set_page_increment((int)val);
>
The method set_page_increment needs a double too, see
http://www.gtkmm.org/docs/gtkmm-2.4/docs/reference/html/classGtk_1_1Adjustment.html#7cb297efb8bf3bb30aa51c754718f22a

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

I can't test now the methods set_page_size and set_page_increment, but I
remember that the set_menu(*m_pMenu) cannot compile.

2008/12/14 Murray Cumming <[email protected]>

> 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
> [email protected]
> www.murrayc.com
> www.openismus.com
>
>
>
_______________________________________________
gtkmm-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/gtkmm-list

Reply via email to