static void gtk_widget_layoutable_init (GtkLayoutableIface *iface) { gtk_widget_parent_layoutable_iface = g_type_interface_peek_parent (iface); iface->size_request = (void (*) (GtkLayoutable *, GtkRequisition *)) gtk_widget_size_request; iface->size_allocate = gtk_widget_layoutable_size_allocate; }
static void mtn_connman_initable_init_async (GAsyncInitable *initable, gint io_priority, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer user_data) { GAsyncInitableIface *iface_class, *parent_iface_class; InitData *data; data = g_new0 (InitData, 1); data->cancellable = cancellable; data->res = g_simple_async_result_new (G_OBJECT (initable), callback, user_data, NULL); /* Chain up the parent method */ iface_class = G_ASYNC_INITABLE_GET_IFACE (initable); parent_iface_class = g_type_interface_peek_parent (iface_class); parent_iface_class->init_async (initable, io_priority, cancellable, _parent_init_async_cb, data); }
static void gimp_vectors_tree_view_view_iface_init (GimpContainerViewInterface *iface) { parent_view_iface = g_type_interface_peek_parent (iface); iface->set_container = gimp_vectors_tree_view_set_container; }
static void g_tls_server_connection_gnutls_initable_interface_init (GInitableIface *iface) { g_tls_server_connection_gnutls_parent_initable_iface = g_type_interface_peek_parent (iface); iface->init = g_tls_server_connection_gnutls_initable_init; }
/* Unset focus from actor */ static void _xfdashboard_text_box_focusable_unset_focus(XfdashboardFocusable *inFocusable) { ClutterActor *self; XfdashboardFocusableInterface *selfIface; XfdashboardFocusableInterface *parentIface; ClutterStage *stage; g_return_if_fail(XFDASHBOARD_IS_FOCUSABLE(inFocusable)); g_return_if_fail(XFDASHBOARD_IS_ACTOR(inFocusable)); self=CLUTTER_ACTOR(inFocusable); /* Call parent class interface function */ selfIface=XFDASHBOARD_FOCUSABLE_GET_IFACE(inFocusable); parentIface=g_type_interface_peek_parent(selfIface); if(parentIface && parentIface->unset_focus) { parentIface->unset_focus(inFocusable); } /* Get stage of actor to tell it where the keyboard focus to set to */ stage=CLUTTER_STAGE(clutter_actor_get_stage(self)); if(!stage) { g_warning(_("Focusable actor %s is not on a stage"), G_OBJECT_TYPE_NAME(self)); return; } clutter_stage_set_key_focus(stage, NULL); }
static void gtu_history_view_init (GundoHistoryViewIface* iface) { parent_view = g_type_interface_peek_parent (iface); iface->notify_can_undo = gtu_notify_can_undo; }
static void gtk_message_dialog_buildable_interface_init (GtkBuildableIface *iface) { parent_buildable_iface = g_type_interface_peek_parent (iface); iface->custom_tag_start = parent_buildable_iface->custom_tag_start; iface->custom_finished = parent_buildable_iface->custom_finished; }
static void gimp_region_select_options_config_iface_init (GimpConfigInterface *config_iface) { parent_config_iface = g_type_interface_peek_parent (config_iface); config_iface->reset = gimp_region_select_options_reset; }
static void rygel_http_response_rygel_state_machine_interface_init (RygelStateMachineIface * iface) { rygel_http_response_rygel_state_machine_parent_iface = g_type_interface_peek_parent (iface); iface->run = (void (*)(RygelStateMachine*)) rygel_http_response_run; iface->run_finish = rygel_http_response_run_finish; iface->get_cancellable = rygel_http_response_real_get_cancellable; iface->set_cancellable = rygel_http_response_real_set_cancellable; }
static void gail_window_get_size (AtkComponent *component, gint *width, gint *height) { GtkWidget *widget = GTK_ACCESSIBLE (component)->widget; GdkRectangle rect; if (widget == NULL) /* * State is defunct */ return; gail_return_if_fail (GTK_IS_WINDOW (widget)); if (!gtk_widget_is_toplevel (widget)) { AtkComponentIface *parent_iface; parent_iface = (AtkComponentIface *) g_type_interface_peek_parent (ATK_COMPONENT_GET_IFACE (component)); parent_iface->get_size (component, width, height); return; } gdk_window_get_frame_extents (widget->window, &rect); *width = rect.width; *height = rect.height; }
static void runner_init (CutRunnerIface *iface) { parent_runner_iface = g_type_interface_peek_parent(iface); iface->run_async = NULL; iface->run = runner_run; }
static void async_initable_iface_init (GAsyncInitableIface *iface) { async_initable_parent_iface = g_type_interface_peek_parent (iface); iface->init_async = initable_init_async; iface->init_finish = initable_init_finish; }
static void get_signal_quality (MMModemCdma *modem, MMModemUIntFn callback, gpointer user_data) { MMCallbackInfo *info; MMAtSerialPort *port; MMModemCdma *parent_iface; port = mm_generic_cdma_get_best_at_port (MM_GENERIC_CDMA (modem), NULL); if (!port) { /* Let the superclass handle it */ parent_iface = g_type_interface_peek_parent (MM_MODEM_CDMA_GET_INTERFACE (modem)); parent_iface->get_signal_quality (MM_MODEM_CDMA (modem), callback, user_data); return; } info = mm_callback_info_uint_new (MM_MODEM (modem), callback, user_data); /* Many Novatel CDMA cards don't report CSQ in standard 0 - 31 and the CSQ * reply doesn't appear to be in positive dBm either; instead try the custom * Novatel command for it. */ mm_at_serial_port_queue_command (port, "$NWRSSI", 3, get_rssi_done, info); }
static void gtk_vbox_layoutable_init (GtkLayoutableIface *iface) { gtk_vbox_parent_layoutable_iface = g_type_interface_peek_parent (iface); iface->size_request = gtk_box_layoutable_size_request; iface->size_allocate = gtk_vbox_layoutable_size_allocate; }
static void gimp_bucket_fill_options_config_iface_init (GimpConfigInterface *config_iface) { parent_config_iface = g_type_interface_peek_parent (config_iface); config_iface->reset = gimp_bucket_fill_options_reset; }
static void meta_screen_cast_window_stream_init_initable_iface (GInitableIface *iface) { initable_parent_iface = g_type_interface_peek_parent (iface); iface->init = meta_screen_cast_window_stream_initable_init; }
static void hippo_canvas_grip_iface_init(HippoCanvasItemIface *item_class) { item_parent_class = g_type_interface_peek_parent(item_class); item_class->motion_notify_event = hippo_canvas_grip_motion_notify_event; }
static void hippo_canvas_stack_iface_init(HippoCanvasItemIface *item_class) { item_parent_class = g_type_interface_peek_parent(item_class); }
static void fso_gsm_null_low_level_fso_gsm_low_level_interface_init (FsoGsmLowLevelIface * iface) { fso_gsm_null_low_level_fso_gsm_low_level_parent_iface = g_type_interface_peek_parent (iface); iface->poweron = (gboolean (*)(FsoGsmLowLevel*)) fso_gsm_null_low_level_real_poweron; iface->poweroff = (gboolean (*)(FsoGsmLowLevel*)) fso_gsm_null_low_level_real_poweroff; iface->suspend = (gboolean (*)(FsoGsmLowLevel*)) fso_gsm_null_low_level_real_suspend; iface->resume = (gboolean (*)(FsoGsmLowLevel*)) fso_gsm_null_low_level_real_resume; }
/* Unset focus from actor */ static void _xfdashboard_viewpad_focusable_unset_focus(XfdashboardFocusable *inFocusable) { XfdashboardViewpad *self; XfdashboardViewpadPrivate *priv; XfdashboardFocusableInterface *selfIface; XfdashboardFocusableInterface *parentIface; g_return_if_fail(XFDASHBOARD_IS_FOCUSABLE(inFocusable)); g_return_if_fail(XFDASHBOARD_IS_VIEWPAD(inFocusable)); self=XFDASHBOARD_VIEWPAD(inFocusable); priv=self->priv; /* Viewpad is just a proxy for the current active view. * So check if current active view is focusable and call its * virtual function. */ if(priv->activeView && XFDASHBOARD_IS_FOCUSABLE(priv->activeView)) { /* Call virtual function of view to unset focus */ xfdashboard_focusable_unset_focus(XFDASHBOARD_FOCUSABLE(priv->activeView)); /* Call parent class interface function of this actor */ selfIface=XFDASHBOARD_FOCUSABLE_GET_IFACE(inFocusable); parentIface=g_type_interface_peek_parent(selfIface); if(parentIface && parentIface->unset_focus) { parentIface->unset_focus(inFocusable); } } }
static void hippo_canvas_base_iface_init(HippoCanvasItemIface *item_class) { item_parent_class = g_type_interface_peek_parent(item_class); item_class->paint = hippo_canvas_base_paint; }
static void clutter_event_translator_iface_init (ClutterEventTranslatorIface *iface) { clutter_event_translator_parent_iface = g_type_interface_peek_parent (iface); iface->translate_event = clutter_stage_glx_translate_event; }
/* Virtual function "can_focus" was called */ static gboolean _xfdashboard_text_box_focusable_can_focus(XfdashboardFocusable *inFocusable) { XfdashboardTextBox *self; XfdashboardTextBoxPrivate *priv; XfdashboardFocusableInterface *selfIface; XfdashboardFocusableInterface *parentIface; g_return_val_if_fail(XFDASHBOARD_IS_TEXT_BOX(inFocusable), CLUTTER_EVENT_PROPAGATE); self=XFDASHBOARD_TEXT_BOX(inFocusable); priv=self->priv; /* Check if actor could be focused at all ... */ selfIface=XFDASHBOARD_FOCUSABLE_GET_IFACE(inFocusable); parentIface=g_type_interface_peek_parent(selfIface); if(parentIface && parentIface->can_focus) { if(!parentIface->can_focus(inFocusable)) return(FALSE); } /* ... then only an editable text box can be focused */ if(priv->isEditable) return(TRUE); /* If we get here this actor cannot be focused */ return(FALSE); }
static void gtk_toggle_tool_button_activatable_interface_init (GtkActivatableIface *iface) { parent_activatable_iface = g_type_interface_peek_parent (iface); iface->update = gtk_toggle_tool_button_update; iface->sync_action_properties = gtk_toggle_tool_button_sync_action_properties; }
static void vala_dmap_container_db_dmap_container_db_interface_init (DMAPContainerDbIface * iface) { vala_dmap_container_db_dmap_container_db_parent_iface = g_type_interface_peek_parent (iface); iface->count = (gint64 (*)(DMAPContainerDb*)) vala_dmap_container_db_real_count; iface->foreach = (void (*)(DMAPContainerDb*, GHFunc, void*)) vala_dmap_container_db_real_foreach; iface->lookup_by_id = (DMAPContainerRecord* (*)(DMAPContainerDb*, guint)) vala_dmap_container_db_real_lookup_by_id; iface->add = (void (*)(DMAPContainerDb*, DMAPContainerRecord*)) vala_dmap_container_db_real_add; }
static void iface_modem_init (MMIfaceModem *iface) { iface_modem_parent = g_type_interface_peek_parent (iface); iface->create_bearer = modem_create_bearer; iface->create_bearer_finish = modem_create_bearer_finish; iface->create_sim = create_sim; iface->create_sim_finish = create_sim_finish; iface->modem_after_sim_unlock = modem_after_sim_unlock; iface->modem_after_sim_unlock_finish = modem_after_sim_unlock_finish; iface->load_supported_modes = load_supported_modes; iface->load_supported_modes_finish = load_supported_modes_finish; iface->load_current_modes = load_current_modes; iface->load_current_modes_finish = load_current_modes_finish; iface->set_current_modes = set_current_modes; iface->set_current_modes_finish = set_current_modes_finish; iface->reset = reset; iface->reset_finish = reset_finish; iface->factory_reset = factory_reset; iface->factory_reset_finish = factory_reset_finish; iface->load_unlock_retries = load_unlock_retries; iface->load_unlock_retries_finish = load_unlock_retries_finish; iface->load_power_state = load_power_state; iface->load_power_state_finish = load_power_state_finish; iface->modem_power_up = modem_power_up; iface->modem_power_up_finish = modem_power_up_finish; iface->modem_power_down = modem_power_down; iface->modem_power_down_finish = modem_power_down_finish; }
static void glade_notebook_editor_editable_init (GladeEditableIface * iface) { parent_editable_iface = g_type_interface_peek_parent (iface); iface->load = glade_notebook_editor_load; }
void ags_play_dssi_audio_plugin_interface_init(AgsPluginInterface *plugin) { ags_play_dssi_parent_plugin_interface = g_type_interface_peek_parent(plugin); plugin->set_ports = ags_play_dssi_audio_set_ports; }
static void gtk_image_menu_item_activatable_interface_init (GtkActivatableIface *iface) { parent_activatable_iface = g_type_interface_peek_parent (iface); iface->update = gtk_image_menu_item_update; iface->sync_action_properties = gtk_image_menu_item_sync_action_properties; }
static void _container_interface_init (ClutterContainerIface *interface) { _container_parent_implementation = g_type_interface_peek_parent (interface); interface->actor_added = _container_actor_added; }