On Tue, 2014-12-02 at 18:12 +0100, ax487 wrote:
> Hello all,
> 
> I noticed an odd discrepancy between gtk and gtkmm recently: It seems
> that the GtkButton in gtk3 implements the GtkActionable interface,
> meaning that I could attach use `gtk_actionable_set_action_name` to
> attach a GAction to it. However, the gtkmm version, Gtk::Button does not
> inherit from Gtk::Actionable. Therefore the functionality is not
> available. There is a TODO in button.h:
> 
> //TODO: Derive from (and implement) Actionable when we can break ABI.
> 
> What does that mean? I thought that gtk3 and gtkmm3 were kept in sync,
> i.e. gtkmm3-3.14 would be feature-complete regarding gkt3-3.14? Is this
> functionality going to be implemented (when)?
[snip]

We can't add a base class to a C++ class without breaking ABI - that
generally means causing all applications that currently use that ABI to
crash. Obviously we don't want to do that. It can be done when we do a
parallel install such as when we went from gtkmm-2.4 to gtkmm-3.0, which
did not affect currently installed applications.

You can do this in the meantime:
gtk_actionable_set_action_name(theButton.gobj(), "somename");

See:
https://developer.gnome.org/gtkmm-tutorial/stable/sec-basics-gobj-and-wrap.html.en

-- 
Murray Cumming
murr...@murrayc.com
www.murrayc.com


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

Reply via email to