static GList * list_sizegroups (GladeWidget * gwidget) { GladeProject *project = glade_widget_get_project (gwidget); GList *groups = NULL; const GList *list; for (list = glade_project_get_objects (project); list; list = list->next) { GladeWidget *iter = glade_widget_get_from_gobject (list->data); if (GTK_IS_SIZE_GROUP (glade_widget_get_object (iter))) groups = g_list_prepend (groups, iter); } return g_list_reverse (groups); }
static void set_cursor (GladeProject *project, GdkCursor *gdk_cursor) { GList *list; for (list = (GList *) glade_project_get_objects (project); list; list = list->next) { GObject *object = list->data; if (GTK_IS_WIDGET (object) && gtk_widget_get_has_window (GTK_WIDGET (object))) { set_cursor_recurse (GTK_WIDGET (object), gdk_cursor); } } }
static void set_cursor (GdkCursor *gdk_cursor) { GladeProject *project; GList *list, *projects; for (projects = glade_app_get_projects (); projects; projects = projects->next) { project = projects->data; for (list = (GList *) glade_project_get_objects (project); list; list = list->next) { GObject *object = list->data; if (GTK_IS_WINDOW (object)) { set_cursor_recurse (GTK_WIDGET (object), gdk_cursor); } } } }