static void ges_project_class_init (GESProjectClass * klass) { GObjectClass *object_class = G_OBJECT_CLASS (klass); g_type_class_add_private (klass, sizeof (GESProjectPrivate)); klass->asset_added = NULL; klass->missing_uri = NULL; klass->loading_error = NULL; klass->asset_removed = NULL; object_class->get_property = (GObjectGetPropertyFunc) _get_property; object_class->set_property = (GObjectSetPropertyFunc) _set_property; /** * GESProject::uri: * * The location of the project to use. */ _properties[PROP_URI] = g_param_spec_string ("uri", "URI", "uri of the project", NULL, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY); g_object_class_install_properties (object_class, PROP_LAST, _properties); /** * GESProject::asset-added: * @formatter: the #GESProject * @asset: The #GESAsset that has been added to @project */ _signals[ASSET_ADDED_SIGNAL] = g_signal_new ("asset-added", G_TYPE_FROM_CLASS (klass), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (GESProjectClass, asset_added), NULL, NULL, g_cclosure_marshal_generic, G_TYPE_NONE, 1, GES_TYPE_ASSET); /** * GESProject::asset-removed: * @formatter: the #GESProject * @asset: The #GESAsset that has been removed from @project */ _signals[ASSET_REMOVED_SIGNAL] = g_signal_new ("asset-removed", G_TYPE_FROM_CLASS (klass), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (GESProjectClass, asset_removed), NULL, NULL, g_cclosure_marshal_generic, G_TYPE_NONE, 1, GES_TYPE_ASSET); /** * GESProject::loaded: * @project: the #GESProject that is done loading a project. * @timeline: The #GESTimeline that complete loading */ _signals[LOADED_SIGNAL] = g_signal_new ("loaded", G_TYPE_FROM_CLASS (klass), G_SIGNAL_RUN_FIRST, G_STRUCT_OFFSET (GESProjectClass, loaded), NULL, NULL, g_cclosure_marshal_generic, G_TYPE_NONE, 1, GES_TYPE_TIMELINE); /** * GESProject::missing-uri: * @project: the #GESProject reporting that a file has moved * @error: The error that happened * @wrong_asset: The asset with the wrong ID, you should us it and its content * only to find out what the new location is. * * |[ * static gchar * source_moved_cb (GESProject *project, GError *error, const gchar *old_uri) * { * return g_strdup ("file:///the/new/uri.ogg"); * } * * static int * main (int argc, gchar ** argv) * { * GESTimeline *timeline; * GESProject *project = ges_project_new ("file:///some/uri.xges"); * * g_signal_connect (project, "missing-uri", source_moved_cb, NULL); * timeline = ges_asset_extract (GES_ASSET (project)); * } * ]| * * Returns: (transfer full) (allow-none): The new URI of @wrong_asset */ _signals[MISSING_URI_SIGNAL] = g_signal_new ("missing-uri", G_TYPE_FROM_CLASS (klass), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (GESProjectClass, missing_uri), _uri_missing_accumulator, NULL, g_cclosure_marshal_generic, G_TYPE_STRING, 2, G_TYPE_ERROR, GES_TYPE_ASSET); /** * GESProject::error-loading-asset: * @project: the #GESProject on which a problem happend when creted a #GESAsset * @error: The #GError defining the error that accured, might be %NULL * @id: The @id of the asset that failed loading * @extractable_type: The @extractable_type of the asset that * failed loading * * Informs you that a #GESAsset could not be created. In case of * missing GStreamer plugins, the error will be set to #GST_CORE_ERROR * #GST_CORE_ERROR_MISSING_PLUGIN */ _signals[ERROR_LOADING_ASSET] = g_signal_new ("error-loading-asset", G_TYPE_FROM_CLASS (klass), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (GESProjectClass, loading_error), NULL, NULL, g_cclosure_marshal_generic, G_TYPE_NONE, 3, G_TYPE_ERROR, G_TYPE_STRING, G_TYPE_GTYPE); object_class->dispose = _dispose; object_class->dispose = _finalize; GES_ASSET_CLASS (klass)->extract = ges_project_extract; }
static void totem_open_location_class_init (TotemOpenLocationClass *klass) { g_type_class_add_private (klass, sizeof (TotemOpenLocationPrivate)); }
static void biji_note_obj_class_init (BijiNoteObjClass *klass) { GObjectClass* object_class = G_OBJECT_CLASS (klass); object_class->constructed = biji_note_obj_constructed; object_class->finalize = biji_note_obj_finalize; object_class->get_property = biji_note_obj_get_property; object_class->set_property = biji_note_obj_set_property; properties[PROP_PATH] = g_param_spec_string("path", "The note file", "The location where the note is stored and saved", NULL, G_PARAM_READWRITE); g_object_class_install_properties (object_class, BIJI_OBJ_PROPERTIES, properties); biji_obj_signals[NOTE_RENAMED] = g_signal_new ( "renamed" , G_OBJECT_CLASS_TYPE (klass), G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0); biji_obj_signals[NOTE_CHANGED] = g_signal_new ( "changed" , G_OBJECT_CLASS_TYPE (klass), G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0); biji_obj_signals[NOTE_COLOR_CHANGED] = g_signal_new ("color-changed" , G_OBJECT_CLASS_TYPE (klass), G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0); biji_obj_signals[NOTE_DELETED] = g_signal_new ( "deleted" , G_OBJECT_CLASS_TYPE (klass), G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0); g_type_class_add_private (klass, sizeof (BijiNoteObjPrivate)); }
static void gst_insert_bin_class_init (GstInsertBinClass * klass) { GObjectClass *gobject_class = G_OBJECT_CLASS (klass); GstElementClass *gstelement_class = (GstElementClass *) klass; GST_DEBUG_CATEGORY_INIT (insert_bin_debug, "insertbin", 0, "Insert Bin"); g_type_class_add_private (klass, sizeof (GstInsertBinPrivate)); gst_element_class_add_pad_template (gstelement_class, gst_static_pad_template_get (&gst_insert_bin_src_template)); gst_element_class_add_pad_template (gstelement_class, gst_static_pad_template_get (&gst_insert_bin_sink_template)); gst_element_class_set_static_metadata (gstelement_class, "Insert Bin", "Generic/Bin/Filter", "Auto-links filter style elements insertally", "Olivier Crete <*****@*****.**>"); gobject_class->dispose = gst_insert_bin_dispose; /** * GstInsertBin::prepend: * @element: the #GstElement to add * @callback: the callback to call when the element has been added or not, or * %NULL * @user_data: The data to pass to the callback * * This action signal adds the filter like element before any other element * in the bin. * * Same as gst_insert_bin_prepend() */ signals[SIG_PREPEND] = g_signal_new_class_handler ("prepend", G_TYPE_FROM_CLASS (klass), G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION, G_CALLBACK (gst_insert_bin_prepend), NULL, NULL, NULL, G_TYPE_NONE, 3, GST_TYPE_ELEMENT, G_TYPE_POINTER, G_TYPE_POINTER); /** * GstInsertBin::append: * @element: the #GstElement to add * @callback: the callback to call when the element has been added or not, or * %NULL * @user_data: The data to pass to the callback * * This action signal adds the filter like element after any other element * in the bin. * * Same as gst_insert_bin_append() */ signals[SIG_APPEND] = g_signal_new_class_handler ("append", G_TYPE_FROM_CLASS (klass), G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION, G_CALLBACK (gst_insert_bin_append), NULL, NULL, NULL, G_TYPE_NONE, 3, GST_TYPE_ELEMENT, G_TYPE_POINTER, G_TYPE_POINTER); /** * GstInsertBin::insert-before: * @element: the #GstElement to add * @sibling: the #GstElement to add @element before * @callback: the callback to call when the element has been added or not, or * %NULL * @user_data: The data to pass to the callback * * This action signal adds the filter like element before the @sibling * element in the bin. * * Same as gst_insert_bin_insert_before() */ signals[SIG_INSERT_BEFORE] = g_signal_new_class_handler ("insert-before", G_TYPE_FROM_CLASS (klass), G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION, G_CALLBACK (gst_insert_bin_insert_before), NULL, NULL, NULL, G_TYPE_NONE, 4, GST_TYPE_ELEMENT, GST_TYPE_ELEMENT, G_TYPE_POINTER, G_TYPE_POINTER); /** * GstInsertBin::insert-after: * @element: the #GstElement to add * @sibling: the #GstElement to add @element after * @callback: the callback to call when the element has been added or not, or * %NULL * @user_data: The data to pass to the callback * * This action signal adds the filter like element after the @sibling * element in the bin. * element in the bin. * * Same as gst_insert_bin_insert_after() */ signals[SIG_INSERT_AFTER] = g_signal_new_class_handler ("insert-after", G_TYPE_FROM_CLASS (klass), G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION, G_CALLBACK (gst_insert_bin_insert_after), NULL, NULL, NULL, G_TYPE_NONE, 4, GST_TYPE_ELEMENT, GST_TYPE_ELEMENT, G_TYPE_POINTER, G_TYPE_POINTER); /** * GstInsertBin::remove: * @element: the #GstElement to remove * @callback: the callback to call when the element has been removed or not, * or %NULL * @user_data: The data to pass to the callback * * This action signal removed the filter like element from the bin. * * Same as gst_insert_bin_remove() */ signals[SIG_REMOVE] = g_signal_new_class_handler ("remove", G_TYPE_FROM_CLASS (klass), G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION, G_CALLBACK (gst_insert_bin_remove), NULL, NULL, NULL, G_TYPE_NONE, 3, GST_TYPE_ELEMENT, G_TYPE_POINTER, G_TYPE_POINTER); }
static void webkit_web_window_features_class_init(WebKitWebWindowFeaturesClass* klass) { GObjectClass* gobject_class = G_OBJECT_CLASS(klass); gobject_class->set_property = webkit_web_window_features_set_property; gobject_class->get_property = webkit_web_window_features_get_property; GParamFlags flags = (GParamFlags)(WEBKIT_PARAM_READWRITE | G_PARAM_CONSTRUCT); webkit_init(); /** * WebKitWebWindowFeatures:x: * * The starting x position of the window on the screen. * * Since: 1.0.3 */ g_object_class_install_property(gobject_class, PROP_X, g_param_spec_int( "x", "x", "The starting x position of the window on the screen.", -1, G_MAXINT, -1, flags)); /** * WebKitWebWindowFeatures:y: * * The starting y position of the window on the screen. * * Since: 1.0.3 */ g_object_class_install_property(gobject_class, PROP_Y, g_param_spec_int( "y", "y", "The starting y position of the window on the screen.", -1, G_MAXINT, -1, flags)); /** * WebKitWebWindowFeatures:width: * * The width of the window on the screen. * * Since: 1.0.3 */ g_object_class_install_property(gobject_class, PROP_WIDTH, g_param_spec_int( "width", "Width", "The width of the window on the screen.", -1, G_MAXINT, -1, flags)); /** * WebKitWebWindowFeatures:height: * * The height of the window on the screen. * * Since: 1.0.3 */ g_object_class_install_property(gobject_class, PROP_HEIGHT, g_param_spec_int( "height", "Height", "The height of the window on the screen.", -1, G_MAXINT, -1, flags)); /** * WebKitWebWindowFeatures:toolbar-visible: * * Controls whether the toolbar should be visible for the window. * * Since: 1.0.3 */ g_object_class_install_property(gobject_class, PROP_TOOLBAR_VISIBLE, g_param_spec_boolean( "toolbar-visible", "Toolbar Visible", "Controls whether the toolbar should be visible for the window.", TRUE, flags)); /** * WebKitWebWindowFeatures:statusbar-visible: * * Controls whether the statusbar should be visible for the window. * * Since: 1.0.3 */ g_object_class_install_property(gobject_class, PROP_STATUSBAR_VISIBLE, g_param_spec_boolean( "statusbar-visible", "Statusbar Visible", "Controls whether the statusbar should be visible for the window.", TRUE, flags)); /** * WebKitWebWindowFeatures:scrollbar-visible: * * Controls whether the scrollbars should be visible for the window. * * Since: 1.0.3 */ g_object_class_install_property(gobject_class, PROP_SCROLLBAR_VISIBLE, g_param_spec_boolean( "scrollbar-visible", "Scrollbar Visible", "Controls whether the scrollbars should be visible for the window.", TRUE, flags)); /** * WebKitWebWindowFeatures:menubar-visible: * * Controls whether the menubar should be visible for the window. * * Since: 1.0.3 */ g_object_class_install_property(gobject_class, PROP_MENUBAR_VISIBLE, g_param_spec_boolean( "menubar-visible", "Menubar Visible", "Controls whether the menubar should be visible for the window.", TRUE, flags)); /** * WebKitWebWindowFeatures:locationbar-visible: * * Controls whether the locationbar should be visible for the window. * * Since: 1.0.3 */ g_object_class_install_property(gobject_class, PROP_LOCATIONBAR_VISIBLE, g_param_spec_boolean( "locationbar-visible", "Locationbar Visible", "Controls whether the locationbar should be visible for the window.", TRUE, flags)); /** * WebKitWebWindowFeatures:fullscreen: * * Controls whether window will be displayed fullscreen. * * Since: 1.0.3 */ g_object_class_install_property(gobject_class, PROP_FULLSCREEN, g_param_spec_boolean( "fullscreen", "Fullscreen", "Controls whether window will be displayed fullscreen.", FALSE, flags)); g_type_class_add_private(klass, sizeof(WebKitWebWindowFeaturesPrivate)); }
static void gupnp_simple_igd_class_init (GUPnPSimpleIgdClass *klass) { GObjectClass *gobject_class = G_OBJECT_CLASS (klass); g_type_class_add_private (klass, sizeof (GUPnPSimpleIgdPrivate)); gobject_class->constructed = gupnp_simple_igd_constructed; gobject_class->dispose = gupnp_simple_igd_dispose; gobject_class->finalize = gupnp_simple_igd_finalize; gobject_class->get_property = gupnp_simple_igd_get_property; klass->add_port = gupnp_simple_igd_add_port_real; klass->remove_port = gupnp_simple_igd_remove_port_real; g_object_class_install_property (gobject_class, PROP_MAIN_CONTEXT, g_param_spec_pointer ("main-context", "The GMainContext to use", "This GMainContext will be used for all async activities", G_PARAM_READABLE | G_PARAM_STATIC_STRINGS)); /** * GUPnPSimpleIgd::mapped-external-port * @self: #GUPnPSimpleIgd that emitted the signal * @proto: the requested protocol ("UDP" or "TCP") * @external_ip: the external IP * @replaces_external_ip: if this mapping replaces another mapping, * this is the old external IP * @external_port: the external port that was allocated * @local_ip: IP address that the router should forward the packets to. It * could be the address of another machine on the local network * @local_port: the local port * @description: the user's selected description * * This signal means that an IGD has been found that that adding a port * mapping has succeeded. */ signals[SIGNAL_MAPPED_EXTERNAL_PORT] = g_signal_new ("mapped-external-port", G_TYPE_FROM_CLASS (klass), G_SIGNAL_RUN_LAST, 0, NULL, NULL, _gupnp_simple_igd_marshal_VOID__STRING_STRING_STRING_UINT_STRING_UINT_STRING, G_TYPE_NONE, 7, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_UINT, G_TYPE_STRING, G_TYPE_UINT, G_TYPE_STRING); /** * GUPnPSimpleIgd::error-mapping-port * @self: #GUPnPSimpleIgd that emitted the signal * @error: a #GError * @proto: The requested protocol * @external_port: the external port requested in gupnp_simple_igd_add_port() * @local_ip: internal ip this is forwarded to * @local_port: the local port * @description: the passed description * * This means that mapping a port on a specific IGD has failed (it may still * succeed on other IGDs on the network). */ signals[SIGNAL_ERROR_MAPPING_PORT] = g_signal_new ("error-mapping-port", G_TYPE_FROM_CLASS (klass), G_SIGNAL_RUN_LAST | G_SIGNAL_DETAILED, 0, NULL, NULL, _gupnp_simple_igd_marshal_VOID__POINTER_STRING_UINT_STRING_UINT_STRING, G_TYPE_NONE, 6, G_TYPE_POINTER, G_TYPE_STRING, G_TYPE_UINT, G_TYPE_STRING, G_TYPE_UINT, G_TYPE_STRING); }
static void ges_text_overlay_clip_class_init (GESTextOverlayClipClass * klass) { GObjectClass *object_class = G_OBJECT_CLASS (klass); GESClipClass *timobj_class = GES_CLIP_CLASS (klass); g_type_class_add_private (klass, sizeof (GESTextOverlayClipPrivate)); object_class->get_property = ges_text_overlay_clip_get_property; object_class->set_property = ges_text_overlay_clip_set_property; object_class->dispose = ges_text_overlay_clip_dispose; /** * GESTextOverlayClip:text: * * The text to diplay */ g_object_class_install_property (object_class, PROP_TEXT, g_param_spec_string ("text", "Text", "The text to display", DEFAULT_PROP_TEXT, G_PARAM_READWRITE | G_PARAM_CONSTRUCT)); /** * GESTextOverlayClip:font-desc: * * Pango font description string */ g_object_class_install_property (G_OBJECT_CLASS (klass), PROP_FONT_DESC, g_param_spec_string ("font-desc", "font description", "Pango font description of font to be used for rendering. " "See documentation of pango_font_description_from_string " "for syntax.", DEFAULT_PROP_FONT_DESC, G_PARAM_READWRITE | G_PARAM_CONSTRUCT | G_PARAM_STATIC_STRINGS)); /** * GESTextOverlayClip:valignment: * * Vertical alignent of the text */ g_object_class_install_property (G_OBJECT_CLASS (klass), PROP_VALIGNMENT, g_param_spec_enum ("valignment", "vertical alignment", "Vertical alignment of the text", GES_TEXT_VALIGN_TYPE, DEFAULT_PROP_VALIGNMENT, G_PARAM_READWRITE | G_PARAM_CONSTRUCT | G_PARAM_STATIC_STRINGS)); /** * GESTextOverlayClip:halignment: * * Horizontal alignment of the text */ g_object_class_install_property (G_OBJECT_CLASS (klass), PROP_HALIGNMENT, g_param_spec_enum ("halignment", "horizontal alignment", "Horizontal alignment of the text", GES_TEXT_HALIGN_TYPE, DEFAULT_PROP_HALIGNMENT, G_PARAM_READWRITE | G_PARAM_CONSTRUCT | G_PARAM_STATIC_STRINGS)); timobj_class->create_track_element = ges_text_overlay_clip_create_track_element; /** * GESTextOverlayClip:color: * * The color of the text */ g_object_class_install_property (object_class, PROP_COLOR, g_param_spec_uint ("color", "Color", "The color of the text", 0, G_MAXUINT32, G_MAXUINT32, G_PARAM_READWRITE | G_PARAM_CONSTRUCT)); /** * GESTextOverlayClip:xpos: * * The horizontal position of the text */ g_object_class_install_property (object_class, PROP_XPOS, g_param_spec_double ("xpos", "Xpos", "The horizontal position", 0, 1, 0.5, G_PARAM_READWRITE | G_PARAM_CONSTRUCT)); /** * GESTextOverlayClip:ypos: * * The vertical position of the text */ g_object_class_install_property (object_class, PROP_YPOS, g_param_spec_double ("ypos", "Ypos", "The vertical position", 0, 1, 0.5, G_PARAM_READWRITE | G_PARAM_CONSTRUCT)); }
static void digital_clock_class_init(DigitalClockClass * klass) { GtkWidgetClass *widget_class = GTK_WIDGET_CLASS(klass); widget_class->get_preferred_width = digital_clock_get_preferred_width; widget_class->get_preferred_height = digital_clock_get_preferred_height; // widget_class->get_preferred_height_for_width = // digital_clock_get_preferred_height_for_width; widget_class->size_allocate = digital_clock_size_allocate; widget_class->draw = digital_clock_draw; GObjectClass *gobject_class = G_OBJECT_CLASS(klass); gobject_class->set_property = digital_clock_set_property; gobject_class->get_property = digital_clock_get_property; gobject_class->finalize=digital_clock_finalize; g_object_class_install_property(gobject_class, PROP_FONT, g_param_spec_string("font", "font name", "Font Name", "Sans", G_PARAM_READWRITE)); g_object_class_install_property(gobject_class, PROP_FSIZ, g_param_spec_int("fsiz", "font-size", "Size of Font", 0, 100, 22, G_PARAM_READWRITE)); g_object_class_install_property(gobject_class, PROP_MODE12, g_param_spec_boolean("mode12", "time-display-mode12", "Dispaly time by 12-hour system", FALSE, G_PARAM_READWRITE)); g_object_class_install_property(gobject_class, PROP_SHOWSEC, g_param_spec_boolean("show-sec", "show second field", "Dispaly time with second field", FALSE, G_PARAM_READWRITE)); g_object_class_install_property(gobject_class, PROP_SHOWMSEC, g_param_spec_boolean("show-msec", "show milli-second field", "Dispaly time with milli-second field", FALSE, G_PARAM_READWRITE)); g_object_class_install_property(gobject_class, PROP_BLINK, g_param_spec_boolean("blink", "Blink", "blink colon by second", FALSE, G_PARAM_READWRITE)); g_object_class_install_property(gobject_class, PROP_SENSITIVE, g_param_spec_boolean("sensitive", "sensitivity of flush", "Whether flush time", TRUE, G_PARAM_READWRITE)); g_type_class_add_private(gobject_class, sizeof(DigitalClockPriv)); }
static void horizon_post_class_init (HorizonPostClass *klass) { g_type_class_add_private (klass, sizeof (HorizonPostPrivate)); GObjectClass *gobject_class = G_OBJECT_CLASS (klass); gobject_class->set_property = horizon_post_set_property; gobject_class->get_property = horizon_post_get_property; gobject_class->dispose = horizon_post_dispose; gobject_class->finalize = horizon_post_finalize; obj_properties[PROP_POST_NUMBER] = g_param_spec_int64 ("no", /* name */ "post number", /* nick */ "Post's unique identifier", /* blurb */ 1 /* minimum value */, 9999999999999 /* maximum value */, 1 /* default value */, G_PARAM_READWRITE); obj_properties[PROP_RESTO] = g_param_spec_int64 ("resto", "Reply to", "Post is in reply to this post id", 0 /* minimum value */, 9999999999999 /* maximum value */, 0 /* default value */, G_PARAM_READWRITE); obj_properties[PROP_STICKY] = g_param_spec_int ("sticky", "is sticky", "", 0, 1, 0, /* default value */ G_PARAM_READWRITE); obj_properties[PROP_CLOSED] = g_param_spec_int ("closed", "thread is closed", "", 0, 1, 0, /* default value */ G_PARAM_READWRITE); obj_properties[PROP_NOW] = g_param_spec_string ("now", "Date and time", "", "no-now-set", /* default value */ G_PARAM_READWRITE); obj_properties[PROP_TIME] = g_param_spec_int64 ("time", "UNIX timestamp", "", 0, G_MAXINT64, 0, /* default value */ G_PARAM_READWRITE); obj_properties[PROP_NAME] = g_param_spec_string ("name", "Name", "", "no-name-set", /* default value */ G_PARAM_READWRITE); obj_properties[PROP_TRIP] = g_param_spec_string ("trip", "Tripcode", "", "no-trip-set", /* default value */ G_PARAM_READWRITE); obj_properties[PROP_ID] = g_param_spec_string ("id", "ID", "Identifies if Mod or Admin", "no-id-set", /* default value */ G_PARAM_READWRITE); obj_properties[PROP_CAPCODE] = g_param_spec_string ("capcode", "Capcode", "", "no-capcode-set", /* default value */ G_PARAM_READWRITE); obj_properties[PROP_COUNTRY] = g_param_spec_string ("country", "Country Code", "", "no-country-set", /* default value */ G_PARAM_READWRITE); obj_properties[PROP_COUNTRY_NAME] = g_param_spec_string ("country_name", "Country Name", "", "no-country-name-set", /* default value */ G_PARAM_READWRITE); obj_properties[PROP_EMAIL] = g_param_spec_string ("email", "Email", "", "no-email-set", /* default value */ G_PARAM_READWRITE); obj_properties[PROP_SUBJECT] = g_param_spec_string ("sub", "Subject", "", "no-sub-set", /* default value */ G_PARAM_READWRITE); obj_properties[PROP_COMMENT] = g_param_spec_string ("com", "Comment", "", "no-com-set", /* default value */ G_PARAM_READWRITE); obj_properties[PROP_RENAMED_FILENAME] = g_param_spec_int64 ("tim", "Renamed filename", "", 0, G_MAXINT64, 0, /* default value */ G_PARAM_READWRITE); obj_properties[PROP_FILENAME] = g_param_spec_string ("filename", "Original filename", "", "no-filename-set", /* default value */ G_PARAM_READWRITE); obj_properties[PROP_EXT] = g_param_spec_string ("ext", "Filename extension", "", "no-ext-set", /* default value */ G_PARAM_READWRITE); obj_properties[PROP_FSIZE] = g_param_spec_int64 ("fsize", "File size", "", 0, G_MAXINT64, 0, /* default value */ G_PARAM_READWRITE); obj_properties[PROP_MD5] = g_param_spec_string ("md5", "File MD5SUM", "24 character base64 MD5", "no-md5-set", /* default value */ G_PARAM_READWRITE); obj_properties[PROP_WIDTH] = g_param_spec_int ("w", "Image width", "", 0, 10000, 0, /* default value */ G_PARAM_READWRITE); obj_properties[PROP_HEIGHT] = g_param_spec_int ("h", "Image height", "", 0, 10000, 0, /* default value */ G_PARAM_READWRITE); obj_properties[PROP_THUMBNAIL_WIDTH] = g_param_spec_int ("tn_w", "Thumbnail width", "", 0, 250, 0, /* default value */ G_PARAM_READWRITE); obj_properties[PROP_THUMBNAIL_HEIGHT] = g_param_spec_int ("tn_h", "Thumbnail height", "", 0, 250, 0, /* default value */ G_PARAM_READWRITE); obj_properties[PROP_FILEDELETED] = g_param_spec_int ("filedeleted", "File deleted?", "", 0, 1, 0, /* default value */ G_PARAM_READWRITE); obj_properties[PROP_SPOILER] = g_param_spec_int ("spoiler", "Spoiler Image?", "", 0, 1, 0, /* default value */ G_PARAM_READWRITE); obj_properties[PROP_CUSTOM_SPOILER] = g_param_spec_int ("custom_spoiler", "Custom Spoilers?", "", 0, 99, 0, /* default value */ G_PARAM_READWRITE); obj_properties[PROP_REPLIES] = g_param_spec_int ("replies", "Thread Replies", "", 0, 99999, 0, /* default value */ G_PARAM_READWRITE); obj_properties[PROP_IMAGES] = g_param_spec_int ("images", "Thread images", "", 0, 99999, 0, /* default value */ G_PARAM_READWRITE); obj_properties[PROP_BUMPLIMIT] = g_param_spec_int ("bumplimit", "Thread Bumplimit?", "", 0, 1, 0, /* default value */ G_PARAM_READWRITE); obj_properties[PROP_IMAGELIMIT] = g_param_spec_int ("imagelimit", "Thread Imagelimit?", "", 0, 1, 0, /* default value */ G_PARAM_READWRITE); obj_properties[PROP_IMAGE_URL] = g_param_spec_string ("image_url", "URL for image", "", "no-image-url-set", /* default value */ G_PARAM_READWRITE); obj_properties[PROP_THUMB_URL] = g_param_spec_string ("thumb_url", "URL for thumbnail", "", "no-thumb-url-set", /* default value */ G_PARAM_READWRITE); obj_properties[PROP_BOARD] = g_param_spec_string ("board", "Image board", "", "no-board-set", /* default value */ G_PARAM_READWRITE); obj_properties[PROP_RENDERED] = g_param_spec_boolean ("rendered", "Whether the post is rendered in a postview", "", FALSE, G_PARAM_READWRITE); obj_properties[PROP_THREAD_ID] = g_param_spec_int64 ("thread_id", /* name */ "Parent thread id", /* nick */ "Id of the thread that contains this post", /* blurb */ 1 /* minimum value */, 9999999999999 /* maximum value */, 1 /* default value */, G_PARAM_READWRITE); g_object_class_install_properties (gobject_class, N_PROPERTIES, obj_properties); }
static void gimp_page_selector_class_init (GimpPageSelectorClass *klass) { GObjectClass *object_class = G_OBJECT_CLASS (klass); GtkWidgetClass *widget_class = GTK_WIDGET_CLASS (klass); object_class->finalize = gimp_page_selector_finalize; object_class->get_property = gimp_page_selector_get_property; object_class->set_property = gimp_page_selector_set_property; klass->selection_changed = NULL; klass->activate = NULL; /** * GimpPageSelector::selection-changed: * @widget: the object which received the signal. * * This signal is emitted whenever the set of selected pages changes. * * Since: 2.4 **/ selector_signals[SELECTION_CHANGED] = g_signal_new ("selection-changed", G_TYPE_FROM_CLASS (klass), G_SIGNAL_RUN_FIRST, G_STRUCT_OFFSET (GimpPageSelectorClass, selection_changed), NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0); /** * GimpPageSelector::activate: * @widget: the object which received the signal. * * The "activate" signal on GimpPageSelector is an action signal. It * is emitted when a user double-clicks an item in the page selection. * * Since: 2.4 */ selector_signals[ACTIVATE] = g_signal_new ("activate", G_OBJECT_CLASS_TYPE (object_class), G_SIGNAL_RUN_FIRST | G_SIGNAL_ACTION, G_STRUCT_OFFSET (GimpPageSelectorClass, activate), NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0); widget_class->activate_signal = selector_signals[ACTIVATE]; /** * GimpPageSelector:n-pages: * * The number of pages of the document to open. * * Since: 2.4 **/ g_object_class_install_property (object_class, PROP_N_PAGES, g_param_spec_int ("n-pages", NULL, NULL, 0, G_MAXINT, 0, GIMP_PARAM_READWRITE)); /** * GimpPageSelector:target: * * The target to open the document to. * * Since: 2.4 **/ g_object_class_install_property (object_class, PROP_TARGET, g_param_spec_enum ("target", NULL, NULL, GIMP_TYPE_PAGE_SELECTOR_TARGET, GIMP_PAGE_SELECTOR_TARGET_LAYERS, GIMP_PARAM_READWRITE)); g_type_class_add_private (object_class, sizeof (GimpPageSelectorPrivate)); }
static void trg_trackers_tree_view_class_init(TrgTrackersTreeViewClass * klass) { g_type_class_add_private(klass, sizeof(TrgTrackersTreeViewPrivate)); }
static void empathy_account_manager_class_init (EmpathyAccountManagerClass *klass) { GObjectClass *oclass = G_OBJECT_CLASS (klass); oclass->finalize = do_finalize; oclass->dispose = do_dispose; oclass->constructor = do_constructor; signals[ACCOUNT_CREATED] = g_signal_new ("account-created", G_TYPE_FROM_CLASS (klass), G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__OBJECT, G_TYPE_NONE, 1, MC_TYPE_ACCOUNT); signals[ACCOUNT_DELETED] = g_signal_new ("account-deleted", G_TYPE_FROM_CLASS (klass), G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__OBJECT, G_TYPE_NONE, 1, MC_TYPE_ACCOUNT); signals[ACCOUNT_ENABLED] = g_signal_new ("account-enabled", G_TYPE_FROM_CLASS (klass), G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__OBJECT, G_TYPE_NONE, 1, MC_TYPE_ACCOUNT); signals[ACCOUNT_DISABLED] = g_signal_new ("account-disabled", G_TYPE_FROM_CLASS (klass), G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__OBJECT, G_TYPE_NONE, 1, MC_TYPE_ACCOUNT); signals[ACCOUNT_CHANGED] = g_signal_new ("account-changed", G_TYPE_FROM_CLASS (klass), G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__OBJECT, G_TYPE_NONE, 1, MC_TYPE_ACCOUNT); signals[ACCOUNT_CONNECTION_CHANGED] = g_signal_new ("account-connection-changed", G_TYPE_FROM_CLASS (klass), G_SIGNAL_RUN_LAST, 0, NULL, NULL, _empathy_marshal_VOID__OBJECT_INT_UINT_UINT, G_TYPE_NONE, 4, MC_TYPE_ACCOUNT, G_TYPE_INT, /* reason */ G_TYPE_UINT, /* actual connection */ G_TYPE_UINT); /* previous connection */ signals[ACCOUNT_PRESENCE_CHANGED] = g_signal_new ("account-presence-changed", G_TYPE_FROM_CLASS (klass), G_SIGNAL_RUN_LAST, 0, NULL, NULL, _empathy_marshal_VOID__OBJECT_INT_INT, G_TYPE_NONE, 3, MC_TYPE_ACCOUNT, G_TYPE_INT, /* actual presence */ G_TYPE_INT); /* previous presence */ g_type_class_add_private (oclass, sizeof (EmpathyAccountManagerPriv)); }
static void ges_overlay_clip_class_init (GESOverlayClipClass * klass) { g_type_class_add_private (klass, sizeof (GESOverlayClipPrivate)); }
static void nice_input_stream_class_init (NiceInputStreamClass *klass) { GObjectClass *gobject_class = G_OBJECT_CLASS (klass); GInputStreamClass *stream_class = G_INPUT_STREAM_CLASS (klass); g_type_class_add_private (klass, sizeof (NiceInputStreamPrivate)); gobject_class->set_property = nice_input_stream_set_property; gobject_class->get_property = nice_input_stream_get_property; gobject_class->dispose = nice_input_stream_dispose; stream_class->read_fn = nice_input_stream_read; stream_class->close_fn = nice_input_stream_close; /*** * NiceInputStream:agent: * * The #NiceAgent to wrap with an input stream. This must be an existing * reliable agent. * * A reference is not held on the #NiceAgent. If the agent is destroyed before * the #NiceInputStream, %G_IO_ERROR_CLOSED will be returned for all * subsequent operations on the stream. * * Since: 0.1.5 */ g_object_class_install_property (gobject_class, PROP_AGENT, g_param_spec_object ("agent", "NiceAgent", "The underlying NiceAgent", NICE_TYPE_AGENT, G_PARAM_CONSTRUCT_ONLY | G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); /*** * NiceInputStream:stream-id: * * ID of the stream to use in the #NiceInputStream:agent. * * Since: 0.1.5 */ g_object_class_install_property (gobject_class, PROP_STREAM_ID, g_param_spec_uint ( "stream-id", "Agent’s stream ID", "The ID of the agent’s stream to wrap.", 0, G_MAXUINT, 0, G_PARAM_CONSTRUCT_ONLY | G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); /*** * NiceInputStream:component-id: * * ID of the component to use in the #NiceInputStream:agent. * * Since: 0.1.5 */ g_object_class_install_property (gobject_class, PROP_COMPONENT_ID, g_param_spec_uint ( "component-id", "Agent’s component ID", "The ID of the agent’s component to wrap.", 0, G_MAXUINT, 0, G_PARAM_CONSTRUCT_ONLY | G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); }
static void vala_ccode_block_class_init (ValaCCodeBlockClass * klass) { vala_ccode_block_parent_class = g_type_class_peek_parent (klass); VALA_CCODE_NODE_CLASS (klass)->finalize = vala_ccode_block_finalize; g_type_class_add_private (klass, sizeof (ValaCCodeBlockPrivate)); VALA_CCODE_NODE_CLASS (klass)->write = vala_ccode_block_real_write; }
static void adg_adim_class_init(AdgADimClass *klass) { GObjectClass *gobject_class; AdgEntityClass *entity_class; AdgDimClass *dim_class; GParamSpec *param, *old_param; gobject_class = (GObjectClass *) klass; entity_class = (AdgEntityClass *) klass; dim_class = (AdgDimClass *) klass; g_type_class_add_private(klass, sizeof(AdgADimPrivate)); gobject_class->dispose = _adg_dispose; gobject_class->get_property = _adg_get_property; gobject_class->set_property = _adg_set_property; entity_class->global_changed = _adg_global_changed; entity_class->local_changed = _adg_local_changed; entity_class->invalidate = _adg_invalidate; entity_class->arrange = _adg_arrange; entity_class->render = _adg_render; dim_class->default_value = _adg_default_value; /* Override #AdgDim:value to append a degree symbol * to the default set value template string */ old_param = g_object_class_find_property(gobject_class, "value"); param = g_param_spec_string(old_param->name, g_param_spec_get_nick(old_param), g_param_spec_get_blurb(old_param), "<>" ADG_UTF8_DEGREE, old_param->flags); g_object_class_install_property(gobject_class, PROP_VALUE, param); param = g_param_spec_boxed("org1", P_("First Origin"), P_("Where the first line comes from: this point is used toghether with \"ref1\" to align the first extension line"), ADG_TYPE_POINT, G_PARAM_READWRITE); g_object_class_install_property(gobject_class, PROP_ORG1, param); param = g_param_spec_boxed("org2", P_("Second Origin"), P_("Where the second line comes from: this point is used toghether with \"ref2\" to align the second extension line"), ADG_TYPE_POINT, G_PARAM_READWRITE); g_object_class_install_property(gobject_class, PROP_ORG2, param); param = g_param_spec_boolean("has-extension1", P_("Has First Extension Line flag"), P_("Show (TRUE) or hide (FALSE) the first extension line"), TRUE, G_PARAM_READWRITE); g_object_class_install_property(gobject_class, PROP_HAS_EXTENSION1, param); param = g_param_spec_boolean("has-extension2", P_("Has Second Extension Line flag"), P_("Show (TRUE) or hide (FALSE) the second extension line"), TRUE, G_PARAM_READWRITE); g_object_class_install_property(gobject_class, PROP_HAS_EXTENSION2, param); }
/** * up_device_class_init: **/ static void up_device_class_init (UpDeviceClass *klass) { GObjectClass *object_class = G_OBJECT_CLASS (klass); object_class->get_property = up_device_get_property; object_class->set_property = up_device_set_property; object_class->finalize = up_device_finalize; g_type_class_add_private (klass, sizeof (UpDevicePrivate)); signals[SIGNAL_CHANGED] = g_signal_new ("changed", G_OBJECT_CLASS_TYPE (klass), G_SIGNAL_RUN_LAST | G_SIGNAL_DETAILED, 0, NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0); dbus_g_object_type_install_info (UP_TYPE_DEVICE, &dbus_glib_up_device_object_info); /** * UpDevice:update-time: */ g_object_class_install_property (object_class, PROP_UPDATE_TIME, g_param_spec_uint64 ("update-time", NULL, NULL, 0, G_MAXUINT64, 0, G_PARAM_READWRITE)); /** * UpDevice:vendor: */ g_object_class_install_property (object_class, PROP_VENDOR, g_param_spec_string ("vendor", NULL, NULL, NULL, G_PARAM_READWRITE)); /** * UpDevice:model: */ g_object_class_install_property (object_class, PROP_MODEL, g_param_spec_string ("model", NULL, NULL, NULL, G_PARAM_READWRITE)); /** * UpDevice:serial: */ g_object_class_install_property (object_class, PROP_SERIAL, g_param_spec_string ("serial", NULL, NULL, NULL, G_PARAM_READWRITE)); /** * UpDevice:native-path: */ g_object_class_install_property (object_class, PROP_NATIVE_PATH, g_param_spec_string ("native-path", NULL, NULL, NULL, G_PARAM_READWRITE)); /** * UpDevice:power-supply: */ g_object_class_install_property (object_class, PROP_POWER_SUPPLY, g_param_spec_boolean ("power-supply", NULL, NULL, FALSE, G_PARAM_READWRITE)); /** * UpDevice:online: */ g_object_class_install_property (object_class, PROP_ONLINE, g_param_spec_boolean ("online", NULL, NULL, FALSE, G_PARAM_READWRITE)); /** * UpDevice:is-present: */ g_object_class_install_property (object_class, PROP_IS_PRESENT, g_param_spec_boolean ("is-present", NULL, NULL, FALSE, G_PARAM_READWRITE)); /** * UpDevice:is-rechargeable: */ g_object_class_install_property (object_class, PROP_IS_RECHARGEABLE, g_param_spec_boolean ("is-rechargeable", NULL, NULL, FALSE, G_PARAM_READWRITE)); /** * UpDevice:has-history: */ g_object_class_install_property (object_class, PROP_HAS_HISTORY, g_param_spec_boolean ("has-history", NULL, NULL, FALSE, G_PARAM_READWRITE)); /** * UpDevice:has-statistics: */ g_object_class_install_property (object_class, PROP_HAS_STATISTICS, g_param_spec_boolean ("has-statistics", NULL, NULL, FALSE, G_PARAM_READWRITE)); /** * UpDevice:type: */ g_object_class_install_property (object_class, PROP_TYPE, g_param_spec_uint ("type", NULL, NULL, UP_DEVICE_KIND_UNKNOWN, UP_DEVICE_KIND_LAST, UP_DEVICE_KIND_UNKNOWN, G_PARAM_READWRITE)); /** * UpDevice:state: */ g_object_class_install_property (object_class, PROP_STATE, g_param_spec_uint ("state", NULL, NULL, UP_DEVICE_STATE_UNKNOWN, UP_DEVICE_STATE_LAST, UP_DEVICE_STATE_UNKNOWN, G_PARAM_READWRITE)); /** * UpDevice:technology: */ g_object_class_install_property (object_class, PROP_TECHNOLOGY, g_param_spec_uint ("technology", NULL, NULL, UP_DEVICE_TECHNOLOGY_UNKNOWN, UP_DEVICE_TECHNOLOGY_LAST, UP_DEVICE_TECHNOLOGY_UNKNOWN, G_PARAM_READWRITE)); /** * UpDevice:capacity: */ g_object_class_install_property (object_class, PROP_CAPACITY, g_param_spec_double ("capacity", NULL, NULL, 0.0, 100.f, 100.0, G_PARAM_READWRITE)); /** * UpDevice:energy: */ g_object_class_install_property (object_class, PROP_ENERGY, g_param_spec_double ("energy", NULL, NULL, 0.0, G_MAXDOUBLE, 0.0, G_PARAM_READWRITE)); /** * UpDevice:energy-empty: */ g_object_class_install_property (object_class, PROP_ENERGY_EMPTY, g_param_spec_double ("energy-empty", NULL, NULL, 0.0, G_MAXDOUBLE, 0.0, G_PARAM_READWRITE)); /** * UpDevice:energy-full: */ g_object_class_install_property (object_class, PROP_ENERGY_FULL, g_param_spec_double ("energy-full", NULL, NULL, 0.0, G_MAXDOUBLE, 0.0, G_PARAM_READWRITE)); /** * UpDevice:energy-full-design: */ g_object_class_install_property (object_class, PROP_ENERGY_FULL_DESIGN, g_param_spec_double ("energy-full-design", NULL, NULL, 0.0, G_MAXDOUBLE, 0.0, G_PARAM_READWRITE)); /** * UpDevice:energy-rate: */ g_object_class_install_property (object_class, PROP_ENERGY_RATE, g_param_spec_double ("energy-rate", NULL, NULL, 0.0, G_MAXDOUBLE, 0.0, G_PARAM_READWRITE)); /** * UpDevice:voltage: */ g_object_class_install_property (object_class, PROP_VOLTAGE, g_param_spec_double ("voltage", NULL, NULL, 0.0, G_MAXDOUBLE, 0.0, G_PARAM_READWRITE)); /** * UpDevice:luminosity: */ g_object_class_install_property (object_class, PROP_LUMINOSITY, g_param_spec_double ("luminosity", NULL, NULL, 0.0, G_MAXDOUBLE, 0.0, G_PARAM_READWRITE)); /** * UpDevice:time-to-empty: */ g_object_class_install_property (object_class, PROP_TIME_TO_EMPTY, g_param_spec_int64 ("time-to-empty", NULL, NULL, 0, G_MAXINT64, 0, G_PARAM_READWRITE)); /** * UpDevice:time-to-full: */ g_object_class_install_property (object_class, PROP_TIME_TO_FULL, g_param_spec_int64 ("time-to-full", NULL, NULL, 0, G_MAXINT64, 0, G_PARAM_READWRITE)); /** * UpDevice:percentage: */ g_object_class_install_property (object_class, PROP_PERCENTAGE, g_param_spec_double ("percentage", NULL, NULL, 0.0, 100.f, 100.0, G_PARAM_READWRITE)); /** * UpDevice:recall-notice: */ g_object_class_install_property (object_class, PROP_RECALL_NOTICE, g_param_spec_boolean ("recall-notice", NULL, NULL, FALSE, G_PARAM_READWRITE)); /** * UpDevice:recall-vendor: */ g_object_class_install_property (object_class, PROP_RECALL_VENDOR, g_param_spec_string ("recall-vendor", NULL, NULL, NULL, G_PARAM_READWRITE)); /** * UpDevice:recall-url: */ g_object_class_install_property (object_class, PROP_RECALL_URL, g_param_spec_string ("recall-url", NULL, NULL, NULL, G_PARAM_READWRITE)); dbus_g_error_domain_register (UP_DEVICE_ERROR, NULL, UP_DEVICE_TYPE_ERROR); }
static void nautilus_makepkg_class_init (NautilusMakepkgClass *klass) { G_OBJECT_CLASS (klass)->finalize = nautilus_makepkg_finalize; g_type_class_add_private (klass, sizeof (NautilusMakepkgPrivate)); }
static void gtk_shruler_class_init (GtkSHRulerClass *klass) { GObjectClass *object_class = G_OBJECT_CLASS (klass); GtkWidgetClass *widget_class = GTK_WIDGET_CLASS (klass); object_class->dispose = gtk_shruler_dispose; object_class->set_property = gtk_shruler_set_property; object_class->get_property = gtk_shruler_get_property; widget_class->realize = gtk_shruler_realize; widget_class->unrealize = gtk_shruler_unrealize; widget_class->map = gtk_shruler_map; widget_class->unmap = gtk_shruler_unmap; widget_class->size_allocate = gtk_shruler_size_allocate; #if !GTK_CHECK_VERSION(3, 0, 0) widget_class->size_request = gtk_shruler_size_request; #else widget_class->get_preferred_width = gtk_shruler_get_preferred_width; widget_class->get_preferred_height = gtk_shruler_get_preferred_height; #endif widget_class->style_set = gtk_shruler_style_set; widget_class->motion_notify_event = gtk_shruler_motion_notify; #if !GTK_CHECK_VERSION(3, 0, 0) widget_class->expose_event = gtk_shruler_expose; #else widget_class->draw = gtk_shruler_expose; #endif g_type_class_add_private (object_class, sizeof (GtkSHRulerPrivate)); g_object_class_install_property (object_class, PROP_ORIENTATION, g_param_spec_enum ("orientation", "Orientation", "The orientation of the ruler", GTK_TYPE_ORIENTATION, GTK_ORIENTATION_HORIZONTAL, GTK_PARAM_READWRITE)); g_object_class_install_property (object_class, PROP_LOWER, gtk_param_spec_unit ("unit", "Unit", "Unit of ruler", TRUE, TRUE, CM_UNIT_PIXEL, GTK_PARAM_READWRITE)); g_object_class_install_property (object_class, PROP_LOWER, g_param_spec_double ("lower", "Lower", "Lower limit of ruler", -G_MAXDOUBLE, G_MAXDOUBLE, 0.0, GTK_PARAM_READWRITE)); g_object_class_install_property (object_class, PROP_UPPER, g_param_spec_double ("upper", "Upper", "Upper limit of ruler", -G_MAXDOUBLE, G_MAXDOUBLE, 0.0, GTK_PARAM_READWRITE)); g_object_class_install_property (object_class, PROP_POSITION, g_param_spec_double ("position", "Position", "Position of mark on the ruler", -G_MAXDOUBLE, G_MAXDOUBLE, 0.0, GTK_PARAM_READWRITE)); g_object_class_install_property (object_class, PROP_MAX_SIZE, g_param_spec_double ("max-size", "Max Size", "Maximum size of the ruler", -G_MAXDOUBLE, G_MAXDOUBLE, 0.0, GTK_PARAM_READWRITE)); gtk_widget_class_install_style_property (widget_class, g_param_spec_double ("font-scale", NULL, NULL, 0.0, G_MAXDOUBLE, DEFAULT_RULER_FONT_SCALE, GTK_PARAM_READABLE)); }
static void mx_label_class_init (MxLabelClass *klass) { GObjectClass *gobject_class = G_OBJECT_CLASS (klass); ClutterActorClass *actor_class = CLUTTER_ACTOR_CLASS (klass); GParamSpec *pspec; g_type_class_add_private (klass, sizeof (MxLabelPrivate)); gobject_class->set_property = mx_label_set_property; gobject_class->get_property = mx_label_get_property; gobject_class->dispose = mx_label_dispose; actor_class->paint = mx_label_paint; actor_class->pick = mx_label_pick; actor_class->allocate = mx_label_allocate; actor_class->get_preferred_width = mx_label_get_preferred_width; actor_class->get_preferred_height = mx_label_get_preferred_height; actor_class->map = mx_label_map; actor_class->unmap = mx_label_unmap; pspec = g_param_spec_object ("clutter-text", "Clutter Text", "Internal ClutterText actor", CLUTTER_TYPE_TEXT, G_PARAM_READABLE); g_object_class_install_property (gobject_class, PROP_CLUTTER_TEXT, pspec); pspec = g_param_spec_string ("text", "Text", "Text of the label", NULL, MX_PARAM_READWRITE | MX_PARAM_TRANSLATEABLE); g_object_class_install_property (gobject_class, PROP_TEXT, pspec); pspec = g_param_spec_boolean ("use-markup", "Use markup", "Whether the text of the label should be " "treated as Pango markup", FALSE, MX_PARAM_READWRITE); g_object_class_install_property (gobject_class, PROP_USE_MARKUP, pspec); pspec = g_param_spec_enum ("x-align", "X Align", "Horizontal position of the text layout", MX_TYPE_ALIGN, MX_ALIGN_START, MX_PARAM_READWRITE); g_object_class_install_property (gobject_class, PROP_X_ALIGN, pspec); pspec = g_param_spec_enum ("y-align", "Y Align", "Vertical position of the text layout", MX_TYPE_ALIGN, MX_ALIGN_START, MX_PARAM_READWRITE); g_object_class_install_property (gobject_class, PROP_Y_ALIGN, pspec); /** * MxLabel:line-wrap: * * Whether to wrap the lines of #MxLabel:text if the contents * exceed the available allocation. * * Since: 1.2 */ pspec = g_param_spec_boolean ("line-wrap", "Line wrap", "If set, wrap the lines if the text becomes too wide", FALSE, MX_PARAM_READWRITE); g_object_class_install_property (gobject_class, PROP_LINE_WRAP, pspec); pspec = g_param_spec_boolean ("fade-out", "Fade out", "Fade out the end of the label, instead " "of ellipsizing", FALSE, MX_PARAM_READWRITE); g_object_class_install_property (gobject_class, PROP_FADE_OUT, pspec); /** * MxLabel:show-tooltip: * * Show a tooltip when there is not enough space to display the text. If set * to %TRUE, this will also cause the #ClutterActor:reactive property to be * enabled. * * Since: 1.4 */ pspec = g_param_spec_boolean ("show-tooltip", "Show Tooltip", "Show a tooltip when there is not enough space" " to display the text.", FALSE, MX_PARAM_READWRITE); g_object_class_install_property (gobject_class, PROP_SHOW_TOOLTIP, pspec); }
static void hildon_font_selection_dialog_class_init (HildonFontSelectionDialogClass *klass) { GObjectClass *gobject_class; parent_class = g_type_class_peek_parent (klass); gobject_class = G_OBJECT_CLASS (klass); gobject_class->finalize = hildon_font_selection_dialog_finalize; gobject_class->get_property = hildon_font_selection_dialog_get_property; gobject_class->set_property = hildon_font_selection_dialog_set_property; /* Install properties to the class */ /** * HildonFontSelectionDialog:family: * * Font family used. */ g_object_class_install_property (gobject_class, PROP_FAMILY, g_param_spec_string ("family", "Font family", "String defines" " the font family", "Sans", G_PARAM_READWRITE)); /** * HildonFontSelectionDialog:family-set: * * Is font family set or inconsistent. */ g_object_class_install_property (gobject_class, PROP_FAMILY_SET, g_param_spec_boolean ("family-set", "family inconsistent state", "Whether the family property" " is inconsistent", FALSE, G_PARAM_READWRITE | G_PARAM_CONSTRUCT)); /** * HildonFontSelectionDialog:size: * * Font size. */ g_object_class_install_property (gobject_class, PROP_SIZE, g_param_spec_int ("size", "Font size", "Font size in Pt", 6, 32, 16, G_PARAM_READWRITE)); /** * HildonFontSelectionDialog:size-set: * * Is font size set or inconsistent. */ g_object_class_install_property (gobject_class, PROP_SIZE_SET, g_param_spec_boolean ("size-set", "size inconsistent state", "Whether the size property" " is inconsistent", FALSE, G_PARAM_READWRITE | G_PARAM_CONSTRUCT)); /** * HildonFontSelectionDialog:color: * * GdkColor for the text. */ g_object_class_install_property (gobject_class, PROP_COLOR, g_param_spec_boxed ("color", "text color", "gdk color for the text", GDK_TYPE_COLOR, G_PARAM_READWRITE)); /** * HildonFontSelectionDialog:color-set: * * Is font color set or inconsistent. */ g_object_class_install_property (gobject_class, PROP_COLOR_SET, g_param_spec_boolean ("color-set", "color inconsistent state", "Whether the color property" " is inconsistent", FALSE, G_PARAM_READWRITE | G_PARAM_CONSTRUCT)); /** * HildonFontSelectionDialog:color-set: * * Is font set as bold. */ g_object_class_install_property (gobject_class, PROP_BOLD, g_param_spec_boolean ("bold", "text weight", "Whether the text is bold", FALSE, G_PARAM_READWRITE)); /** * HildonFontSelectionDialog:color-set: * * Is font bold status set or inconsistent. */ g_object_class_install_property (gobject_class, PROP_BOLD_SET, g_param_spec_boolean ("bold-set", "bold inconsistent state", "Whether the bold" " is inconsistent", FALSE, G_PARAM_READWRITE | G_PARAM_CONSTRUCT)); /** * HildonFontSelectionDialog:italic: * * Is font set as italic. */ g_object_class_install_property (gobject_class, PROP_ITALIC, g_param_spec_boolean ("italic", "text style", "Whether the text is italic", FALSE, G_PARAM_READWRITE)); /** * HildonFontSelectionDialog:italic-set: * * Is font italic status set or inconsistent. */ g_object_class_install_property (gobject_class, PROP_ITALIC_SET, g_param_spec_boolean ("italic-set", "italic inconsistent state", "Whether the italic" " is inconsistent", FALSE, G_PARAM_READWRITE | G_PARAM_CONSTRUCT)); /** * HildonFontSelectionDialog:underline: * * Is the font underlined. */ g_object_class_install_property (gobject_class, PROP_UNDERLINE, g_param_spec_boolean ("underline", "text underline", "Whether the text is underlined", FALSE, G_PARAM_READWRITE)); /** * HildonFontSelectionDialog:underline: * * Is font underline status set or inconsistent. */ g_object_class_install_property (gobject_class, PROP_UNDERLINE_SET, g_param_spec_boolean ("underline-set", "underline inconsistent state", "Whether the underline" " is inconsistent", FALSE, G_PARAM_READWRITE | G_PARAM_CONSTRUCT)); /** * HildonFontSelectionDialog:strikethrough: * * Is the font striken-through. */ g_object_class_install_property (gobject_class, PROP_STRIKETHROUGH, g_param_spec_boolean ("strikethrough", "strikethroughed text", "Whether the text is strikethroughed", FALSE, G_PARAM_READWRITE)); /** * HildonFontSelectionDialog:strikethrough-set: * * Is the font strikenthrough status set. */ g_object_class_install_property (gobject_class, PROP_STRIKETHROUGH_SET, g_param_spec_boolean ("strikethrough-set", "strikethrough inconsistent state", "Whether the strikethrough" " is inconsistent", FALSE, G_PARAM_READWRITE | G_PARAM_CONSTRUCT)); /** * HildonFontSelectionDialog:position: * * The font positioning versus baseline. */ g_object_class_install_property (gobject_class, PROP_POSITION, g_param_spec_int ("position", "Font position", "Font position super or subscript", -1, 1, 0, G_PARAM_READWRITE)); /** * HildonFontSelectionDialog:position-set: * * Is the font positioning set. */ g_object_class_install_property (gobject_class, PROP_POSITION_SET, g_param_spec_boolean ("position-set", "position inconsistent state", "Whether the position" " is inconsistent", FALSE, G_PARAM_READWRITE | G_PARAM_CONSTRUCT)); /** * HildonFontSelectionDialog:font-scaling: * * The font scaling factor applied to the preview dialog. */ g_object_class_install_property (gobject_class, PROP_FONT_SCALING, g_param_spec_double ("font-scaling", "Font scaling", "Font scaling for the preview dialog", 0, 10, 1, G_PARAM_READWRITE)); /** * HildonFontSelectionDialog:preview-text: * * The text used for the preview dialog. */ g_object_class_install_property (gobject_class, PROP_PREVIEW_TEXT, g_param_spec_string("preview-text", "Preview Text", "the text in preview dialog, which does" "not include the reference text", "", G_PARAM_READWRITE)); g_type_class_add_private (klass, sizeof (struct _HildonFontSelectionDialogPrivate)); }
static void nm_ip6_config_class_init (NMIP6ConfigClass *config_class) { GObjectClass *object_class = G_OBJECT_CLASS (config_class); g_type_class_add_private (config_class, sizeof (NMIP6ConfigPrivate)); /* virtual methods */ object_class->constructor = constructor; object_class->get_property = get_property; object_class->finalize = finalize; /* properties */ /** * NMIP6Config:addresses: * * The #GPtrArray containing the IPv6 addresses; use * nm_utils_ip6_addresses_from_gvalue() to return a #GSList of * #NMSettingIP6Address objects that is more usable than the raw data. **/ g_object_class_install_property (object_class, PROP_ADDRESSES, g_param_spec_boxed (NM_IP6_CONFIG_ADDRESSES, "Addresses", "Addresses", NM_TYPE_IP6_ADDRESS_OBJECT_ARRAY, G_PARAM_READABLE)); /** * NMIP6Config:nameservers: * * The #GPtrArray containing elements of type 'struct ip6_addr' which * contain the addresses of nameservers of the configuration. **/ g_object_class_install_property (object_class, PROP_NAMESERVERS, g_param_spec_boxed (NM_IP6_CONFIG_NAMESERVERS, "Nameservers", "Nameservers", NM_TYPE_IP6_ADDRESS_ARRAY, G_PARAM_READABLE)); /** * NMIP6Config:domains: * * The #GPtrArray containing domain strings of the configuration. **/ g_object_class_install_property (object_class, PROP_DOMAINS, g_param_spec_boxed (NM_IP6_CONFIG_DOMAINS, "Domains", "Domains", NM_TYPE_STRING_ARRAY, G_PARAM_READABLE)); /** * NMIP6Config:routes: * * The #GPtrArray containing the IPv6 routes; use * nm_utils_ip6_routes_from_gvalue() to return a #GSList of * #NMSettingIP6Address objects that is more usable than the raw data. **/ g_object_class_install_property (object_class, PROP_ROUTES, g_param_spec_boxed (NM_IP6_CONFIG_ROUTES, "Routes", "Routes", NM_TYPE_IP6_ROUTE_OBJECT_ARRAY, G_PARAM_READABLE)); }
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; }
static void hildon_desktop_item_class_init (HildonDesktopItemClass *item_class) { GObjectClass *object_class = G_OBJECT_CLASS (item_class); GtkWidgetClass *widget_class = GTK_WIDGET_CLASS (item_class); object_class->finalize = hildon_desktop_item_finalize; object_class->set_property = hildon_desktop_item_set_property; object_class->get_property = hildon_desktop_item_get_property; widget_class->size_request = hildon_desktop_item_size_request; widget_class->size_allocate = hildon_desktop_item_size_allocate; item_class->get_widget = hildon_desktop_item_get_widget; desktop_signals[SIGNAL_CREATE] = g_signal_new("item_create", G_OBJECT_CLASS_TYPE(object_class), G_SIGNAL_RUN_FIRST | G_SIGNAL_DETAILED, 0,NULL, NULL, g_cclosure_marshal_VOID__STRING, G_TYPE_NONE, 1, G_TYPE_STRING); desktop_signals[SIGNAL_INIT] = g_signal_new("init", G_OBJECT_CLASS_TYPE(object_class), G_SIGNAL_RUN_FIRST | G_SIGNAL_DETAILED, 0,NULL, NULL, g_cclosure_marshal_VOID__STRING, G_TYPE_NONE, 1, G_TYPE_STRING); g_object_class_install_property (object_class, PROP_ID, g_param_spec_string("id", "Plugin's ID", "ID of the plugin", NULL, G_PARAM_CONSTRUCT | G_PARAM_READWRITE)); g_object_class_install_property (object_class, PROP_RESOURCE, g_param_spec_string("resource", "Plugin's related resource", "Resource reference for the plugin", NULL, G_PARAM_READWRITE)); g_object_class_install_property (object_class, PROP_NAME, g_param_spec_string("item-name", "Plugin's Name", "Name of the plugin, not widget", "HildonDesktopItem", G_PARAM_CONSTRUCT | G_PARAM_READWRITE)); g_object_class_install_property (object_class, PROP_MANDATORY, g_param_spec_boolean("mandatory", "Mandatory", "Plugin that cant'be destroyed", FALSE, G_PARAM_CONSTRUCT | G_PARAM_READWRITE)); g_object_class_install_property (object_class, PROP_TEMPORARY, g_param_spec_boolean("temporary", "Temporary", "Plugin is temporary", FALSE, G_PARAM_CONSTRUCT | G_PARAM_READWRITE)); g_type_class_add_private (object_class, sizeof (HildonDesktopItemPrivate)); }
static void nm_setting_ip6_config_class_init (NMSettingIP6ConfigClass *setting_class) { GObjectClass *object_class = G_OBJECT_CLASS (setting_class); NMSettingClass *parent_class = NM_SETTING_CLASS (setting_class); g_type_class_add_private (setting_class, sizeof (NMSettingIP6ConfigPrivate)); /* virtual methods */ object_class->set_property = set_property; object_class->get_property = get_property; object_class->finalize = finalize; parent_class->verify = verify; /* Properties */ /** * NMSettingIP6Config:method: * * IPv6 configuration method. If 'auto' is specified then the appropriate * automatic method (DHCP, PPP, advertisement, etc) is used for the * interface and most other properties can be left unset. To force the use * of DHCP only, specify 'dhcp'; this method is only valid for ethernet- * based hardware. If 'link-local' is specified, then an IPv6 link-local * address will be assigned to the interface. If 'manual' is specified, * static IP addressing is used and at least one IP address must be given * in the 'addresses' property. If 'ignored' is specified, IPv6 * configuration is not done. This property must be set. NOTE: the 'shared' * method are not yet supported. **/ g_object_class_install_property (object_class, PROP_METHOD, g_param_spec_string (NM_SETTING_IP6_CONFIG_METHOD, "Method", "IPv6 configuration method. If 'auto' is specified " "then the appropriate automatic method (PPP, router " "advertisement, etc) is used for the device and " "most other properties can be left unset. To force " "the use of DHCP only, specify 'dhcp'; this method " "is only valid for ethernet-based hardware. If " "'link-local' is specified, then an IPv6 link-local " "address will be assigned to the interface. If " "'manual' is specified, static IP addressing is " "used and at least one IP address must be given in " " the 'addresses' property. If 'ignored' is " "specified, IPv6 configuration is not done. This " "property must be set. NOTE: the 'shared' method" "is not yet supported.", NULL, G_PARAM_READWRITE | NM_SETTING_PARAM_SERIALIZE)); /** * NMSettingIP6Config:dhcp-hostname: * * The specified name will be sent to the DHCP server when acquiring a lease. **/ g_object_class_install_property (object_class, PROP_DHCP_HOSTNAME, g_param_spec_string (NM_SETTING_IP6_CONFIG_DHCP_HOSTNAME, "DHCP Hostname", "The specified name will be sent to the DHCP server " "when acquiring a lease.", NULL, G_PARAM_READWRITE | NM_SETTING_PARAM_SERIALIZE)); /** * NMSettingIP6Config:dns: * * Array of DNS servers, where each member of the array is a byte array * containing the IPv6 address of the DNS server (in network byte order). * For the 'auto' method, these DNS servers are appended to those (if any) * returned by automatic configuration. DNS servers cannot be used with * the 'shared' or 'link-local' methods as there is no usptream network. In * all other methods, these DNS servers are used as the only DNS servers for * this connection. **/ g_object_class_install_property (object_class, PROP_DNS, _nm_param_spec_specialized (NM_SETTING_IP6_CONFIG_DNS, "DNS", "Array of DNS servers, where each member of the " "array is a byte array containing the IPv6 address " "of the DNS server (in network byte order). For " "the 'auto' method, these DNS servers are " "appended to those (if any) returned by automatic " "configuration. DNS servers cannot be used with " "the 'shared' or 'link-local' methods as there is " "no usptream network. In all other methods, " "these DNS servers are used as the only DNS " "servers for this connection.", DBUS_TYPE_G_ARRAY_OF_ARRAY_OF_UCHAR, G_PARAM_READWRITE | NM_SETTING_PARAM_SERIALIZE)); /** * NMSettingIP6Config:dns-search: * * List of DNS search domains. For the 'auto' method, these search domains * are appended to those returned by automatic configuration. Search domains * cannot be used with the 'shared' or 'link-local' methods as there is no * upstream network. In all other methods, these search domains are used * as the only search domains for this connection. **/ g_object_class_install_property (object_class, PROP_DNS_SEARCH, _nm_param_spec_specialized (NM_SETTING_IP6_CONFIG_DNS_SEARCH, "DNS search", "List of DNS search domains. For the 'auto' " "method, these search domains are appended to " "those returned by automatic configuration. " "Search domains cannot be used with the 'shared' " "or 'link-local' methods as there is no upstream " "network. In all other methods, these search " "domains are used as the only search domains for " "this connection.", DBUS_TYPE_G_LIST_OF_STRING, G_PARAM_READWRITE | NM_SETTING_PARAM_SERIALIZE)); /** * NMSettingIP6Config:addresses: * * Array of IPv6 address structures. Each IPv6 address structure is * composed of 3 members, the first being a byte array containing the IPv6 * address (network byte order), the second a 32-bit integer containing the * IPv6 address prefix, and the third a byte array containing the IPv6 * address (network byte order) of the gateway associated with this address, * if any. If no gateway is given, the third element should be given as * all zeros. For the 'auto' method, given IP addresses are appended to * those returned by automatic configuration. Addresses cannot be used with * the 'shared' or 'link-local' methods as the interface is automatically * assigned an address with these methods. **/ g_object_class_install_property (object_class, PROP_ADDRESSES, _nm_param_spec_specialized (NM_SETTING_IP6_CONFIG_ADDRESSES, "Addresses", "Array of IPv6 address structures. Each IPv6 " "address structure is composed of 3 members, the " "first being a byte array containing the IPv6 " "address (network byte order), the second a " "32-bit integer containing the IPv6 address " "prefix, and the third a byte array containing " "the IPv6 address (network byte order) of the " "gateway associated with this address, if any. " "If no gateway is given, the third element should " "be given as all zeros. For the 'auto' method, " "given IP addresses are appended to those returned " "by automatic configuration. Addresses cannot be " "used with the 'shared' or 'link-local' methods " "as the interface is automatically assigned an " "address with these methods.", DBUS_TYPE_G_ARRAY_OF_IP6_ADDRESS, G_PARAM_READWRITE | NM_SETTING_PARAM_SERIALIZE)); /** * NMSettingIP6Config:routes: * * Array of IPv6 route structures. Each IPv6 route structure is composed * of 4 members; the first being the destination IPv6 network or * address (network byte order) as a byte array, the second the destination * network or address IPv6 prefix, the third being the next-hop IPv6 address * (network byte order) if any, and the fourth being the route metric. For * the 'auto' method, given IP routes are appended to those returned by * automatic configuration. Routes cannot be used with the 'shared' or * 'link-local' methods because there is no upstream network. **/ g_object_class_install_property (object_class, PROP_ROUTES, _nm_param_spec_specialized (NM_SETTING_IP6_CONFIG_ROUTES, "Routes", "Array of IPv6 route structures. Each IPv6 route " "structure is composed of 4 members; the first " "being the destination IPv6 network or address " "(network byte order) as a byte array, the second " "the destination network or address IPv6 prefix, " "the third being the next-hop IPv6 address " "(network byte order) if any, and the fourth " "being the route metric. For the 'auto' method, " "given IP routes are appended to those returned " "by automatic configuration. Routes cannot be " "used with the 'shared' or 'link-local' methods " "because there is no upstream network.", DBUS_TYPE_G_ARRAY_OF_IP6_ROUTE, G_PARAM_READWRITE | NM_SETTING_PARAM_SERIALIZE)); /** * NMSettingIP6Config:ignore-auto-routes: * * When the method is set to 'auto' or 'dhcp' and this property is set to * TRUE, automatically configured routes are ignored and only routes * specified in #NMSettingIP6Config:routes, if any, are used. **/ g_object_class_install_property (object_class, PROP_IGNORE_AUTO_ROUTES, g_param_spec_boolean (NM_SETTING_IP6_CONFIG_IGNORE_AUTO_ROUTES, "Ignore automatic routes", "When the method is set to 'auto' or 'dhcp' and this " "property is set to TRUE, automatically configured " "routes are ignored and only routes specified in the " "'routes' property, if any, are used.", FALSE, G_PARAM_READWRITE | G_PARAM_CONSTRUCT | NM_SETTING_PARAM_SERIALIZE)); /** * NMSettingIP6Config:ignore-auto-dns: * * When the method is set to 'auto' or 'dhcp' and this property is set to * TRUE, automatically configured nameservers and search domains are ignored * and only nameservers and search domains specified in * #NMSettingIP6Config:dns and #NMSettingIP6Config:dns-search, if any, are * used. **/ g_object_class_install_property (object_class, PROP_IGNORE_AUTO_DNS, g_param_spec_boolean (NM_SETTING_IP6_CONFIG_IGNORE_AUTO_DNS, "Ignore DHCPv6/RDNSS DNS", "When the method is set to 'auto' or 'dhcp' and this " "property is set to TRUE, automatically configured " "nameservers and search domains are ignored and only " "nameservers and search domains specified in the 'dns' " "and 'dns-search' properties, if any, are used.", FALSE, G_PARAM_READWRITE | G_PARAM_CONSTRUCT | NM_SETTING_PARAM_SERIALIZE)); /** * NMSettingIP6Config:never-default: * * If TRUE, this connection will never be the default IPv6 connection, * meaning it will never be assigned the default IPv6 route by NetworkManager. **/ g_object_class_install_property (object_class, PROP_NEVER_DEFAULT, g_param_spec_boolean (NM_SETTING_IP6_CONFIG_NEVER_DEFAULT, "Never default", "If TRUE, this connection will never be the default " "IPv6 connection, meaning it will never be assigned " "the default IPv6 route by NetworkManager.", FALSE, G_PARAM_READWRITE | G_PARAM_CONSTRUCT | NM_SETTING_PARAM_SERIALIZE)); /** * NMSettingIP6Config:may-fail: * * If TRUE, allow overall network configuration to proceed even if IPv6 * configuration times out. Note that at least one IP configuration * must succeed or overall network configuration will still fail. For * example, in IPv4-only networks, setting this property to TRUE allows * the overall network configuration to succeed if IPv6 configuration fails * but IPv4 configuration completes successfully. **/ g_object_class_install_property (object_class, PROP_MAY_FAIL, g_param_spec_boolean (NM_SETTING_IP6_CONFIG_MAY_FAIL, "May Fail", "If TRUE, allow overall network configuration to " "proceed even if IPv6 configuration times out. " "Note that at least one IP configuration must " "succeed or overall network configuration will still " "fail. For example, in IPv4-only networks, setting " "this property to TRUE allows the overall network " "configuration to succeed if IPv6 configuration " "fails but IPv4 configuration completes successfully.", TRUE, G_PARAM_READWRITE | G_PARAM_CONSTRUCT | NM_SETTING_PARAM_SERIALIZE)); /** * NMSettingIP6Config:ip6-privacy: * * Configure IPv6 Privacy Extensions for SLAAC, described in RFC4941. * If enabled, it makes the kernel generate a temporary IPv6 address * in addition to the public one generated from MAC address via * modified EUI-64. This enhances privacy, but could cause problems * in some applications, on the other hand. The permitted values * are: 0: disabled, 1: enabled (prefer public address), * 2: enabled (prefer temporary addresses). **/ g_object_class_install_property (object_class, PROP_IP6_PRIVACY, g_param_spec_int (NM_SETTING_IP6_CONFIG_IP6_PRIVACY, "Configure IPv6 Privacy", "Configure IPv6 Privacy Extensions for SLAAC, described " "in RFC4941. If enabled, it makes the kernel generate " "a temporary IPv6 address in addition to the public one " "generated from MAC address via modified EUI-64. This " "enhances privacy, but could cause problems in some " "applications, on the other hand. The permitted values " "are: 0: disabled, 1: enabled (prefer public address), " "2: enabled (prefer temporary addresses).", NM_SETTING_IP6_CONFIG_PRIVACY_UNKNOWN, NM_SETTING_IP6_CONFIG_PRIVACY_PREFER_TEMP_ADDR, NM_SETTING_IP6_CONFIG_PRIVACY_UNKNOWN, G_PARAM_READWRITE | G_PARAM_CONSTRUCT | NM_SETTING_PARAM_SERIALIZE)); }
static void bisho_pane_username_class_init (BishoPaneUsernameClass *klass) { g_type_class_add_private (klass, sizeof (BishoPaneUsernamePrivate)); }
static void soup_address_class_init (SoupAddressClass *address_class) { GObjectClass *object_class = G_OBJECT_CLASS (address_class); g_type_class_add_private (address_class, sizeof (SoupAddressPrivate)); /* virtual method override */ object_class->constructor = soup_address_constructor; object_class->finalize = soup_address_finalize; object_class->set_property = soup_address_set_property; object_class->get_property = soup_address_get_property; /* properties */ /** * SOUP_ADDRESS_NAME: * * Alias for the #SoupAddress:name property. (The hostname for * this address.) **/ g_object_class_install_property ( object_class, PROP_NAME, g_param_spec_string (SOUP_ADDRESS_NAME, "Name", "Hostname for this address", NULL, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY)); /** * SOUP_ADDRESS_FAMILY: * * Alias for the #SoupAddress:family property. (The * #SoupAddressFamily for this address.) **/ g_object_class_install_property ( object_class, PROP_FAMILY, g_param_spec_enum (SOUP_ADDRESS_FAMILY, "Family", "Address family for this address", SOUP_TYPE_ADDRESS_FAMILY, SOUP_ADDRESS_FAMILY_INVALID, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY)); /** * SOUP_ADDRESS_PORT: * * An alias for the #SoupAddress:port property. (The port for * this address.) **/ g_object_class_install_property ( object_class, PROP_PORT, g_param_spec_int (SOUP_ADDRESS_PORT, "Port", "Port for this address", -1, 65535, -1, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY)); /** * SOUP_ADDRESS_PROTOCOL: * * Alias for the #SoupAddress:protocol property. (The URI scheme * used with this address.) **/ g_object_class_install_property ( object_class, PROP_PROTOCOL, g_param_spec_string (SOUP_ADDRESS_PROTOCOL, "Protocol", "URI scheme for this address", NULL, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY)); /** * SOUP_ADDRESS_PHYSICAL: * * An alias for the #SoupAddress:physical property. (The * stringified IP address for this address.) **/ g_object_class_install_property ( object_class, PROP_PHYSICAL, g_param_spec_string (SOUP_ADDRESS_PHYSICAL, "Physical address", "IP address for this address", NULL, G_PARAM_READABLE)); /** * SOUP_ADDRESS_SOCKADDR: * * An alias for the #SoupAddress:sockaddr property. (A pointer * to the struct sockaddr for this address.) **/ g_object_class_install_property ( object_class, PROP_SOCKADDR, g_param_spec_pointer (SOUP_ADDRESS_SOCKADDR, "sockaddr", "struct sockaddr for this address", G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY)); }
static void gth_edit_iptc_page_class_init (GthEditIptcPageClass *klass) { g_type_class_add_private (klass, sizeof (GthEditIptcPagePrivate)); G_OBJECT_CLASS (klass)->finalize = gth_edit_iptc_page_finalize; }
static void graphic_class_init (GraphicClass * klass) { graphic_parent_class = g_type_class_peek_parent (klass); GRAPHIC_CLASS (klass)->finalize = graphic_finalize; g_type_class_add_private (klass, sizeof (GraphicPrivate)); }
static void gst_discoverer_class_init (GstDiscovererClass * klass) { GObjectClass *gobject_class = (GObjectClass *) klass; gobject_class->dispose = gst_discoverer_dispose; gobject_class->set_property = gst_discoverer_set_property; gobject_class->get_property = gst_discoverer_get_property; g_type_class_add_private (klass, sizeof (GstDiscovererPrivate)); /* properties */ /** * GstDiscoverer:timeout * * The duration (in nanoseconds) after which the discovery of an individual * URI will timeout. * * If the discovery of a URI times out, the %GST_DISCOVERER_TIMEOUT will be * set on the result flags. */ g_object_class_install_property (gobject_class, PROP_TIMEOUT, g_param_spec_uint64 ("timeout", "timeout", "Timeout", GST_SECOND, 3600 * GST_SECOND, DEFAULT_PROP_TIMEOUT, G_PARAM_READWRITE | G_PARAM_CONSTRUCT | G_PARAM_STATIC_STRINGS)); /* signals */ /** * GstDiscoverer::finished: * @discoverer: the #GstDiscoverer * * Will be emitted when all pending URIs have been processed. */ gst_discoverer_signals[SIGNAL_FINISHED] = g_signal_new ("finished", G_TYPE_FROM_CLASS (klass), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (GstDiscovererClass, finished), NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0, G_TYPE_NONE); /** * GstDiscoverer::starting: * @discoverer: the #GstDiscoverer * * Will be emitted when the discover starts analyzing the pending URIs */ gst_discoverer_signals[SIGNAL_STARTING] = g_signal_new ("starting", G_TYPE_FROM_CLASS (klass), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (GstDiscovererClass, starting), NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0, G_TYPE_NONE); /** * GstDiscoverer::discovered: * @discoverer: the #GstDiscoverer * @info: the results #GstDiscovererInfo * @error: (type GLib.Error): #GError, which will be non-NULL if an error * occurred during discovery * * Will be emitted when all information on a URI could be discovered. */ gst_discoverer_signals[SIGNAL_DISCOVERED] = g_signal_new ("discovered", G_TYPE_FROM_CLASS (klass), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (GstDiscovererClass, discovered), NULL, NULL, pbutils_marshal_VOID__POINTER_BOXED, G_TYPE_NONE, 2, GST_TYPE_DISCOVERER_INFO, GST_TYPE_G_ERROR); }