static VALUE
rcw_initialize(int argc, VALUE *argv, VALUE self)
{
    VALUE manager;
    GtkWidget* widget;
    rb_scan_args(argc, argv, "01", &manager);
    if (NIL_P(manager)){
      widget = gtk_recent_chooser_widget_new_for_manager(GTK_RECENT_MANAGER(RVAL2GOBJ(manager)));
    } else {
      widget = gtk_recent_chooser_widget_new();
    }
    RBGTK_INITIALIZE(self, widget);
    return Qnil;
}
Пример #2
0
GtkRecentManager* cast_GtkRecentManager(GtkWidget* widget) {
    return GTK_RECENT_MANAGER(widget);
}