static void gst_auto_convert_class_init (GstAutoConvertClass * klass) { GObjectClass *gobject_class = (GObjectClass *) klass; GstElementClass *gstelement_class = (GstElementClass *) klass; gobject_class->dispose = GST_DEBUG_FUNCPTR (gst_auto_convert_dispose); gobject_class->set_property = gst_auto_convert_set_property; gobject_class->get_property = gst_auto_convert_get_property; g_object_class_install_property (gobject_class, PROP_FACTORIES, g_param_spec_pointer ("factories", "GList of GstElementFactory", "GList of GstElementFactory objects to pick from (the element takes" " ownership of the list (NULL means it will go through all possible" " elements), can only be set once", G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (gobject_class, PROP_INITIAL_IDENTITY, g_param_spec_boolean ("initial-identity", "Install identity initially", "If true, then the identity element will be installed initially " "and used for event passing until the first data buffer arrives ", DEFAULT_INITIAL_IDENTITY, G_PARAM_READWRITE)); gstelement_class->change_state = GST_DEBUG_FUNCPTR (gst_auto_convert_change_state); }
static void gcut_glib_event_loop_class_init (GCutGLibEventLoopClass *klass) { GObjectClass *gobject_class; GParamSpec *spec; gobject_class = G_OBJECT_CLASS(klass); gobject_class->constructor = constructor; gobject_class->dispose = dispose; gobject_class->set_property = set_property; gobject_class->get_property = get_property; klass->parent_class.run = run; klass->parent_class.iterate = iterate; klass->parent_class.quit = quit; klass->parent_class.watch_io = watch_io; klass->parent_class.watch_child_full = watch_child_full; klass->parent_class.add_timeout_full = add_timeout_full; klass->parent_class.add_idle_full = add_idle_full; klass->parent_class.remove = remove; spec = g_param_spec_pointer("context", "Context", "Use the GMainContext for the event loop", G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY); g_object_class_install_property(gobject_class, PROP_CONTEXT, spec); g_type_class_add_private(gobject_class, sizeof(GCutGLibEventLoopPrivate)); }
static void gimp_list_class_init (GimpListClass *klass) { GObjectClass *object_class = G_OBJECT_CLASS (klass); GimpObjectClass *gimp_object_class = GIMP_OBJECT_CLASS (klass); GimpContainerClass *container_class = GIMP_CONTAINER_CLASS (klass); object_class->set_property = gimp_list_set_property; object_class->get_property = gimp_list_get_property; gimp_object_class->get_memsize = gimp_list_get_memsize; container_class->add = gimp_list_add; container_class->remove = gimp_list_remove; container_class->reorder = gimp_list_reorder; container_class->clear = gimp_list_clear; container_class->have = gimp_list_have; container_class->foreach = gimp_list_foreach; container_class->get_child_by_name = gimp_list_get_child_by_name; container_class->get_child_by_index = gimp_list_get_child_by_index; container_class->get_child_index = gimp_list_get_child_index; g_object_class_install_property (object_class, PROP_UNIQUE_NAMES, g_param_spec_boolean ("unique-names", NULL, NULL, FALSE, GIMP_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY)); g_object_class_install_property (object_class, PROP_SORT_FUNC, g_param_spec_pointer ("sort-func", NULL, NULL, GIMP_PARAM_READWRITE | G_PARAM_CONSTRUCT)); }
static void purple_smiley_class_init(PurpleSmileyClass *klass) { GObjectClass *gobj_class = G_OBJECT_CLASS(klass); parent_class = g_type_class_peek_parent(klass); g_type_class_add_private(klass, sizeof(PurpleSmileyPrivate)); gobj_class->get_property = purple_smiley_get_property; gobj_class->set_property = purple_smiley_set_property; gobj_class->finalize = purple_smiley_finalize; gobj_class->dispose = purple_smiley_dispose; /* Shortcut */ properties[PROP_SHORTCUT] = g_param_spec_string("shortcut", "Shortcut", "The text-shortcut for the smiley", NULL, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS); /* Stored Image */ properties[PROP_IMGSTORE] = g_param_spec_pointer("image", "Stored Image", "Stored Image. (that'll have to do for now)", G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS); g_object_class_install_properties(gobj_class, PROP_LAST, properties); signals[SIG_DESTROY] = g_signal_new("destroy", G_OBJECT_CLASS_TYPE(klass), G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0); }
static void ostree_chain_input_stream_class_init (OstreeChainInputStreamClass *klass) { GObjectClass *gobject_class = G_OBJECT_CLASS (klass); GInputStreamClass *stream_class = G_INPUT_STREAM_CLASS (klass); g_type_class_add_private (klass, sizeof (OstreeChainInputStreamPrivate)); gobject_class->get_property = ostree_chain_input_stream_get_property; gobject_class->set_property = ostree_chain_input_stream_set_property; gobject_class->finalize = ostree_chain_input_stream_finalize; stream_class->read_fn = ostree_chain_input_stream_read; stream_class->close_fn = ostree_chain_input_stream_close; /** * OstreeChainInputStream:streams: (element-type GInputStream) * * Chain of input streams read in order. */ g_object_class_install_property (gobject_class, PROP_STREAMS, g_param_spec_pointer ("streams", "", "", G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS)); }
static void ostree_libarchive_input_stream_class_init (OstreeLibarchiveInputStreamClass *klass) { GObjectClass *gobject_class = G_OBJECT_CLASS (klass); GInputStreamClass *stream_class = G_INPUT_STREAM_CLASS (klass); g_type_class_add_private (klass, sizeof (OstreeLibarchiveInputStreamPrivate)); gobject_class->get_property = ostree_libarchive_input_stream_get_property; gobject_class->set_property = ostree_libarchive_input_stream_set_property; gobject_class->finalize = ostree_libarchive_input_stream_finalize; stream_class->read_fn = ostree_libarchive_input_stream_read; stream_class->close_fn = ostree_libarchive_input_stream_close; /** * OstreeLibarchiveInputStream:archive: * * The archive that the stream reads from. */ g_object_class_install_property (gobject_class, PROP_ARCHIVE, g_param_spec_pointer ("archive", "", "", G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS)); }
static void httpstreaming_class_init (HTTPStreamingClass *httpstreamingclass) { GObjectClass *g_object_class = G_OBJECT_CLASS (httpstreamingclass); GParamSpec *param; g_object_class->constructor = httpstreaming_constructor; g_object_class->set_property = httpstreaming_set_property; g_object_class->get_property = httpstreaming_get_property; param = g_param_spec_string ( "address", "address", "address of httpstreaming", NULL, G_PARAM_WRITABLE | G_PARAM_READABLE ); g_object_class_install_property (g_object_class, HTTPSTREAMING_PROP_ADDRESS, param); param = g_param_spec_pointer ( "gstreamill", "gstreamill", NULL, G_PARAM_WRITABLE | G_PARAM_READABLE ); g_object_class_install_property (g_object_class, HTTPSTREAMING_PROP_GSTREAMILL, param); }
static void msd_smartcard_class_install_properties (MsdSmartcardClass *card_class) { GObjectClass *object_class; GParamSpec *param_spec; object_class = G_OBJECT_CLASS (card_class); object_class->set_property = msd_smartcard_set_property; object_class->get_property = msd_smartcard_get_property; param_spec = g_param_spec_ulong ("slot-id", _("Slot ID"), _("The slot the card is in"), 1, G_MAXULONG, MSD_SMARTCARD_DEFAULT_SLOT_ID, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY); g_object_class_install_property (object_class, PROP_SLOT_ID, param_spec); param_spec = g_param_spec_int ("slot-series", _("Slot Series"), _("per-slot card identifier"), -1, G_MAXINT, MSD_SMARTCARD_DEFAULT_SLOT_SERIES, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY); g_object_class_install_property (object_class, PROP_SLOT_SERIES, param_spec); param_spec = g_param_spec_string ("name", _("name"), _("name"), NULL, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY); g_object_class_install_property (object_class, PROP_NAME, param_spec); param_spec = g_param_spec_pointer ("module", _("Module"), _("smartcard driver"), G_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY); g_object_class_install_property (object_class, PROP_MODULE, param_spec); }
static void gnm_item_grid_class_init (GObjectClass *gobject_klass) { GocItemClass *item_klass = (GocItemClass *) gobject_klass; parent_class = g_type_class_peek_parent (gobject_klass); gobject_klass->finalize = item_grid_finalize; gobject_klass->set_property = item_grid_set_property; g_object_class_install_property (gobject_klass, GNM_ITEM_GRID_PROP_SHEET_CONTROL_GUI, g_param_spec_object ("SheetControlGUI", P_("SheetControlGUI"), P_("The sheet control gui controlling the item"), SHEET_CONTROL_GUI_TYPE, GSF_PARAM_STATIC | G_PARAM_WRITABLE)); g_object_class_install_property (gobject_klass, GNM_ITEM_GRID_PROP_BOUND, g_param_spec_pointer ("bound", P_("Bound"), P_("The display bounds"), GSF_PARAM_STATIC | G_PARAM_WRITABLE)); item_klass->realize = item_grid_realize; item_klass->unrealize = item_grid_unrealize; item_klass->draw_region = item_grid_draw_region; item_klass->update_bounds = item_grid_update_bounds; item_klass->button_pressed = item_grid_button_pressed; item_klass->button_released = item_grid_button_released; item_klass->motion = item_grid_motion; item_klass->enter_notify = item_grid_enter_notify; item_klass->leave_notify = item_grid_leave_notify; item_klass->distance = item_grid_distance; }
/* * GdaReportEngine class implementation */ static void gda_report_engine_class_init (GdaReportEngineClass *klass) { GObjectClass *object_class = G_OBJECT_CLASS (klass); parent_class = g_type_class_peek_parent (klass); /* report methods */ object_class->dispose = gda_report_engine_dispose; /* Properties */ object_class->set_property = gda_report_engine_set_property; object_class->get_property = gda_report_engine_get_property; g_object_class_install_property (object_class, PROP_SPEC_NODE, g_param_spec_pointer ("spec", NULL, NULL, G_PARAM_WRITABLE | G_PARAM_READABLE)); g_object_class_install_property (object_class, PROP_SPEC_STRING, g_param_spec_string ("spec-string", NULL, NULL, NULL, G_PARAM_WRITABLE)); g_object_class_install_property (object_class, PROP_SPEC_FILE, g_param_spec_string ("spec-filename", NULL, NULL, NULL, G_PARAM_WRITABLE)); /** * GdaReportEngine::output-directory: * * Defines the directory in which any file generated by the report engine will be stored; * if not specified the current working directory is used. * * Since: 5.0.3 */ g_object_class_install_property (object_class, PROP_OUTPUT_DIR, g_param_spec_string ("output-directory", NULL, NULL, NULL, G_PARAM_WRITABLE | G_PARAM_READABLE)); }
static void enum_option_edit_class_init(EnumOptionEditClass * klass) { GebrGuiSequenceEditClass *enum_option_edit_class; GObjectClass *gobject_class; GParamSpec *param_spec; /* virtual */ enum_option_edit_class = GEBR_GUI_SEQUENCE_EDIT_CLASS(klass); enum_option_edit_class->remove = (typeof(enum_option_edit_class->remove)) __enum_option_edit_remove; enum_option_edit_class->move = (typeof(enum_option_edit_class->move)) __enum_option_edit_move; enum_option_edit_class->move_top = (typeof(enum_option_edit_class->move_top)) __enum_option_edit_move_top; enum_option_edit_class->move_bottom = (typeof(enum_option_edit_class->move_bottom)) __enum_option_edit_move_bottom; enum_option_edit_class->create_tree_view = (typeof(enum_option_edit_class->create_tree_view)) __enum_option_edit_create_tree_view; gobject_class = G_OBJECT_CLASS(klass); gobject_class->set_property = (typeof(gobject_class->set_property)) enum_option_edit_set_property; gobject_class->get_property = (typeof(gobject_class->get_property)) enum_option_edit_get_property; param_spec = g_param_spec_pointer("enum-option", "Enum Option", "GebrGeoXml's enum option source of data", (GParamFlags)(G_PARAM_READWRITE)); g_object_class_install_property(gobject_class, ENUM_OPTION, param_spec); }
static void gst_vaapi_video_buffer_pool_class_init (GstVaapiVideoBufferPoolClass * klass) { GObjectClass *const object_class = G_OBJECT_CLASS (klass); GstBufferPoolClass *const pool_class = GST_BUFFER_POOL_CLASS (klass); GST_DEBUG_CATEGORY_INIT (gst_debug_vaapivideopool, "vaapivideopool", 0, "VA-API video pool"); g_type_class_add_private (klass, sizeof (GstVaapiVideoBufferPoolPrivate)); object_class->finalize = gst_vaapi_video_buffer_pool_finalize; object_class->set_property = gst_vaapi_video_buffer_pool_set_property; object_class->get_property = gst_vaapi_video_buffer_pool_get_property; pool_class->get_options = gst_vaapi_video_buffer_pool_get_options; pool_class->set_config = gst_vaapi_video_buffer_pool_set_config; pool_class->alloc_buffer = gst_vaapi_video_buffer_pool_alloc_buffer; pool_class->reset_buffer = gst_vaapi_video_buffer_pool_reset_buffer; /** * GstVaapiVideoBufferPool:display: * * The #GstVaapiDisplay this object is bound to. */ g_object_class_install_property (object_class, PROP_DISPLAY, g_param_spec_pointer ("display", "Display", "The GstVaapiDisplay to use for this video pool", G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY)); }
static void dispatcher_class_init(DispatcherClass *klass) { GObjectClass *object_class = G_OBJECT_CLASS(klass); g_type_class_add_private(klass, sizeof (DispatcherPrivate)); object_class->get_property = dispatcher_get_property; object_class->set_property = dispatcher_set_property; object_class->constructed = dispatcher_constructed; object_class->finalize = dispatcher_finalize; g_object_class_install_property(object_class, PROP_MAX_MESSAGE_TYPE, g_param_spec_uint("max-message-type", "max-message-type", "Maximum message type", 0, G_MAXUINT, 0, G_PARAM_STATIC_STRINGS | G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY)); g_object_class_install_property(object_class, PROP_OPAQUE, g_param_spec_pointer("opaque", "opaque", "User data to pass to callbacks", G_PARAM_STATIC_STRINGS | G_PARAM_READWRITE | G_PARAM_CONSTRUCT)); }
static void pseudo_tcp_socket_class_init (PseudoTcpSocketClass *cls) { GObjectClass *object_class = G_OBJECT_CLASS (cls); object_class->get_property = pseudo_tcp_socket_get_property; object_class->set_property = pseudo_tcp_socket_set_property; object_class->finalize = pseudo_tcp_socket_finalize; g_object_class_install_property (object_class, PROP_CONVERSATION, g_param_spec_uint ("conversation", "TCP Conversation ID", "The TCP Conversation ID", 0, G_MAXUINT32, 0, G_PARAM_CONSTRUCT_ONLY | G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (object_class, PROP_CALLBACKS, g_param_spec_pointer ("callbacks", "PseudoTcp socket callbacks", "Structure with the callbacks to call when PseudoTcp events happen", G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (object_class, PROP_STATE, g_param_spec_uint ("state", "PseudoTcp State", "The current state (enum PseudoTcpState) of the PseudoTcp socket", TCP_LISTEN, TCP_CLOSED, TCP_LISTEN, G_PARAM_READABLE | G_PARAM_STATIC_STRINGS)); }
static void gth_transition_class_init (GthTransitionClass *klass) { GObjectClass *object_class; g_type_class_add_private (klass, sizeof (GthTransitionPrivate)); object_class = G_OBJECT_CLASS (klass); object_class->get_property = gth_transition_get_property; object_class->set_property = gth_transition_set_property; object_class->finalize = gth_transition_finalize; g_object_class_install_property (object_class, PROP_ID, g_param_spec_string ("id", "ID", "The object id", NULL, G_PARAM_READWRITE)); g_object_class_install_property (object_class, PROP_DISPLAY_NAME, g_param_spec_string ("display-name", "Display name", "The user visible name", NULL, G_PARAM_READWRITE)); g_object_class_install_property (object_class, PROP_FRAME_FUNC, g_param_spec_pointer ("frame-func", "Frame Function", "The function used to set the current frame", G_PARAM_READWRITE)); }
static void gimp_aspect_preview_class_init (GimpAspectPreviewClass *klass) { GObjectClass *object_class = G_OBJECT_CLASS (klass); GtkWidgetClass *widget_class = GTK_WIDGET_CLASS (klass); GimpPreviewClass *preview_class = GIMP_PREVIEW_CLASS (klass); object_class->constructed = gimp_aspect_preview_constructed; object_class->dispose = gimp_aspect_preview_dispose; object_class->get_property = gimp_aspect_preview_get_property; object_class->set_property = gimp_aspect_preview_set_property; widget_class->style_set = gimp_aspect_preview_style_set; preview_class->draw = gimp_aspect_preview_draw; preview_class->draw_buffer = gimp_aspect_preview_draw_buffer; preview_class->transform = gimp_aspect_preview_transform; preview_class->untransform = gimp_aspect_preview_untransform; /** * GimpAspectPreview:drawable: * * Since: GIMP 2.4 */ g_object_class_install_property (object_class, PROP_DRAWABLE, g_param_spec_pointer ("drawable", NULL, NULL, GIMP_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY)); }
static void amlInstallPropDecodeHandle(GObjectClass *oclass, guint property_id) { GObjectClass*gobject_class = (GObjectClass *) oclass; g_object_class_install_property (gobject_class, property_id, g_param_spec_pointer ("decodehandle", "DecodeHandle", "Decoder identifier which can be used to retrieve user data from decoder", G_PARAM_READWRITE)); }
static void seahorse_gpgme_uid_class_init (SeahorseGpgmeUidClass *klass) { GObjectClass *gobject_class = G_OBJECT_CLASS (klass); seahorse_gpgme_uid_parent_class = g_type_class_peek_parent (klass); g_type_class_add_private (klass, sizeof (SeahorseGpgmeUidPrivate)); gobject_class->constructor = seahorse_gpgme_uid_constructor; gobject_class->finalize = seahorse_gpgme_uid_object_finalize; gobject_class->set_property = seahorse_gpgme_uid_set_property; gobject_class->get_property = seahorse_gpgme_uid_get_property; g_object_class_install_property (gobject_class, PROP_PUBKEY, g_param_spec_boxed ("pubkey", "Public Key", "GPGME Public Key that this uid is on", SEAHORSE_GPGME_BOXED_KEY, G_PARAM_READWRITE)); g_object_class_install_property (gobject_class, PROP_USERID, g_param_spec_pointer ("userid", "User ID", "GPGME User ID", G_PARAM_READWRITE)); g_object_class_install_property (gobject_class, PROP_GPGME_INDEX, g_param_spec_uint ("gpgme-index", "GPGME Index", "GPGME User ID Index", 0, G_MAXUINT, 0, G_PARAM_READWRITE)); g_object_class_install_property (gobject_class, PROP_ACTUAL_INDEX, g_param_spec_uint ("actual-index", "Actual Index", "Actual GPG Index", 0, G_MAXUINT, 0, G_PARAM_READWRITE)); }
static void mex_plugin_manager_class_init (MexPluginManagerClass *klass) { GParamSpec *pspec; GObjectClass *object_class = G_OBJECT_CLASS (klass); g_type_class_add_private (klass, sizeof (MexPluginManagerPrivate)); object_class->get_property = mex_plugin_manager_get_property; object_class->set_property = mex_plugin_manager_set_property; object_class->dispose = mex_plugin_manager_dispose; object_class->finalize = mex_plugin_manager_finalize; pspec = g_param_spec_pointer ("search-paths", "Search paths", "Paths to look in for plugins.", G_PARAM_STATIC_STRINGS | G_PARAM_READWRITE); g_object_class_install_property (object_class, PROP_SEARCH_PATHS, pspec); signals[PLUGIN_LOADED] = g_signal_new ("plugin-loaded", G_TYPE_FROM_CLASS (klass), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (MexPluginManagerClass, plugin_loaded), NULL, NULL, g_cclosure_marshal_VOID__OBJECT, G_TYPE_NONE, 1, G_TYPE_OBJECT); }
static void gtk_plot_canvas_text_class_init (GtkPlotCanvasChildClass *klass) { GtkObjectClass *object_class = (GtkObjectClass *)klass; GObjectClass *gobject_class = G_OBJECT_CLASS(klass); parent_class = g_type_class_ref (gtk_plot_canvas_child_get_type ()); klass->draw = gtk_plot_canvas_text_draw; klass->move = NULL; klass->move_resize = NULL; klass->size_allocate = gtk_plot_canvas_text_size_allocate; object_class->destroy = gtk_plot_canvas_text_destroy; gobject_class->get_property = gtk_plot_canvas_text_get_property; gobject_class->set_property = gtk_plot_canvas_text_set_property; g_object_class_install_property (gobject_class, ARG_TEXT, g_param_spec_pointer ("text", P_("Text Attributes"), P_("Text Attributes"), G_PARAM_READABLE|G_PARAM_WRITABLE)); }
static void hippo_canvas_chat_preview_class_init(HippoCanvasChatPreviewClass *klass) { GObjectClass *object_class = G_OBJECT_CLASS (klass); /* HippoCanvasBoxClass *canvas_box_class = HIPPO_CANVAS_BOX_CLASS(klass); */ object_class->set_property = hippo_canvas_chat_preview_set_property; object_class->get_property = hippo_canvas_chat_preview_get_property; object_class->constructor = hippo_canvas_chat_preview_constructor; object_class->dispose = hippo_canvas_chat_preview_dispose; object_class->finalize = hippo_canvas_chat_preview_finalize; g_object_class_install_property(object_class, PROP_ACTIONS, g_param_spec_object("actions", _("Actions"), _("UI actions object"), HIPPO_TYPE_ACTIONS, G_PARAM_READABLE | G_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY)); g_object_class_install_property(object_class, PROP_BLOCK, g_param_spec_pointer("block", _("Block"), _("Block with the chat to display"), G_PARAM_READABLE | G_PARAM_WRITABLE)); }
static void ttx_window_class_init (TTXWindowClass *klass) { GObjectClass *gobj_class; gobj_class = (GObjectClass*) klass; parent_class = g_type_class_peek_parent (klass); gobj_class->finalize = ttx_window_finalize; gobj_class->set_property = ttx_window_set_property; gobj_class->get_property = ttx_window_get_property; gobj_class->constructed = ttx_window_constructed; g_type_class_add_private (gobj_class, sizeof(TTXWindowPrivate)); obj_properties[PROP_PROVIDER_MGR] = g_param_spec_pointer ( "provider-mgr", "provider-mgr", "TTXProviderMgr construct property", G_PARAM_CONSTRUCT_ONLY|G_PARAM_WRITABLE); g_object_class_install_properties (gobj_class, PROP_NUM, obj_properties); }
static void gst_mio_video_device_class_init (GstMIOVideoDeviceClass * klass) { GObjectClass *gobject_class = G_OBJECT_CLASS (klass); gobject_class->dispose = gst_mio_video_device_dispose; gobject_class->finalize = gst_mio_video_device_finalize; gobject_class->get_property = gst_mio_video_device_get_property; gobject_class->set_property = gst_mio_video_device_set_property; g_object_class_install_property (gobject_class, PROP_CONTEXT, g_param_spec_pointer ("context", "CoreMedia Context", "CoreMedia context to use", G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (gobject_class, PROP_HANDLE, g_param_spec_int ("handle", "Handle", "MIO handle of this video capture device", G_MININT, G_MAXINT, -1, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (gobject_class, PROP_UID, g_param_spec_string ("uid", "Unique ID", "Unique ID of this video capture device", NULL, G_PARAM_READABLE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (gobject_class, PROP_NAME, g_param_spec_string ("name", "Device Name", "Name of this video capture device", NULL, G_PARAM_READABLE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (gobject_class, PROP_TRANSPORT, g_param_spec_uint ("transport", "Transport", "Transport type of this video capture device", 0, G_MAXUINT, 0, G_PARAM_READABLE | G_PARAM_STATIC_STRINGS)); }
/*! \brief GType class initialiser for GschemDialog * * \par Function Description * GType class initialiser for GschemDialog. We override our parent * virtual class methods as needed and register our GObject properties. * * \param [in] klass The GschemDialogClass we are initialising */ static void gschem_dialog_class_init (GschemDialogClass *klass) { GObjectClass *gobject_class = G_OBJECT_CLASS (klass); GtkWidgetClass *gtkwidget_class = GTK_WIDGET_CLASS (klass); klass->geometry_save = geometry_save; klass->geometry_restore = geometry_restore; gtkwidget_class->show = show_handler; gtkwidget_class->unmap = unmap_handler; gobject_class->finalize = gschem_dialog_finalize; gobject_class->set_property = gschem_dialog_set_property; gobject_class->get_property = gschem_dialog_get_property; gschem_dialog_signals[ GEOMETRY_SAVE ] = g_signal_new ("geometry-save", G_OBJECT_CLASS_TYPE( gobject_class ), G_SIGNAL_RUN_FIRST, /*signal_flags */ G_STRUCT_OFFSET( GschemDialogClass, geometry_save ), NULL, /* accumulator */ NULL, /* accu_data */ gschem_marshal_VOID__POINTER_STRING, G_TYPE_NONE, 2, /* n_params */ G_TYPE_POINTER, G_TYPE_STRING ); gschem_dialog_signals[ GEOMETRY_RESTORE ] = g_signal_new ("geometry-restore", G_OBJECT_CLASS_TYPE( gobject_class ), G_SIGNAL_RUN_FIRST, /*signal_flags */ G_STRUCT_OFFSET( GschemDialogClass, geometry_restore ), NULL, /* accumulator */ NULL, /* accu_data */ gschem_marshal_VOID__POINTER_STRING, G_TYPE_NONE, 2, /* n_params */ G_TYPE_POINTER, G_TYPE_STRING ); g_object_class_install_property ( gobject_class, PROP_SETTINGS_NAME, g_param_spec_string ("settings-name", "", "", NULL, (GParamFlags) (G_PARAM_CONSTRUCT_ONLY | G_PARAM_READWRITE))); g_object_class_install_property ( gobject_class, PROP_GSCHEM_TOPLEVEL, g_param_spec_pointer ("gschem-toplevel", "", "", (GParamFlags) (G_PARAM_CONSTRUCT_ONLY | G_PARAM_READWRITE))); }
static void fcitx_wizard_candidate_widget_class_init(FcitxWizardCandidateWidgetClass *klass) { GObjectClass *gobject_class = G_OBJECT_CLASS(klass); gobject_class->set_property = fcitx_wizard_candidate_widget_set_property; gobject_class->dispose = fcitx_wizard_candidate_widget_dispose; gobject_class->constructor = fcitx_wizard_candidate_widget_constructor; g_object_class_install_property(gobject_class, PROP_CONFIG, g_param_spec_pointer("config", "", "", G_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY)); g_object_class_install_property(gobject_class, PROP_CLASSIC_UI, g_param_spec_pointer("classic_ui", "", "", G_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY)); }
static void as_category_class_init (AsCategoryClass * klass) { as_category_parent_class = g_type_class_peek_parent (klass); g_type_class_add_private (klass, sizeof (AsCategoryPrivate)); G_OBJECT_CLASS (klass)->get_property = as_category_get_property; G_OBJECT_CLASS (klass)->set_property = as_category_set_property; G_OBJECT_CLASS (klass)->finalize = as_category_finalize; g_object_class_install_property (G_OBJECT_CLASS (klass), AS_CATEGORY_NAME, g_param_spec_string ("name", "name", "name", NULL, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE)); g_object_class_install_property (G_OBJECT_CLASS (klass), AS_CATEGORY_SUMMARY, g_param_spec_string ("summary", "summary", "summary", NULL, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE)); g_object_class_install_property (G_OBJECT_CLASS (klass), AS_CATEGORY_ICON, g_param_spec_string ("icon", "icon", "icon", NULL, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE)); g_object_class_install_property (G_OBJECT_CLASS (klass), AS_CATEGORY_DIRECTORY, g_param_spec_string ("directory", "directory", "directory", NULL, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE)); g_object_class_install_property (G_OBJECT_CLASS (klass), AS_CATEGORY_INCLUDED, g_param_spec_pointer ("included", "included", "included", G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE)); g_object_class_install_property (G_OBJECT_CLASS (klass), AS_CATEGORY_EXCLUDED, g_param_spec_pointer ("excluded", "excluded", "excluded", G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE)); g_object_class_install_property (G_OBJECT_CLASS (klass), AS_CATEGORY_LEVEL, g_param_spec_int ("level", "level", "level", G_MININT, G_MAXINT, 0, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE)); g_object_class_install_property (G_OBJECT_CLASS (klass), AS_CATEGORY_SUBCATEGORIES, g_param_spec_pointer ("subcategories", "subcategories", "subcategories", G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE)); }
static void rb_mtp_source_class_init (RBMtpSourceClass *klass) { GObjectClass *object_class = G_OBJECT_CLASS (klass); RBDisplayPageClass *page_class = RB_DISPLAY_PAGE_CLASS (klass); RBSourceClass *source_class = RB_SOURCE_CLASS (klass); RBMediaPlayerSourceClass *mps_class = RB_MEDIA_PLAYER_SOURCE_CLASS (klass); object_class->constructed = rb_mtp_source_constructed; object_class->dispose = rb_mtp_source_dispose; object_class->finalize = rb_mtp_source_finalize; object_class->set_property = rb_mtp_source_set_property; object_class->get_property = rb_mtp_source_get_property; page_class->selected = impl_selected; source_class->can_delete = (RBSourceFeatureFunc) rb_true_function; source_class->can_paste = (RBSourceFeatureFunc) rb_true_function; source_class->can_move_to_trash = (RBSourceFeatureFunc) rb_false_function; source_class->can_copy = (RBSourceFeatureFunc) rb_true_function; source_class->can_cut = (RBSourceFeatureFunc) rb_false_function; source_class->delete_selected = impl_delete_selected; source_class->paste = impl_paste; source_class->uri_is_source = impl_uri_is_source; mps_class->get_entries = impl_get_entries; mps_class->get_capacity = impl_get_capacity; mps_class->get_free_space = impl_get_free_space; mps_class->delete_entries = impl_delete_entries; mps_class->show_properties = impl_show_properties; g_object_class_install_property (object_class, PROP_RAW_DEVICE, g_param_spec_pointer ("raw-device", "raw-device", "libmtp raw device", G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY)); #if defined(HAVE_GUDEV) g_object_class_install_property (object_class, PROP_UDEV_DEVICE, g_param_spec_object ("udev-device", "udev-device", "GUdev device object", G_UDEV_TYPE_DEVICE, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY)); #else g_object_class_install_property (object_class, PROP_UDI, g_param_spec_string ("udi", "udi", "udi", NULL, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY)); #endif g_object_class_override_property (object_class, PROP_DEVICE_SERIAL, "serial"); g_type_class_add_private (klass, sizeof (RBMtpSourcePrivate)); }
static void gst_glimage_sink_class_init (GstGLImageSinkClass * klass) { GObjectClass *gobject_class; GstElementClass *gstelement_class; GstBaseSinkClass *gstbasesink_class; gobject_class = (GObjectClass *) klass; gstelement_class = (GstElementClass *) klass; gstbasesink_class = (GstBaseSinkClass *) klass; gobject_class->set_property = gst_glimage_sink_set_property; gobject_class->get_property = gst_glimage_sink_get_property; g_object_class_install_property (gobject_class, ARG_DISPLAY, g_param_spec_string ("display", "Display", "Display name", NULL, G_PARAM_READWRITE)); g_object_class_install_property (gobject_class, PROP_CLIENT_RESHAPE_CALLBACK, g_param_spec_pointer ("client_reshape_callback", "Client reshape callback", "Define a custom reshape callback in a client code", G_PARAM_WRITABLE)); g_object_class_install_property (gobject_class, PROP_CLIENT_DRAW_CALLBACK, g_param_spec_pointer ("client_draw_callback", "Client draw callback", "Define a custom draw callback in a client code", G_PARAM_WRITABLE)); g_object_class_install_property (gobject_class, PROP_FORCE_ASPECT_RATIO, g_param_spec_boolean ("force-aspect-ratio", "Force aspect ratio", "When enabled, scaling will respect original aspect ratio", FALSE, G_PARAM_READWRITE)); gobject_class->finalize = gst_glimage_sink_finalize; gstelement_class->change_state = gst_glimage_sink_change_state; gstbasesink_class->set_caps = gst_glimage_sink_set_caps; gstbasesink_class->get_times = gst_glimage_sink_get_times; gstbasesink_class->preroll = gst_glimage_sink_render; gstbasesink_class->render = gst_glimage_sink_render; gstbasesink_class->start = gst_glimage_sink_start; gstbasesink_class->stop = gst_glimage_sink_stop; }
static void yui_check_button_class_init (YuiCheckButtonClass * klass) { GParamSpec * param; G_OBJECT_CLASS(klass)->set_property = yui_check_button_set_property; G_OBJECT_CLASS(klass)->get_property = yui_check_button_get_property; param = g_param_spec_pointer("key-file", 0, 0, G_PARAM_READABLE | G_PARAM_WRITABLE); g_object_class_install_property(G_OBJECT_CLASS(klass), PROP_KEYFILE, param); param = g_param_spec_pointer("group", 0, 0, G_PARAM_READABLE | G_PARAM_WRITABLE); g_object_class_install_property(G_OBJECT_CLASS(klass), PROP_GROUP, param); param = g_param_spec_pointer("key", 0, 0, G_PARAM_READABLE | G_PARAM_WRITABLE); g_object_class_install_property(G_OBJECT_CLASS(klass), PROP_KEY, param); yui_check_button_signals[YUI_CHECK_BUTTON_CHANGED_SIGNAL] = g_signal_new ("changed", G_TYPE_FROM_CLASS(klass), G_SIGNAL_RUN_FIRST | G_SIGNAL_ACTION, G_STRUCT_OFFSET(YuiCheckButtonClass, yui_check_button_change), NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0); }
static void aisleriot_slot_renderer_class_init (AisleriotSlotRendererClass *klass) { GObjectClass *gobject_class = (GObjectClass *) klass; ClutterActorClass *actor_class = (ClutterActorClass *) klass; GParamSpec *pspec; gobject_class->dispose = aisleriot_slot_renderer_dispose; gobject_class->finalize = aisleriot_slot_renderer_finalize; gobject_class->set_property = aisleriot_slot_renderer_set_property; gobject_class->get_property = aisleriot_slot_renderer_get_property; actor_class->paint = aisleriot_slot_renderer_paint; g_object_class_install_property (gobject_class, PROP_STYLE, g_param_spec_object ("style", NULL, NULL, AR_TYPE_STYLE, G_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS)); pspec = g_param_spec_object ("cache", NULL, NULL, AR_TYPE_CARD_TEXTURES_CACHE, G_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS); g_object_class_install_property (gobject_class, PROP_CACHE, pspec); pspec = g_param_spec_pointer ("slot", NULL, NULL, G_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS); g_object_class_install_property (gobject_class, PROP_SLOT, pspec); pspec = g_param_spec_int ("highlight", NULL, NULL, -1, G_MAXINT, G_MAXINT, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS); g_object_class_install_property (gobject_class, PROP_HIGHLIGHT, pspec); pspec = g_param_spec_int ("revealed-card", NULL, NULL, -1, G_MAXINT, -1, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS); g_object_class_install_property (gobject_class, PROP_REVEALED_CARD, pspec); pspec = g_param_spec_object ("animation-layer", NULL, NULL, CLUTTER_TYPE_CONTAINER, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS); g_object_class_install_property (gobject_class, PROP_ANIMATION_LAYER, pspec); g_type_class_add_private (klass, sizeof (AisleriotSlotRendererPrivate)); }