void atksharp_object_override_get_index_in_parent (GType gtype, gpointer cb) { AtkObjectClass *klass = g_type_class_peek (gtype); if (!klass) klass = g_type_class_ref (gtype); ((AtkObjectClass *) klass)->get_index_in_parent = cb; }
void gnomesharp_fileentry_override_browse_clicked (GType gtype, gpointer cb) { GObjectClass *klass = g_type_class_peek (gtype); if (klass == NULL) klass = g_type_class_ref (gtype); ((GnomeFileEntryClass *)klass)->browse_clicked = cb; }
void atksharp_misc_override_threads_leave (GType gtype, gpointer cb) { AtkMiscClass *klass = g_type_class_peek (gtype); if (!klass) klass = g_type_class_ref (gtype); ((AtkMiscClass *) klass)->threads_leave = cb; }
void atksharp_util_override_remove_key_event_listener (gpointer cb) { AtkUtilClass *klass = g_type_class_peek (ATK_TYPE_UTIL); if (!klass) klass = g_type_class_ref (ATK_TYPE_UTIL); ((AtkUtilClass *) klass)->remove_key_event_listener = cb; }
void gnomesharp_icontextitem_override_selection_started (GType gtype, gpointer cb) { GObjectClass *klass = g_type_class_peek (gtype); if (klass == NULL) klass = g_type_class_ref (gtype); ((GnomeIconTextItemClass *)klass)->selection_started = cb; }
static void cinnamon_slicer_paint (ClutterActor *self) { /* StWidget paints CSS elements */ CLUTTER_ACTOR_CLASS (g_type_class_peek (st_widget_get_type ()))->paint (self); cinnamon_slicer_paint_child (CINNAMON_SLICER (self)); }
void gnomesharp_client_override_shutdown_cancelled (GType gtype, gpointer cb) { GObjectClass *klass = g_type_class_peek (gtype); if (klass == NULL) klass = g_type_class_ref (gtype); ((GnomeClientClass *)klass)->shutdown_cancelled = cb; }
void gnomesharp_iconlist_override_toggle_cursor_selection (GType gtype, gpointer cb) { GObjectClass *klass = g_type_class_peek (gtype); if (klass == NULL) klass = g_type_class_ref (gtype); ((GnomeIconListClass *)klass)->toggle_cursor_selection = cb; }
void gnomesharp_appbar_override_clear_prompt (GType gtype, gpointer cb) { GObjectClass *klass = g_type_class_peek (gtype); if (klass == NULL) klass = g_type_class_ref (gtype); ((GnomeAppBarClass *)klass)->clear_prompt = cb; }
void gnomesharp_client_override_die (GType gtype, gpointer cb) { GObjectClass *klass = g_type_class_peek (gtype); if (klass == NULL) klass = g_type_class_ref (gtype); ((GnomeClientClass *)klass)->die = cb; }
void gnomesharp_appbar_override_user_response (GType gtype, gpointer cb) { GObjectClass *klass = g_type_class_peek (gtype); if (klass == NULL) klass = g_type_class_ref (gtype); ((GnomeAppBarClass *)klass)->user_response = cb; }
void gnomesharp_canvasitem_override_event (GType gtype, gpointer cb) { GObjectClass *klass = g_type_class_peek (gtype); if (klass == NULL) klass = g_type_class_ref (gtype); ((GnomeCanvasItemClass *)klass)->event = cb; }
static void shell_slicer_paint (ClutterActor *self) { /* StWidget paints CSS elements */ CLUTTER_ACTOR_CLASS (g_type_class_peek (st_widget_get_type ()))->paint (self); shell_slicer_paint_child (SHELL_SLICER (self)); }
/** * gwy_process_type_init: * * Makes libgwyprocess types safe for deserialization and performs other * initialization. You have to call this function before using objects * from libgwyprocess. * * Calls gwy_type_init() first to make sure libgwyddion is initialized. * * It is safe to call this function more than once, subsequent calls are no-op. **/ void gwy_process_type_init(void) { static gboolean types_initialized = FALSE; if (types_initialized) return; gwy_type_init(); g_type_class_peek(GWY_TYPE_DATA_LINE); g_type_class_peek(GWY_TYPE_DATA_FIELD); g_type_class_peek(GWY_TYPE_CDLINE); types_initialized = TRUE; _gwy_cdline_class_setup_presets(); }
void gnomesharp_colorpicker_override_color_set (GType gtype, gpointer cb) { GObjectClass *klass = g_type_class_peek (gtype); if (klass == NULL) klass = g_type_class_ref (gtype); ((GnomeColorPickerClass *)klass)->color_set = cb; }
void gnomesharp_iconentry_override_browse (GType gtype, gpointer cb) { GObjectClass *klass = g_type_class_peek (gtype); if (klass == NULL) klass = g_type_class_ref (gtype); ((GnomeIconEntryClass *)klass)->browse = cb; }
void gnomesharp_dateedit_override_time_changed (GType gtype, gpointer cb) { GObjectClass *klass = g_type_class_peek (gtype); if (klass == NULL) klass = g_type_class_ref (gtype); ((GnomeDateEditClass *)klass)->time_changed = cb; }
void gnomesharp_iconlist_override_text_changed (GType gtype, gpointer cb) { GObjectClass *klass = g_type_class_peek (gtype); if (klass == NULL) klass = g_type_class_ref (gtype); ((GnomeIconListClass *)klass)->text_changed = cb; }
void gnomesharp_druid_override_help (GType gtype, gpointer cb) { GObjectClass *klass = g_type_class_peek (gtype); if (klass == NULL) klass = g_type_class_ref (gtype); ((GnomeDruidClass *)klass)->help = cb; }
/** * atk_remove_key_event_listener: * @listener_id: the id of the event listener to remove * * Removes the specified event listener **/ void atk_remove_key_event_listener (guint listener_id) { AtkUtilClass *klass = g_type_class_peek (ATK_TYPE_UTIL); if (klass->remove_key_event_listener) klass->remove_key_event_listener (listener_id); }
void gnomesharp_druidpage_override_cancel (GType gtype, gpointer cb) { GObjectClass *klass = g_type_class_peek (gtype); if (klass == NULL) klass = g_type_class_ref (gtype); ((GnomeDruidPageClass *)klass)->cancel = cb; }
void gtksharp_cellrenderer_override_get_size (GType gtype, gpointer cb) { GObjectClass *klass = g_type_class_peek (gtype); if (klass == NULL) klass = g_type_class_ref (gtype); ((GtkCellRendererClass *) klass)->get_size = cb; }
void gnomesharp_canvas_override_draw_background (GType gtype, gpointer cb) { GObjectClass *klass = g_type_class_peek (gtype); if (klass == NULL) klass = g_type_class_ref (gtype); ((GnomeCanvasClass *)klass)->draw_background = cb; }
static void fs_rtp_conference_finalize (GObject * object) { /* Peek will always succeed here because we 'refed the class in the _init */ g_type_class_unref (g_type_class_peek (FS_TYPE_RTP_SUB_STREAM)); G_OBJECT_CLASS (parent_class)->finalize (object); }
void gnomesharp_fileentry_override_activate (GType gtype, gpointer cb) { GObjectClass *klass = g_type_class_peek (gtype); if (klass == NULL) klass = g_type_class_ref (gtype); ((GnomeFileEntryClass *)klass)->activate = cb; }
void atksharp_util_override_get_toolkit_version (gpointer cb) { AtkUtilClass *klass = g_type_class_peek (ATK_TYPE_UTIL); if (!klass) klass = g_type_class_ref (ATK_TYPE_UTIL); ((AtkUtilClass *) klass)->get_toolkit_version = cb; }
void gnomesharp_fontpicker_override_font_set (GType gtype, gpointer cb) { GObjectClass *klass = g_type_class_peek (gtype); if (klass == NULL) klass = g_type_class_ref (gtype); ((GnomeFontPickerClass *)klass)->font_set = cb; }
static void gdata_entry_finalize (GObject *obj) { GDataEntryPrivate *priv; GDataEntry *self = GDATA_ENTRY(obj); GObjectClass *parent_class; GDataEntryClass *klass; priv = GDATA_ENTRY_GET_PRIVATE(self); if (priv->authors != NULL) { g_slist_foreach(priv->authors, (GFunc) destroy_authors, NULL); g_slist_free(priv->authors); } if (priv->links != NULL) { g_slist_foreach(priv->links, (GFunc) destroy_links, NULL); g_slist_free(priv->links); } if (priv->categories != NULL) { g_slist_foreach(priv->categories, (GFunc) destroy_categories, NULL); g_slist_free(priv->categories); } if (priv->email_addresses != NULL) { g_slist_foreach(priv->email_addresses, (GFunc) destroy_email_address, NULL); g_slist_free(priv->email_addresses); } if (priv->im_addresses != NULL) { g_slist_foreach(priv->im_addresses, (GFunc) destroy_im_address, NULL); g_slist_free(priv->im_addresses); } if (priv->organizations != NULL) { g_slist_foreach(priv->organizations, (GFunc) destroy_organization, NULL); g_slist_free(priv->organizations); } if (priv->phone_numbers != NULL) { g_slist_foreach(priv->phone_numbers, (GFunc) destroy_phone_number, NULL); g_slist_free(priv->phone_numbers); } if (priv->postal_addresses != NULL) { g_slist_foreach(priv->postal_addresses, (GFunc) destroy_postal_address, NULL); g_slist_free(priv->postal_addresses); } if (priv->field_table != NULL) g_hash_table_destroy(priv->field_table); if (priv->entry_xml != NULL) g_free(priv->entry_xml); /* Chain up to the parent class */ klass = GDATA_ENTRY_CLASS(g_type_class_peek(GDATA_TYPE_ENTRY)); parent_class = G_OBJECT_CLASS (g_type_class_peek_parent (klass)); parent_class->finalize(obj); }
static GObject * gstreamill_constructor (GType type, guint n_construct_properties, GObjectConstructParam *construct_properties) { GObject *obj; GObjectClass *parent_class = g_type_class_peek (G_TYPE_OBJECT); obj = parent_class->constructor (type, n_construct_properties, construct_properties); return obj; }
/** * gwy_draw_type_init: * * Makes libgwydraw types safe for deserialization and performs other * initialization. You have to call this function before using objects * from libgwydraw. * * Calls gwy_process_type_init() first to make sure libgwyprocess is * initialized. * * It is safe to call this function more than once, subsequent calls are no-op. **/ void gwy_draw_type_init(void) { static gboolean types_initialized = FALSE; if (types_initialized) return; gwy_process_type_init(); g_type_class_peek(GWY_TYPE_GRADIENT); g_type_class_peek(GWY_TYPE_GL_MATERIAL); g_type_class_peek(GWY_TYPE_SELECTION); types_initialized = gwy_rgba_get_type(); _gwy_gradient_class_setup_presets(); _gwy_gl_material_class_setup_presets(); }