static void soy_net__networkthread_class_init (soynet_NetworkThreadClass * klass) { soy_net__networkthread_parent_class = g_type_class_peek_parent (klass); g_type_class_add_private (klass, sizeof (soynet_NetworkThreadPrivate)); G_OBJECT_CLASS (klass)->constructor = soy_net__networkthread_constructor; G_OBJECT_CLASS (klass)->finalize = soy_net__networkthread_finalize; }
static void ease_image_actor_class_init (EaseImageActorClass * klass) { ease_image_actor_parent_class = g_type_class_peek_parent (klass); }
static void gail_canvas_item_initialize (AtkObject *obj, gpointer data) { ATK_OBJECT_CLASS (parent_class)->initialize (obj, data); g_object_set_data (G_OBJECT (obj), "atk-component-layer", GINT_TO_POINTER (ATK_LAYER_MDI)); } static void gail_canvas_item_class_init (GailCanvasItemClass *klass) { AtkObjectClass *class = ATK_OBJECT_CLASS (klass); parent_class = g_type_class_peek_parent (klass); class->get_parent = gail_canvas_item_get_parent; class->get_index_in_parent = gail_canvas_item_get_index_in_parent; class->ref_state_set = gail_canvas_item_ref_state_set; class->initialize = gail_canvas_item_initialize; } static AtkObject * gail_canvas_item_get_parent (AtkObject *obj) { AtkGObjectAccessible *atk_gobj; GObject *g_obj; MateCanvasItem *item; g_return_val_if_fail (GAIL_IS_CANVAS_ITEM (obj), NULL);
static void inf_user_class_init(gpointer g_class, gpointer class_data) { GObjectClass* object_class; InfUserClass* user_class; object_class = G_OBJECT_CLASS(g_class); user_class = INF_USER_CLASS(g_class); parent_class = G_OBJECT_CLASS(g_type_class_peek_parent(g_class)); g_type_class_add_private(g_class, sizeof(InfUserPrivate)); object_class->dispose = inf_user_dispose; object_class->finalize = inf_user_finalize; object_class->set_property = inf_user_set_property; object_class->get_property = inf_user_get_property; user_class->set_status = inf_user_set_status_handler; g_object_class_install_property( object_class, PROP_ID, g_param_spec_uint( "id", "User ID", "A Unique User ID", 0, G_MAXUINT, 0, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY ) ); g_object_class_install_property( object_class, PROP_NAME, g_param_spec_string( "name", "User Name", "The Name with which a user joined a session. Most servers " "ensure that it is unique.", "", G_PARAM_READWRITE ) ); g_object_class_install_property( object_class, PROP_STATUS, g_param_spec_enum( "status", "User Status", "Whether the user is currently available or not.", INF_TYPE_USER_STATUS, INF_USER_UNAVAILABLE, G_PARAM_READWRITE ) ); g_object_class_install_property( object_class, PROP_FLAGS, g_param_spec_flags( "flags", "Flags", "Flags the user currently has", INF_TYPE_USER_FLAGS, 0, G_PARAM_READWRITE ) ); g_object_class_install_property( object_class, PROP_CONNECTION, g_param_spec_object( "connection", "Connection", "Connection to the user", INF_TYPE_XML_CONNECTION, G_PARAM_READWRITE ) ); /** * InfUser::set-status: * @user: The #InfUser that changes status. * @status: The new user status. * * This signal is emitted whenever the user's status changes. This is * basically the same as a notification for the #InfUser:status property, * but it allows to access the previous user status when connecting before * the default signal handler. */ user_signals[SET_STATUS] = g_signal_new( "set-status", G_OBJECT_CLASS_TYPE(object_class), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET(InfUserClass, set_status), NULL, NULL, inf_marshal_VOID__ENUM, G_TYPE_NONE, 1, INF_TYPE_USER_STATUS ); }
/****************************************************************************** * gst_tiaudenc1_class_init_trampoline * Boiler-plate function auto-generated by "make_element" script. ******************************************************************************/ static void gst_tiaudenc1_class_init_trampoline(gpointer g_class, gpointer data) { parent_class = (GstElementClass*) g_type_class_peek_parent(g_class); gst_tiaudenc1_class_init((GstTIAudenc1Class*)g_class); }
static void graph_media_modelos_sentimiento_class_init (GraphMediaModelosSentimientoClass * klass) { graph_media_modelos_sentimiento_parent_class = g_type_class_peek_parent (klass); ((GraphMediaModelosSentimientoClass *) klass)->finalize = graph_media_modelos_sentimiento_finalize; }
void ags_recall_ladspa_class_init(AgsRecallLadspaClass *recall_ladspa) { GObjectClass *gobject; GParamSpec *param_spec; ags_recall_ladspa_parent_class = g_type_class_peek_parent(recall_ladspa); /* GObjectClass */ gobject = (GObjectClass *) recall_ladspa; gobject->set_property = ags_recall_ladspa_set_property; gobject->get_property = ags_recall_ladspa_get_property; gobject->finalize = ags_recall_ladspa_finalize; /* properties */ /** * AgsRecallLadspa:filename: * * The plugins filename. * * Since: 0.4.2 */ param_spec = g_param_spec_string("filename\0", "the object file\0", "The filename as string of object file\0", NULL, G_PARAM_READABLE | G_PARAM_WRITABLE); g_object_class_install_property(gobject, PROP_FILENAME, param_spec); /** * AgsRecallLadspa:effect: * * The effect's name. * * Since: 0.4.2 */ param_spec = g_param_spec_string("effect\0", "the effect\0", "The effect's string representation\0", NULL, G_PARAM_READABLE | G_PARAM_WRITABLE); g_object_class_install_property(gobject, PROP_EFFECT, param_spec); /** * AgsRecallLadspa:index: * * The effect's index. * * Since: 0.4.2 */ param_spec = g_param_spec_ulong("index\0", "index of effect\0", "The numerical index of effect\0", 0, 65535, 0, G_PARAM_READABLE | G_PARAM_WRITABLE); g_object_class_install_property(gobject, PROP_INDEX, param_spec); }
static void gtk_mate_matcher_class_init (GtkMateMatcherClass * klass) { gtk_mate_matcher_parent_class = g_type_class_peek_parent (klass); G_OBJECT_CLASS (klass)->finalize = gtk_mate_matcher_finalize; }
void ags_count_beats_audio_run_class_init(AgsCountBeatsAudioRunClass *count_beats_audio_run) { GObjectClass *gobject; AgsRecallClass *recall; GParamSpec *param_spec; ags_count_beats_audio_run_parent_class = g_type_class_peek_parent(count_beats_audio_run); /* GObjectClass */ gobject = (GObjectClass *) count_beats_audio_run; gobject->set_property = ags_count_beats_audio_run_set_property; gobject->get_property = ags_count_beats_audio_run_get_property; gobject->finalize = ags_count_beats_audio_run_finalize; /* properties */ /** * AgsCountBeatsAudioRun:delay-audio-run: * * The assigned #AgsDelayAudioRun dependency. * * Since: 0.4.0 */ param_spec = g_param_spec_object("delay-audio-run\0", "assigned AgsDelayAudioRun\0", "The AgsDelayAudioRun which emits sequencer_alloc_output sequencer_count signal\0", AGS_TYPE_DELAY_AUDIO_RUN, G_PARAM_READABLE | G_PARAM_WRITABLE); g_object_class_install_property(gobject, PROP_DELAY_AUDIO_RUN, param_spec); /** * AgsCountBeatsAudioRun:notation-counter: * * The notation counter. * * Since: 0.4.0 */ param_spec = g_param_spec_uint("notation-counter\0", "notation counter indicates offset\0", "The notation counter indicates the offset in the notation\0", 0, 65535, //FIXME:JK: figure out how many beats this can really have 0, G_PARAM_READABLE | G_PARAM_WRITABLE); g_object_class_install_property(gobject, PROP_NOTATION_COUNTER, param_spec); /** * AgsCountBeatsAudioRun:sequencer-counter: * * The sequencer counter. * * Since: 0.4.0 */ param_spec = g_param_spec_uint("sequencer-counter\0", "sequencer counter indicates offset\0", "The sequenecer counter indicates the offset in the sequencer\0", 0, 65535, //FIXME:JK: figure out how many beats this can really have 0, G_PARAM_READABLE | G_PARAM_WRITABLE); g_object_class_install_property(gobject, PROP_SEQUENCER_COUNTER, param_spec); /* AgsRecallClass */ recall = (AgsRecallClass *) count_beats_audio_run; recall->resolve_dependencies = ags_count_beats_audio_run_resolve_dependencies; recall->duplicate = ags_count_beats_audio_run_duplicate; recall->notify_dependency = ags_count_beats_audio_run_notify_dependency; recall->run_init_pre = ags_count_beats_audio_run_run_init_pre; recall->done = ags_count_beats_audio_run_done; /* AgsCountBeatsAudioRunClass */ count_beats_audio_run->notation_start = NULL; count_beats_audio_run->notation_loop = NULL; count_beats_audio_run->notation_stop = NULL; count_beats_audio_run->sequencer_start = NULL; count_beats_audio_run->sequencer_loop = NULL; count_beats_audio_run->sequencer_stop = NULL; /* signals */ /** * AgsCountBeatsAudioRun::notation-start: * @count_beats_audio_run: the object * @run_order: the nth run * * The ::notation-start signal is emited while starting notation playback. */ count_beats_audio_run_signals[NOTATION_START] = g_signal_new("notation-start\0", G_TYPE_FROM_CLASS(count_beats_audio_run), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET(AgsCountBeatsAudioRunClass, notation_start), NULL, NULL, g_cclosure_marshal_VOID__UINT, G_TYPE_NONE, 1, G_TYPE_UINT); /** * AgsCountBeatsAudioRun::notation-loop: * @count_beats_audio_run: the object * @run_order: the nth run * * The ::notation-loop signal is emited while looping notation playback. */ count_beats_audio_run_signals[NOTATION_LOOP] = g_signal_new("notation-loop\0", G_TYPE_FROM_CLASS(count_beats_audio_run), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET(AgsCountBeatsAudioRunClass, notation_loop), NULL, NULL, g_cclosure_marshal_VOID__UINT, G_TYPE_NONE, 1, G_TYPE_UINT); /** * AgsCountBeatsAudioRun::notation-stop: * @count_beats_audio_run: the object * @run_order: the nth run * * The ::notation-loop signal is emited while stoping notation playback. */ count_beats_audio_run_signals[NOTATION_STOP] = g_signal_new("notation-stop\0", G_TYPE_FROM_CLASS(count_beats_audio_run), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET(AgsCountBeatsAudioRunClass, notation_stop), NULL, NULL, g_cclosure_marshal_VOID__UINT, G_TYPE_NONE, 1, G_TYPE_UINT); /** * AgsCountBeatsAudioRun::sequencer-start: * @count_beats_audio_run: the object * @run_order: the nth run * * The ::sequencer-start signal is emited while starting sequencer playback. */ count_beats_audio_run_signals[SEQUENCER_START] = g_signal_new("sequencer-start\0", G_TYPE_FROM_CLASS(count_beats_audio_run), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET(AgsCountBeatsAudioRunClass, sequencer_start), NULL, NULL, g_cclosure_marshal_VOID__UINT, G_TYPE_NONE, 1, G_TYPE_UINT); /** * AgsCountBeatsAudioRun::sequencer-loop: * @count_beats_audio_run: the object * @run_order: the nth run * * The ::sequencer-loop signal is emited while looping sequencer playback. */ count_beats_audio_run_signals[SEQUENCER_LOOP] = g_signal_new("sequencer-loop\0", G_TYPE_FROM_CLASS(count_beats_audio_run), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET(AgsCountBeatsAudioRunClass, sequencer_loop), NULL, NULL, g_cclosure_marshal_VOID__UINT, G_TYPE_NONE, 1, G_TYPE_UINT); /** * AgsCountBeatsAudioRun::sequencer-stop: * @count_beats_audio_run: the object * @run_order: the nth run * * The ::sequencer-loop signal is emited while stoping sequencer playback. */ count_beats_audio_run_signals[SEQUENCER_STOP] = g_signal_new("sequencer-stop\0", G_TYPE_FROM_CLASS(count_beats_audio_run), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET(AgsCountBeatsAudioRunClass, sequencer_stop), NULL, NULL, g_cclosure_marshal_VOID__UINT, G_TYPE_NONE, 1, G_TYPE_UINT); }
static void facebook_photo_class_init (FacebookPhotoClass *klass) { facebook_photo_parent_class = g_type_class_peek_parent (klass); G_OBJECT_CLASS (klass)->finalize = facebook_photo_finalize; }
static void fs_stream_transmitter_class_init (FsStreamTransmitterClass *klass) { GObjectClass *gobject_class; gobject_class = (GObjectClass *) klass; parent_class = g_type_class_peek_parent (klass); gobject_class->set_property = fs_stream_transmitter_set_property; gobject_class->get_property = fs_stream_transmitter_get_property; /** * FsStreamTransmitter:sending: * * A network source #GstElement to be used by the #FsSession * */ g_object_class_install_property (gobject_class, PROP_SENDING, g_param_spec_boolean ("sending", "Whether to send from this transmitter", "If set to FALSE, the transmitter will stop sending to this person", TRUE, G_PARAM_READWRITE)); /** * FsStreamTransmitter:preferred-local-candidate: * * The list of preferred local candidates for this stream * It is a #GList of #FsCandidates * */ g_object_class_install_property (gobject_class, PROP_PREFERRED_LOCAL_CANDIDATES, g_param_spec_boxed ("preferred-local-candidates", "The preferred candidates", "A GList of FsCandidates", FS_TYPE_CANDIDATE_LIST, G_PARAM_CONSTRUCT_ONLY | G_PARAM_READWRITE)); /** * FsStreamTransmitter::error: * @self: #FsStreamTransmitter that emitted the signal * @errorno: The number of the error * @error_msg: Error message to be displayed to user * @debug_msg: Debugging error message * * This signal is emitted in any error condition * */ signals[ERROR_SIGNAL] = g_signal_new ("error", G_TYPE_FROM_CLASS (klass), G_SIGNAL_RUN_LAST, 0, NULL, NULL, _fs_marshal_VOID__ENUM_STRING_STRING, G_TYPE_NONE, 3, FS_TYPE_ERROR, G_TYPE_STRING, G_TYPE_STRING); /** * FsStreamTransmitter::new-active-candidate-pair: * @self: #FsStreamTransmitter that emitted the signal * @local_candidate: #FsCandidate of the local candidate being used * @remote_candidate: #FsCandidate of the remote candidate being used * * This signal is emitted when there is a new active chandidate pair that has * been established. This is specially useful for ICE where the active * candidate pair can change automatically due to network conditions. The user * must not modify the candidates and must copy them if he wants to use them * outside the callback scope. * */ signals[NEW_ACTIVE_CANDIDATE_PAIR] = g_signal_new ("new-active-candidate-pair", G_TYPE_FROM_CLASS (klass), G_SIGNAL_RUN_LAST, 0, NULL, NULL, _fs_marshal_VOID__BOXED_BOXED, G_TYPE_NONE, 2, FS_TYPE_CANDIDATE, FS_TYPE_CANDIDATE); /** * FsStreamTransmitter::new-local-candidate: * @self: #FsStream that emitted the signal * @local_candidate: #FsCandidate of the local candidate * * This signal is emitted when a new local candidate is discovered. * */ signals[NEW_LOCAL_CANDIDATE] = g_signal_new ("new-local-candidate", G_TYPE_FROM_CLASS (klass), G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__BOXED, G_TYPE_NONE, 1, FS_TYPE_CANDIDATE); /** * FsStreamTransmitter::local-candidates-prepared: * @self: #FsStreamTransmitter that emitted the signal * * This signal is emitted when all local candidates have been * prepared, an ICE implementation would send its SDP offer or answer. * */ signals[LOCAL_CANDIDATES_PREPARED] = g_signal_new ("local-candidates-prepared", G_TYPE_FROM_CLASS (klass), G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0); gobject_class->dispose = fs_stream_transmitter_dispose; gobject_class->finalize = fs_stream_transmitter_finalize; g_type_class_add_private (klass, sizeof (FsStreamTransmitterPrivate)); }
static void steadyflow_ui_gtk_builder_dialog_class_init (SteadyflowUIGtkBuilderDialogClass * klass) { steadyflow_ui_gtk_builder_dialog_parent_class = g_type_class_peek_parent (klass); g_type_class_add_private (klass, sizeof (SteadyflowUIGtkBuilderDialogPrivate)); G_OBJECT_CLASS (klass)->finalize = steadyflow_ui_gtk_builder_dialog_finalize; }
static void gst_xvidenc_class_init (GstXvidEncClass * klass) { GstElementClass *gstelement_class; GObjectClass *gobject_class; GParamSpec *pspec; gobject_class = G_OBJECT_CLASS (klass); gstelement_class = GST_ELEMENT_CLASS (klass); parent_class = g_type_class_peek_parent (klass); GST_DEBUG_CATEGORY_INIT (xvidenc_debug, "xvidenc", 0, "XviD encoder"); gobject_class->finalize = gst_xvidenc_finalize; gobject_class->set_property = gst_xvidenc_set_property; gobject_class->get_property = gst_xvidenc_get_property; /* prop handling */ xvidenc_prop_count = 0; xvidenc_pspec_quark = g_quark_from_static_string ("xvid-enc-param-spec-data"); pspec = g_param_spec_enum ("profile", "Profile", "XviD/MPEG-4 encoding profile", GST_TYPE_XVIDENC_PROFILE, 0, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS); gst_xvidenc_add_pspec (gobject_class, pspec, profile); pspec = g_param_spec_enum ("quant-type", "Quantizer Type", "Quantizer type", GST_TYPE_XVIDENC_QUANT_TYPE, 0, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS); gst_xvidenc_add_pspec (gobject_class, pspec, quant_type); pspec = g_param_spec_enum ("pass", "Encoding pass/type", "Encoding pass/type", GST_TYPE_XVIDENC_PASS, XVIDENC_CBR, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS); gst_xvidenc_add_pspec (gobject_class, pspec, pass); pspec = g_param_spec_int ("bitrate", "Bitrate", "[CBR|PASS2] Target video bitrate (bps)", 0, G_MAXINT, 1800000, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS); gst_xvidenc_add_pspec (gobject_class, pspec, bitrate); pspec = g_param_spec_int ("quantizer", "Quantizer", "[QUANT] Quantizer to apply for constant quantizer mode", 2, 31, 2, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS); gst_xvidenc_add_pspec (gobject_class, pspec, quant); pspec = g_param_spec_string ("statsfile", "Statistics Filename", "[PASS1|PASS2] Filename to store data for 2-pass encoding", "xvid-stats.log", G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS); gst_xvidenc_add_pspec (gobject_class, pspec, filename); pspec = g_param_spec_int ("max-key-interval", "Max. Key Interval", "Maximum number of frames between two keyframes (< 0 is in sec)", -100, G_MAXINT, -10, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS); gst_xvidenc_add_pspec (gobject_class, pspec, max_key_interval); pspec = g_param_spec_boolean ("closed-gop", "Closed GOP", "Closed GOP", FALSE, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS); gst_xvidenc_add_pspec (gobject_class, pspec, closed_gop); pspec = g_param_spec_int ("motion", "ME Quality", "Quality of Motion Estimation", 0, 6, 6, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS); gst_xvidenc_add_pspec (gobject_class, pspec, motion); pspec = g_param_spec_boolean ("me-chroma", "ME Chroma", "Enable use of Chroma planes for Motion Estimation", TRUE, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS); gst_xvidenc_add_pspec (gobject_class, pspec, me_chroma); pspec = g_param_spec_int ("me-vhq", "ME DCT/Frequency", "Extent in which to use DCT to minimize encoding length", 0, 4, 1, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS); gst_xvidenc_add_pspec (gobject_class, pspec, me_vhq); pspec = g_param_spec_boolean ("me-quarterpel", "ME Quarterpel", "Use quarter pixel precision for motion vector search", FALSE, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS); gst_xvidenc_add_pspec (gobject_class, pspec, me_quarterpel); pspec = g_param_spec_boolean ("lumimasking", "Lumimasking", "Enable lumimasking - apply more compression to dark or bright areas", FALSE, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS); gst_xvidenc_add_pspec (gobject_class, pspec, lumimasking); pspec = g_param_spec_int ("max-bframes", "Max B-Frames", "Maximum B-frames in a row", 0, G_MAXINT, 1, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS); gst_xvidenc_add_pspec (gobject_class, pspec, max_bframes); pspec = g_param_spec_int ("bquant-ratio", "B-quantizer ratio", "Ratio in B-frame quantizer computation", 0, 200, 150, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS); gst_xvidenc_add_pspec (gobject_class, pspec, bquant_ratio); pspec = g_param_spec_int ("bquant-offset", "B-quantizer offset", "Offset in B-frame quantizer computation", 0, 200, 100, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS); gst_xvidenc_add_pspec (gobject_class, pspec, bquant_offset); pspec = g_param_spec_int ("bframe-threshold", "B-Frame Threshold", "Higher threshold yields more chance that B-frame is used", -255, 255, 0, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS); gst_xvidenc_add_pspec (gobject_class, pspec, bframe_threshold); pspec = g_param_spec_boolean ("gmc", "Global Motion Compensation", "Allow generation of Sprite Frames for Pan/Zoom/Rotating images", FALSE, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS); gst_xvidenc_add_pspec (gobject_class, pspec, gmc); pspec = g_param_spec_boolean ("trellis", "Trellis Quantization", "Enable Trellis Quantization", FALSE, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS); gst_xvidenc_add_pspec (gobject_class, pspec, trellis); pspec = g_param_spec_boolean ("interlaced", "Interlaced Material", "Enable for interlaced video material", FALSE, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS); gst_xvidenc_add_pspec (gobject_class, pspec, interlaced); pspec = g_param_spec_boolean ("cartoon", "Cartoon Material", "Adjust thresholds for flat looking cartoons", FALSE, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS); gst_xvidenc_add_pspec (gobject_class, pspec, cartoon); pspec = g_param_spec_boolean ("greyscale", "Disable Chroma", "Do not write chroma data in encoded video", FALSE, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS); gst_xvidenc_add_pspec (gobject_class, pspec, greyscale); pspec = g_param_spec_boolean ("hqacpred", "High quality AC prediction", "Enable high quality AC prediction", TRUE, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS); gst_xvidenc_add_pspec (gobject_class, pspec, hqacpred); pspec = g_param_spec_int ("max-iquant", "Max Quant I-Frames", "Upper bound for I-frame quantization", 0, 31, 31, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS); gst_xvidenc_add_pspec (gobject_class, pspec, max_iquant); pspec = g_param_spec_int ("min-iquant", "Min Quant I-Frames", "Lower bound for I-frame quantization", 0, 31, 2, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS); gst_xvidenc_add_pspec (gobject_class, pspec, min_iquant); pspec = g_param_spec_int ("max-pquant", "Max Quant P-Frames", "Upper bound for P-frame quantization", 0, 31, 31, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS); gst_xvidenc_add_pspec (gobject_class, pspec, max_pquant); pspec = g_param_spec_int ("min-pquant", "Min Quant P-Frames", "Lower bound for P-frame quantization", 0, 31, 2, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS); gst_xvidenc_add_pspec (gobject_class, pspec, min_pquant); pspec = g_param_spec_int ("max-bquant", "Max Quant B-Frames", "Upper bound for B-frame quantization", 0, 31, 31, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS); gst_xvidenc_add_pspec (gobject_class, pspec, max_bquant); pspec = g_param_spec_int ("min-bquant", "Min Quant B-Frames", "Lower bound for B-frame quantization", 0, 31, 2, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS); gst_xvidenc_add_pspec (gobject_class, pspec, min_bquant); pspec = g_param_spec_int ("reaction-delay-factor", "Reaction Delay Factor", "[CBR] Reaction delay factor", -1, 100, -1, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS); gst_xvidenc_add_pspec (gobject_class, pspec, reaction_delay_factor); pspec = g_param_spec_int ("averaging-period", "Averaging Period", "[CBR] Number of frames for which XviD averages bitrate", -1, 100, -1, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS); gst_xvidenc_add_pspec (gobject_class, pspec, averaging_period); pspec = g_param_spec_int ("buffer", "Buffer Size", "[CBR] Size of the video buffers", -1, G_MAXINT, -1, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS); gst_xvidenc_add_pspec (gobject_class, pspec, buffer); pspec = g_param_spec_int ("keyframe-boost", "Keyframe boost", "[PASS2] Bitrate boost for keyframes", 0, 100, 0, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS); gst_xvidenc_add_pspec (gobject_class, pspec, keyframe_boost); pspec = g_param_spec_int ("curve-compression-high", "Curve Compression High", "[PASS2] Shrink factor for upper part of bitrate curve", 0, 100, 0, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS); gst_xvidenc_add_pspec (gobject_class, pspec, curve_compression_high); pspec = g_param_spec_int ("curve-compression-low", "Curve Compression Low", "[PASS2] Growing factor for lower part of bitrate curve", 0, 100, 0, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS); gst_xvidenc_add_pspec (gobject_class, pspec, curve_compression_low); pspec = g_param_spec_int ("flow-control-strength", "Flow Control Strength", "[PASS2] Overflow control strength per frame", -1, 100, 5, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS); gst_xvidenc_add_pspec (gobject_class, pspec, overflow_control_strength); pspec = g_param_spec_int ("max-overflow-improvement", "Max Overflow Improvement", "[PASS2] Amount in % that flow control can increase frame size compared to ideal curve", -1, 100, 5, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS); gst_xvidenc_add_pspec (gobject_class, pspec, max_overflow_improvement); pspec = g_param_spec_int ("max-overflow-degradation", "Max Overflow Degradation", "[PASS2] Amount in % that flow control can decrease frame size compared to ideal curve", -1, 100, 5, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS); gst_xvidenc_add_pspec (gobject_class, pspec, max_overflow_degradation); pspec = g_param_spec_int ("keyframe-reduction", "Keyframe Reduction", "[PASS2] Keyframe size reduction in % of those within threshold", -1, 100, 20, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS); gst_xvidenc_add_pspec (gobject_class, pspec, kfreduction); pspec = g_param_spec_int ("keyframe-threshold", "Keyframe Threshold", "[PASS2] Distance between keyframes not to be subject to reduction", -1, 100, 1, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS); gst_xvidenc_add_pspec (gobject_class, pspec, kfthreshold); pspec = g_param_spec_int ("container-frame-overhead", "Container Frame Overhead", "[PASS2] Average container overhead per frame", -1, 100, -1, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS); gst_xvidenc_add_pspec (gobject_class, pspec, container_frame_overhead); gstelement_class->change_state = GST_DEBUG_FUNCPTR (gst_xvidenc_change_state); }
static void docker_gui_class_init (DockerGuiClass * klass) { docker_gui_parent_class = g_type_class_peek_parent (klass); }
static void matecomponent_control_class_init (MateComponentControlClass *klass) { GObjectClass *object_class = (GObjectClass *)klass; MateComponentObjectClass *matecomponent_object_class = (MateComponentObjectClass *)klass; POA_MateComponent_Control__epv *epv; matecomponent_control_parent_class = g_type_class_peek_parent (klass); control_signals [PLUG_CREATED] = g_signal_new ("plug_created", G_TYPE_FROM_CLASS (object_class), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (MateComponentControlClass, plug_created), NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0); control_signals [DISCONNECTED] = g_signal_new ("disconnected", G_TYPE_FROM_CLASS (object_class), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (MateComponentControlClass, disconnected), NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0); control_signals [SET_FRAME] = g_signal_new ("set_frame", G_TYPE_FROM_CLASS (object_class), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (MateComponentControlClass, set_frame), NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0); control_signals [ACTIVATE] = g_signal_new ("activate", G_TYPE_FROM_CLASS (object_class), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (MateComponentControlClass, activate), NULL, NULL, g_cclosure_marshal_VOID__BOOLEAN, G_TYPE_NONE, 1, G_TYPE_BOOLEAN); object_class->finalize = matecomponent_control_finalize; matecomponent_object_class->destroy = matecomponent_control_destroy; epv = &klass->epv; epv->getProperties = impl_MateComponent_Control_getProperties; epv->getDesiredSize = impl_MateComponent_Control_getDesiredSize; epv->getAccessible = NULL; epv->getWindowId = impl_MateComponent_Control_getWindowId; epv->getPopupContainer = impl_MateComponent_Control_getPopupContainer; epv->setFrame = impl_MateComponent_Control_setFrame; epv->setSize = impl_MateComponent_Control_setSize; epv->setState = impl_MateComponent_Control_setState; epv->activate = impl_MateComponent_Control_activate; epv->focus = impl_MateComponent_Control_focus; }
static void egg_cell_renderer_keys_class_init (EggCellRendererKeysClass *cell_keys_class) { GObjectClass *object_class; GtkCellRendererClass *cell_renderer_class; object_class = G_OBJECT_CLASS (cell_keys_class); cell_renderer_class = GTK_CELL_RENDERER_CLASS (cell_keys_class); parent_class = g_type_class_peek_parent (object_class); GTK_CELL_RENDERER_CLASS (cell_keys_class)->start_editing = egg_cell_renderer_keys_start_editing; object_class->set_property = egg_cell_renderer_keys_set_property; object_class->get_property = egg_cell_renderer_keys_get_property; cell_renderer_class->get_size = egg_cell_renderer_keys_get_size; object_class->finalize = egg_cell_renderer_keys_finalize; /* FIXME if this gets moved to a real library, rename the properties * to match whatever the GTK convention is */ g_object_class_install_property (object_class, PROP_ACCEL_KEY, g_param_spec_uint ("accel_key", _("Accelerator key"), _("Accelerator key"), 0, G_MAXINT, 0, G_PARAM_READABLE | G_PARAM_WRITABLE)); g_object_class_install_property (object_class, PROP_ACCEL_MASK, g_param_spec_flags ("accel_mask", _("Accelerator modifiers"), _("Accelerator modifiers"), GDK_TYPE_MODIFIER_TYPE, 0, G_PARAM_READABLE | G_PARAM_WRITABLE)); g_object_class_install_property (object_class, PROP_KEYCODE, g_param_spec_uint ("keycode", _("Accelerator keycode"), _("Accelerator keycode"), 0, G_MAXINT, 0, G_PARAM_READABLE | G_PARAM_WRITABLE)); /* FIXME: Register the enum when moving to GTK+ */ g_object_class_install_property (object_class, PROP_ACCEL_MODE, g_param_spec_int ("accel_mode", _("Accel Mode"), _("The type of accelerator."), 0, 2, 0, G_PARAM_READABLE | G_PARAM_WRITABLE)); g_signal_new ("accel_edited", EGG_TYPE_CELL_RENDERER_KEYS, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (EggCellRendererKeysClass, accel_edited), NULL, NULL, marshal_VOID__STRING_UINT_FLAGS_UINT, G_TYPE_NONE, 4, G_TYPE_STRING, G_TYPE_UINT, GDK_TYPE_MODIFIER_TYPE, G_TYPE_UINT); g_signal_new ("accel_cleared", EGG_TYPE_CELL_RENDERER_KEYS, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (EggCellRendererKeysClass, accel_cleared), NULL, NULL, g_cclosure_marshal_VOID__STRING, G_TYPE_NONE, 1, G_TYPE_STRING); }
static void thunar_folder_class_init (ThunarFolderClass *klass) { GObjectClass *gobject_class; /* determine the parent type class */ thunar_folder_parent_class = g_type_class_peek_parent (klass); gobject_class = G_OBJECT_CLASS (klass); gobject_class->finalize = thunar_folder_finalize; gobject_class->get_property = thunar_folder_get_property; /** * ThunarFolder::loading: * * Tells whether the contents of the #ThunarFolder are * currently being loaded. **/ g_object_class_install_property (gobject_class, PROP_LOADING, g_param_spec_boolean ("loading", "loading", "loading", FALSE, EXO_PARAM_READABLE)); /** * ThunarFolder::error: * @folder : a #ThunarFolder. * @error : the #GError describing the problem. * * Emitted when the #ThunarFolder fails to completly * load the directory content because of an error. **/ folder_signals[ERROR] = g_signal_new (I_("error"), G_TYPE_FROM_CLASS (gobject_class), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (ThunarFolderClass, error), NULL, NULL, g_cclosure_marshal_VOID__POINTER, G_TYPE_NONE, 1, G_TYPE_POINTER); /** * ThunarFolder::files-added: * * Emitted by the #ThunarFolder whenever new files have * been added to a particular folder. **/ folder_signals[FILES_ADDED] = g_signal_new (I_("files-added"), G_TYPE_FROM_CLASS (gobject_class), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (ThunarFolderClass, files_added), NULL, NULL, g_cclosure_marshal_VOID__POINTER, G_TYPE_NONE, 1, G_TYPE_POINTER); /** * ThunarFolder::files-removed: * * Emitted by the #ThunarFolder whenever a bunch of files * is removed from the folder, which means they are not * necessarily deleted from disk. This can be used to implement * the reload of folders, which take longer to load. **/ folder_signals[FILES_REMOVED] = g_signal_new (I_("files-removed"), G_TYPE_FROM_CLASS (gobject_class), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (ThunarFolderClass, files_removed), NULL, NULL, g_cclosure_marshal_VOID__POINTER, G_TYPE_NONE, 1, G_TYPE_POINTER); }
static void hls_progress_buffer_class_init_trampoline (gpointer g_class, gpointer data) { parent_class = (GstElementClass *)g_type_class_peek_parent (g_class); hls_progress_buffer_class_init ((HLSProgressBufferClass *)g_class); }
void ags_port_class_init(AgsPortClass *port) { GObjectClass *gobject; GParamSpec *param_spec; ags_port_parent_class = g_type_class_peek_parent(port); /* GObjectClass */ gobject = (GObjectClass *) port; gobject->set_property = ags_port_set_property; gobject->get_property = ags_port_get_property; /* properties */ /** * AgsPort:plugin-name: * * The assigned plugin. * * Since: 0.4.0 */ param_spec = g_param_spec_string("plugin-name\0", "plugin-name of port\0", "The plugin-name this port belongs to\0", NULL, G_PARAM_READABLE | G_PARAM_WRITABLE); g_object_class_install_property(gobject, PROP_PLUGIN_NAME, param_spec); /** * AgsPort:specifier: * * The assigned plugin identifier. * * Since: 0.4.0 */ param_spec = g_param_spec_string("specifier\0", "specifier of port\0", "The specifier this port is identified by\0", NULL, G_PARAM_READABLE | G_PARAM_WRITABLE); g_object_class_install_property(gobject, PROP_SPECIFIER, param_spec); /** * AgsPort:control-port: * * The assigned plugin control port. * * Since: 0.4.0 */ param_spec = g_param_spec_string("control-port\0", "control-port of port\0", "The control-port this port is numbered\0", NULL, G_PARAM_READABLE | G_PARAM_WRITABLE); g_object_class_install_property(gobject, PROP_CONTROL_PORT, param_spec); /** * AgsPort:port-value-is-pointer: * * Specify port data as pointer. * * Since: 0.4.0 */ param_spec = g_param_spec_boolean("port-value-is-pointer\0", "port-value-is-pointer indicates if value is a pointer\0", "The port-value-is-pointer indicates if value is a pointer\0", FALSE, G_PARAM_READABLE | G_PARAM_WRITABLE); g_object_class_install_property(gobject, PROP_PORT_VALUE_IS_POINTER, param_spec); /** * AgsPort:port-value-type: * * The port's data type. * * Since: 0.4.0 */ param_spec = g_param_spec_gtype("port-value-type\0", "port-value-type tells you the type of the values\0", "The port-value-type tells you the type of the values\0", G_TYPE_NONE, G_PARAM_READABLE | G_PARAM_WRITABLE); g_object_class_install_property(gobject, PROP_PORT_VALUE_TYPE, param_spec); /** * AgsPort:port-value-size: * * The port's data type size. * * Since: 0.4.0 */ param_spec = g_param_spec_uint("port-value-size\0", "port-value-size is the size of a single entry\0", "The port-value-size is the size of a single entry\0", 1, 8, sizeof(gdouble), G_PARAM_READABLE | G_PARAM_WRITABLE); g_object_class_install_property(gobject, PROP_PORT_VALUE_SIZE, param_spec); /** * AgsPort:port-value-length: * * The port's data array length. * * Since: 0.4.0 */ param_spec = g_param_spec_uint("port-value-length\0", "port-value-length is the array size\0", "The port-value-length is the array size\0", 0, 65535, 1, G_PARAM_READABLE | G_PARAM_WRITABLE); g_object_class_install_property(gobject, PROP_PORT_VALUE_LENGTH, param_spec); /* AgsPortClass */ port->safe_read = ags_port_real_safe_read; port->safe_write = ags_port_real_safe_write; port->safe_get_property = ags_port_real_safe_get_property; port->safe_set_property = ags_port_real_safe_set_property; /* signals */ /** * AgsPort::safe-read: * @port: the object providing safe read * * The ::safe-read signal is emited while doing safe read operation. */ port_signals[SAFE_READ] = g_signal_new("safe-read\0", G_TYPE_FROM_CLASS (port), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (AgsPortClass, safe_read), NULL, NULL, g_cclosure_marshal_VOID__POINTER, G_TYPE_NONE, 1, G_TYPE_POINTER); /** * AgsPort::safe-write: * @port: the object providing safe write * * The ::safe-write signal is emited while doing safe write operation. */ port_signals[SAFE_WRITE] = g_signal_new("safe-write\0", G_TYPE_FROM_CLASS (port), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (AgsPortClass, safe_write), NULL, NULL, g_cclosure_marshal_VOID__POINTER, G_TYPE_NONE, 1, G_TYPE_POINTER); /** * AgsPort::safe-get-property: * @port: the object providing safe get property * * The ::safe-get-property signal is emited while safe get property. */ port_signals[SAFE_GET_PROPERTY] = g_signal_new("safe-get-property\0", G_TYPE_FROM_CLASS (port), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (AgsPortClass, safe_get_property), NULL, NULL, g_cclosure_user_marshal_VOID__STRING_POINTER, G_TYPE_NONE, 2, G_TYPE_STRING, G_TYPE_POINTER); /** * AgsPort::safe-set-property: * @port: the object providing safe set property * * The ::safe-set-property signal is emited while safe set property. */ port_signals[SAFE_SET_PROPERTY] = g_signal_new("safe-set-property\0", G_TYPE_FROM_CLASS (port), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (AgsPortClass, safe_set_property), NULL, NULL, g_cclosure_user_marshal_VOID__STRING_POINTER, G_TYPE_NONE, 2, G_TYPE_STRING, G_TYPE_POINTER); }
static void graph_media_modelos_sentimientos_class_init (GraphMediaModelosSentimientosClass * klass) { graph_media_modelos_sentimientos_parent_class = g_type_class_peek_parent (klass); G_OBJECT_CLASS (klass)->finalize = graph_media_modelos_sentimientos_finalize; }
static void preferences_class_init (PreferencesClass * klass) { preferences_parent_class = g_type_class_peek_parent (klass); g_type_class_add_private (klass, sizeof (PreferencesPrivate)); G_OBJECT_CLASS (klass)->finalize = preferences_finalize; g_signal_new ("value_changed", TYPE_PREFERENCES, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_user_marshal_VOID__STRING_VARIANT, G_TYPE_NONE, 2, G_TYPE_STRING, G_TYPE_VARIANT); }
void ags_level_box_class_init(AgsLevelBoxClass *level_box) { GObjectClass *gobject; GtkWidgetClass *widget; GtkContainerClass *container; GParamSpec *param_spec; ags_level_box_parent_class = g_type_class_peek_parent(level_box); /* GObjectClass */ gobject = (GObjectClass *) level_box; gobject->set_property = ags_level_box_set_property; gobject->get_property = ags_level_box_get_property; gobject->finalize = ags_level_box_finalize; /* properties */ /** * AgsLevelBox:fixed-level-width: * * The fixed width of a level. * * Since: 2.0.0 */ param_spec = g_param_spec_uint("fixed-level-width", "fixed level width", "The fixed width of a level", 0, G_MAXUINT, AGS_LEVEL_BOX_DEFAULT_FIXED_LEVEL_WIDTH, G_PARAM_READABLE | G_PARAM_WRITABLE); g_object_class_install_property(gobject, PROP_FIXED_LEVEL_WIDTH, param_spec); /** * AgsLevelBox:fixed-level-height: * * The fixed height of a level. * * Since: 2.0.0 */ param_spec = g_param_spec_uint("fixed-level-height", "fixed level height", "The fixed height of a level", 0, G_MAXUINT, AGS_LEVEL_BOX_DEFAULT_FIXED_LEVEL_HEIGHT, G_PARAM_READABLE | G_PARAM_WRITABLE); g_object_class_install_property(gobject, PROP_FIXED_LEVEL_HEIGHT, param_spec); /* GtkWidgetClass */ widget = (GtkWidgetClass *) level_box; /* GtkContainerClass */ container = (GtkWidgetClass *) level_box; container->child_type = ags_level_box_child_type; }
static gboolean cw_applet_fill (MatePanelApplet *applet, const gchar *iid, gpointer data) { WnckScreen *screen; WinPickerApp *app; GtkWidget *eb, *tasks, *title; gchar *ui_path; GtkActionGroup *action_group; GObjectClass *object_class; if (strcmp (iid, "MateWindowPicker") != 0) return FALSE; bindtextdomain (GETTEXT_PACKAGE, MATELOCALEDIR); bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8"); textdomain (GETTEXT_PACKAGE); /* Have our background automatically painted. */ mate_panel_applet_set_background_widget (MATE_PANEL_APPLET (applet), GTK_WIDGET (applet)); wnck_set_client_type (WNCK_CLIENT_TYPE_PAGER); app = g_slice_new0 (WinPickerApp); mainapp = app; screen = wnck_screen_get_default (); object_class = G_OBJECT_GET_CLASS (G_OBJECT(applet)); object_class->finalize = cw_applet_finalize; parent_class = g_type_class_peek_parent (object_class); /* gsettings prefs */ app->settings = mate_panel_applet_settings_new (applet, APPLET_SCHEMA); g_signal_connect (app->settings, "changed::" SHOW_WIN_KEY, G_CALLBACK (on_show_all_windows_changed), app); app->applet = GTK_WIDGET (applet); force_no_focus_padding (GTK_WIDGET (applet)); gtk_container_set_border_width (GTK_CONTAINER (applet), 0); eb = gtk_hbox_new (FALSE, 6); gtk_container_add (GTK_CONTAINER (applet), eb); gtk_container_set_border_width (GTK_CONTAINER (eb), 0); tasks = app->tasks = task_list_get_default (); gtk_box_pack_start (GTK_BOX (eb), tasks, FALSE, FALSE, 0); title = app->title = task_title_new (); gtk_box_pack_start (GTK_BOX (eb), title, TRUE, TRUE, 0); gtk_widget_show_all (GTK_WIDGET (applet)); on_show_all_windows_changed (app->settings, SHOW_WIN_KEY, app); action_group = gtk_action_group_new ("MateWindowPicker Applet Actions"); gtk_action_group_set_translation_domain (action_group, GETTEXT_PACKAGE); gtk_action_group_add_actions (action_group, window_picker_menu_actions, G_N_ELEMENTS (window_picker_menu_actions), app); ui_path = g_build_filename (MATEWINDOWPICKER_MENU_UI_DIR, "mate-window-picker-applet-menu.xml", NULL); mate_panel_applet_setup_menu_from_file (MATE_PANEL_APPLET (app->applet), ui_path, action_group); g_free (ui_path); g_object_unref (action_group); mate_panel_applet_set_flags (MATE_PANEL_APPLET (applet), MATE_PANEL_APPLET_EXPAND_MAJOR | MATE_PANEL_APPLET_EXPAND_MINOR | MATE_PANEL_APPLET_HAS_HANDLE); return TRUE; }
static void request_handler_class_init (RequestHandlerClass * klass) { request_handler_parent_class = g_type_class_peek_parent (klass); REQUEST_HANDLER_CLASS (klass)->finalize = request_handler_finalize; g_type_class_add_private (klass, sizeof (RequestHandlerPrivate)); }
static void or_component_state_class_init (OrComponentStateClass * klass) { or_component_state_parent_class = g_type_class_peek_parent (klass); COMPONENT_STATE_CLASS (klass)->finalize = or_component_state_finalize; g_type_class_add_private (klass, sizeof (OrComponentStatePrivate)); COMPONENT_STATE_CLASS (klass)->update = or_component_state_real_update; }