Re: Wrapping GtkPlacesSidebar



 Implementation of GtkPlacesSidebar is almost finished.There is still
an issue in the populate-popup signal that I'm working on (it's
related to GVolume). I hope this can be finished by the end of this
week. I will keep you posted.

On Mon, Sep 9, 2013 at 6:46 PM, Juan Rafael García Blanco
<juanrgar gmail com> wrote:

On Sep 8, 2013 4:06 PM, "Kjell Ahlstedt" <kjell ahlstedt bredband net>
wrote:

2013-09-06 22:49, Juan Rafael García Blanco skrev:

Hi,

Thank you very much. That script got serious :) I patched
gtk_signals.defs and that did the trick: now I don't see the warning
message, and the GFile is wrapped just fine.

I still have a few problems:
- How can I provide a const version of _WRAP_METHOD(std::vector<
Glib::RefPtr<Gio::File> > list_shortcuts(),
gtk_places_sidebar_list_shortcuts)

_WRAP_METHOD(std::vector<Glib::RefPtr<const Gio::File> > list_shortcuts()
const, gtk_places_sidebar_list_shortcuts)

You also need appropriate _CONVERSION macros. Have you looked at similar
methods in other classes?
E.g. Gtk::Application::get_windows() or Gtk::Builder::get_objects()?

I discovered what was the problem with this after examining the compiler's
output. This troubled me because I kept using the constversion as the last
argument to WRAP_METHOD. Without that it compiles fine. Thank you very much.



- How can I deal with gpointers that are actually well known objects?

The only such gpointers that I can find in GtkPlacesSidebar are parameters
to the drag-action-requested and drag-perform-drop signals. I guess the best
way to handle those is to add more patches to the gtk_signals.defs file,
unless you can convince the gtk+ folks that they should change the calls to
g_signal_new() in gtkplacessidebar.c.

Ok. Thank you, I will give you an update soon.

Regards,
Juan.





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