Re: Examples not working

2014-07-07 Thread Murray Cumming
On Mon, 2014-07-07 at 16:44 +0200, Murray Cumming wrote: > On Fri, 2014-07-04 at 19:59 +0530, Gurjot Singh wrote: > > On 4 July 2014 19:42, Kjell Ahlstedt wrote: > > > The version of the overloaded add_action() method that's used in the > > > example > > > programs exists in glibmm 2.37.6, but no

Re: Examples not working

2014-07-07 Thread Murray Cumming
On Fri, 2014-07-04 at 19:59 +0530, Gurjot Singh wrote: > On 4 July 2014 19:42, Kjell Ahlstedt wrote: > > The version of the overloaded add_action() method that's used in the example > > programs exists in glibmm 2.37.6, but not in 2.37.4. I suspect that > > developer.gnome.org/glibmm/2.37 shows on

Re: Examples not working

2014-07-05 Thread Marcus Karlsson
On Fri, Jul 04, 2014 at 07:59:34PM +0530, Gurjot Singh wrote: > On 4 July 2014 19:42, Kjell Ahlstedt wrote: > > The version of the overloaded add_action() method that's used in the example > > programs exists in glibmm 2.37.6, but not in 2.37.4. I suspect that > > developer.gnome.org/glibmm/2.37 s

Re: Examples not working

2014-07-05 Thread Marcus Karlsson
On Fri, Jul 04, 2014 at 07:04:56PM +0530, Gurjot Singh wrote: > On 4 July 2014 19:00, Gurjot Singh wrote: > > Ok so my version is older, then what should I do now? Install newer or > > change 'add_action' part? > > If latter, then replace it with what? > > I mean what are the options that I have

Re: Examples not working

2014-07-04 Thread Gurjot Singh
On 4 July 2014 19:42, Kjell Ahlstedt wrote: > The version of the overloaded add_action() method that's used in the example > programs exists in glibmm 2.37.6, but not in 2.37.4. I suspect that > developer.gnome.org/glibmm/2.37 shows one of the latest 2.37.x versions, > either 2.37.7 or 2.37.93. >

Re: Examples not working

2014-07-04 Thread Kjell Ahlstedt
2014-07-04 15:50, Gurjot Singh skrev: On 4 July 2014 19:16, Kjell Ahlstedt wrote: dpkg -s libglibmm-2.4-dev gives me: Version: 2.37.4-0ubuntu3 Ok so my version is older, then what should I do now? Install newer or change 'add_action' part? If latter, then replace it with what? If you can ins

Re: Examples not working

2014-07-04 Thread Gurjot Singh
On 4 July 2014 19:20, Gurjot Singh wrote: > Wait a sec, > I have 2.37.4 version of glibmm, and from this: > https://developer.gnome.org/glibmm/2.37/classGio_1_1ActionMap.html#a784dfa4573e994ac452d5e2dd56a5909 > I can see that 'add_action' is supported. > So maybe I should use something like: > Gio

Re: Examples not working

2014-07-04 Thread Gurjot Singh
On 4 July 2014 19:16, Kjell Ahlstedt wrote: > dpkg -s libglibmm-2.4-dev > gives me: > Version: 2.37.4-0ubuntu3 > > Ok so my version is older, then what should I do now? Install newer or > change 'add_action' part? > If latter, then replace it with what? > > If you can install a newer version of gl

Re: Examples not working

2014-07-04 Thread Kjell Ahlstedt
2014-07-04 15:30, Gurjot Singh skrev: On 4 July 2014 18:50, Kjell Ahlstedt wrote: The version of add_action() used here, was added 2013-08-07 and first appeared in glibmm 2.37.6. Which version of glibmm do you use? dpkg -s libglibmm-2.4-dev gives me: Version: 2.37.4-0ubuntu3 Ok so my version

Re: Examples not working

2014-07-04 Thread Gurjot Singh
On 4 July 2014 19:00, Gurjot Singh wrote: > Ok so my version is older, then what should I do now? Install newer or > change 'add_action' part? > If latter, then replace it with what? I mean what are the options that I have to create a menubar? -- Gurjot Singh Blog: http://bhattigurjot.wordpress

Re: Examples not working

2014-07-04 Thread Gurjot Singh
On 4 July 2014 18:50, Kjell Ahlstedt wrote: > The version of add_action() used here, was added 2013-08-07 and first > appeared in glibmm 2.37.6. Which version of glibmm do you use? dpkg -s libglibmm-2.4-dev gives me: Version: 2.37.4-0ubuntu3 Ok so my version is older, then what should I do now?

Re: Examples not working

2014-07-04 Thread Kjell Ahlstedt
The version of add_action() used here, was added 2013-08-07 and first appeared in glibmm 2.37.6. Which version of glibmm do you use? Kjell 2014-07-04 10:37, Gurjot Singh skrev: Hi, The examples shown here: https://developer.gnome.org/gtkmm-tutorial/stable/sec-menus-examples.html.en they are

Re: Examples not working

2014-07-04 Thread Gurjot Singh
On 4 July 2014 16:08, Nikita Tropin wrote: > I'm not sure but... try > 1) Explicitly cast 1st arg of add_action. i.e. ... > add_action(Glib::ustring("...") ... > 2) ... sigc::mem_fun(*this, &ExampleWindow::on_menu_file_new_generic) > ... change to > ... sigc::ptr_fun(&on_menu_file_new_generic) ...

Examples not working

2014-07-04 Thread Gurjot Singh
Hi, The examples shown here: https://developer.gnome.org/gtkmm-tutorial/stable/sec-menus-examples.html.en they are not working. I'm getting this error: examplewindow.cc: In constructor ‘ExampleWindow::ExampleWindow()’: examplewindow.cc:18:67: error: no matching function for call to ‘Gio::SimpleA