static void rbuimanager_mark(void *p) { GtkUIManager *manager; GList *node; manager = GTK_UI_MANAGER(p); for (node = gtk_ui_manager_get_action_groups(manager); node; node = g_list_next(node)) { GtkWidget *action_group = node->data; rbgobj_gc_mark_instance(action_group); } rbgobj_gc_mark_instance(gtk_ui_manager_get_accel_group(manager)); }
void rbgobj_gc_mark_gvalue(GValue* value) { GType gtype = G_VALUE_TYPE(value); /* FIXME */ if (G_TYPE_FUNDAMENTAL(gtype) == G_TYPE_OBJECT) rbgobj_gc_mark_instance(g_value_get_object(value)); }
static void action_group_mark(void *p) { GtkActionGroup *group; GList *actions, *node; group = GTK_ACTION_GROUP(p); actions = gtk_action_group_list_actions(group); for (node = actions; node; node = g_list_next(node)) { GtkWidget *action = node->data; rbgobj_gc_mark_instance(action); } g_list_free(actions); }
static void rb_gtk3_tree_view_mark(gpointer object) { GtkTreeView *tree_view = object; GList *node; GList *columns; columns = gtk_tree_view_get_columns(tree_view); for (node = columns; node; node = g_list_next(node)) { GtkTreeViewColumn *column = node->data; rbgobj_gc_mark_instance(column); } g_list_free(columns); }
static void action_mark(void *p) { GtkAction *action; GSList *node; action = GTK_ACTION(p); for (node = gtk_action_get_proxies(action); node; node = g_slist_next(node)) { GtkWidget *proxy = node->data; rbgobj_gc_mark_instance(proxy); } }
static void rbclt_container_mark_callback (ClutterActor *actor, gpointer data) { rbgobj_gc_mark_instance (actor); }