Re: [Vala] [Genie] emulate a mouse click to trigger widget changes




There are two problems with your handler:

1) It needs to have 'instance_pos = -1' added to the CCode clause, so it
  will look like:

  [CCode (name="G_MODULE_EXPORT on_menu_change_tab", instance_pos = -1)]
  def on_menu_change_tab ()

  That will change the signature of the method to what Gtk.Builer expects.

2) You need to pass 'this' as argument to builder.connect_signals, so it
  can get passed to the handler.

3) Than just call nbMain.set_current_page(4) in the handler.


Thanks, but it didn't solve the problem.

I get

      4 [main] MyApp 2944 _cygtls::handle_exceptions: Exception: STATUS_ACCESS_VIOLATION
    475 [main] MyApp 2944 open_stackdumpfile: Dumping stack trace to MyApp.exe.stackdump

dumped out to the console then the application exits.
                                          
_________________________________________________________________
Browse profiles for FREE! Meet local singles online.
http://clk.atdmt.com/NMN/go/150855801/direct/01/


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