static void gtk_app_chooser_dialog_class_init (GtkAppChooserDialogClass *klass) { GObjectClass *gobject_class; GtkWidgetClass *widget_class; GParamSpec *pspec; gobject_class = G_OBJECT_CLASS (klass); widget_class = GTK_WIDGET_CLASS (klass); gobject_class->dispose = gtk_app_chooser_dialog_dispose; gobject_class->finalize = gtk_app_chooser_dialog_finalize; gobject_class->set_property = gtk_app_chooser_dialog_set_property; gobject_class->get_property = gtk_app_chooser_dialog_get_property; gobject_class->constructed = gtk_app_chooser_dialog_constructed; g_object_class_override_property (gobject_class, PROP_CONTENT_TYPE, "content-type"); /** * GtkAppChooserDialog:gfile: * * The GFile used by the #GtkAppChooserDialog. * The dialog's #GtkAppChooserWidget content type will be guessed from the * file, if present. */ pspec = g_param_spec_object ("gfile", P_("GFile"), P_("The GFile used by the app chooser dialog"), G_TYPE_FILE, G_PARAM_CONSTRUCT_ONLY | G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS); g_object_class_install_property (gobject_class, PROP_GFILE, pspec); /** * GtkAppChooserDialog:heading: * * The text to show at the top of the dialog. * The string may contain Pango markup. */ pspec = g_param_spec_string ("heading", P_("Heading"), P_("The text to show at the top of the dialog"), NULL, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY); g_object_class_install_property (gobject_class, PROP_HEADING, pspec); /* Bind class to template */ gtk_widget_class_set_template_from_resource (widget_class, "/org/gtk/libgtk/ui/gtkappchooserdialog.ui"); gtk_widget_class_bind_template_child_private (widget_class, GtkAppChooserDialog, label); gtk_widget_class_bind_template_child_private (widget_class, GtkAppChooserDialog, show_more_button); gtk_widget_class_bind_template_child_private (widget_class, GtkAppChooserDialog, software_button); gtk_widget_class_bind_template_child_private (widget_class, GtkAppChooserDialog, inner_box); gtk_widget_class_bind_template_child_private (widget_class, GtkAppChooserDialog, search_bar); gtk_widget_class_bind_template_child_private (widget_class, GtkAppChooserDialog, search_entry); gtk_widget_class_bind_template_child_private (widget_class, GtkAppChooserDialog, buttons); gtk_widget_class_bind_template_callback (widget_class, show_more_button_clicked_cb); gtk_widget_class_bind_template_callback (widget_class, software_button_clicked_cb); }
static void clutter_behaviour_class_init (ClutterBehaviourClass *klass) { GObjectClass *object_class = G_OBJECT_CLASS (klass); object_class->dispose = clutter_behaviour_dispose; object_class->set_property = clutter_behaviour_set_property; object_class->get_property = clutter_behaviour_get_property; /** * ClutterBehaviour:alpha: * * The #ClutterAlpha object used to drive this behaviour. A #ClutterAlpha * object binds a #ClutterTimeline and a function which computes a value * (the "alpha") depending on the time. Each time the alpha value changes * the alpha-notify virtual function is called. * * Since: 0.2 */ obj_props[PROP_ALPHA] = g_param_spec_object ("alpha", P_("Alpha"), P_("Alpha Object to drive the behaviour"), CLUTTER_TYPE_ALPHA, CLUTTER_PARAM_READWRITE); g_object_class_install_properties (object_class, PROP_LAST, obj_props); klass->alpha_notify = clutter_behaviour_alpha_notify_unimplemented; /** * ClutterBehaviour::applied: * @behaviour: the #ClutterBehaviour that received the signal * @actor: the actor the behaviour was applied to. * * The ::apply signal is emitted each time the behaviour is applied * to an actor. * * Since: 0.4 */ behave_signals[APPLIED] = g_signal_new ("applied", G_OBJECT_CLASS_TYPE (object_class), G_SIGNAL_RUN_FIRST, G_STRUCT_OFFSET (ClutterBehaviourClass, applied), NULL, NULL, _clutter_marshal_VOID__OBJECT, G_TYPE_NONE, 1, CLUTTER_TYPE_ACTOR); /** * ClutterBehaviour::removed: * @behaviour: the #ClutterBehaviour that received the signal * @actor: the removed actor * * The ::removed signal is emitted each time a behaviour is not applied * to an actor anymore. * * Since: 0.4 */ behave_signals[REMOVED] = g_signal_new ("removed", G_OBJECT_CLASS_TYPE (object_class), G_SIGNAL_RUN_FIRST, G_STRUCT_OFFSET (ClutterBehaviourClass, removed), NULL, NULL, _clutter_marshal_VOID__OBJECT, G_TYPE_NONE, 1, CLUTTER_TYPE_ACTOR); g_type_class_add_private (klass, sizeof (ClutterBehaviourPrivate)); }
static void gst_udpsrc_class_init (GstUDPSrcClass * klass) { GObjectClass *gobject_class; GstElementClass *gstelement_class; GstBaseSrcClass *gstbasesrc_class; GstPushSrcClass *gstpushsrc_class; gobject_class = (GObjectClass *) klass; gstelement_class = (GstElementClass *) klass; gstbasesrc_class = (GstBaseSrcClass *) klass; gstpushsrc_class = (GstPushSrcClass *) klass; GST_DEBUG_CATEGORY_INIT (udpsrc_debug, "udpsrc", 0, "UDP src"); gobject_class->set_property = gst_udpsrc_set_property; gobject_class->get_property = gst_udpsrc_get_property; gobject_class->finalize = gst_udpsrc_finalize; g_object_class_install_property (G_OBJECT_CLASS (klass), PROP_PORT, g_param_spec_int ("port", "Port", "The port to receive the packets from, 0=allocate", 0, G_MAXUINT16, UDP_DEFAULT_PORT, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); /* FIXME 2.0: Remove multicast-group property */ #ifndef GST_REMOVE_DEPRECATED g_object_class_install_property (gobject_class, PROP_MULTICAST_GROUP, g_param_spec_string ("multicast-group", "Multicast Group", "The Address of multicast group to join. (DEPRECATED: " "Use address property instead)", UDP_DEFAULT_MULTICAST_GROUP, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_DEPRECATED)); #endif g_object_class_install_property (gobject_class, PROP_MULTICAST_IFACE, g_param_spec_string ("multicast-iface", "Multicast Interface", "The network interface on which to join the multicast group", UDP_DEFAULT_MULTICAST_IFACE, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (gobject_class, PROP_URI, g_param_spec_string ("uri", "URI", "URI in the form of udp://multicast_group:port", UDP_DEFAULT_URI, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (gobject_class, PROP_CAPS, g_param_spec_boxed ("caps", "Caps", "The caps of the source pad", GST_TYPE_CAPS, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (gobject_class, PROP_SOCKET, g_param_spec_object ("socket", "Socket", "Socket to use for UDP reception. (NULL == allocate)", G_TYPE_SOCKET, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (G_OBJECT_CLASS (klass), PROP_BUFFER_SIZE, g_param_spec_int ("buffer-size", "Buffer Size", "Size of the kernel receive buffer in bytes, 0=default", 0, G_MAXINT, UDP_DEFAULT_BUFFER_SIZE, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (G_OBJECT_CLASS (klass), PROP_TIMEOUT, g_param_spec_uint64 ("timeout", "Timeout", "Post a message after timeout nanoseconds (0 = disabled)", 0, G_MAXUINT64, UDP_DEFAULT_TIMEOUT, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (G_OBJECT_CLASS (klass), PROP_SKIP_FIRST_BYTES, g_param_spec_int ("skip-first-bytes", "Skip first bytes", "number of bytes to skip for each udp packet", 0, G_MAXINT, UDP_DEFAULT_SKIP_FIRST_BYTES, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (gobject_class, PROP_CLOSE_SOCKET, g_param_spec_boolean ("close-socket", "Close socket", "Close socket if passed as property on state change", UDP_DEFAULT_CLOSE_SOCKET, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (gobject_class, PROP_USED_SOCKET, g_param_spec_object ("used-socket", "Socket Handle", "Socket currently in use for UDP reception. (NULL = no socket)", G_TYPE_SOCKET, G_PARAM_READABLE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (gobject_class, PROP_AUTO_MULTICAST, g_param_spec_boolean ("auto-multicast", "Auto Multicast", "Automatically join/leave multicast groups", UDP_DEFAULT_AUTO_MULTICAST, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (gobject_class, PROP_REUSE, g_param_spec_boolean ("reuse", "Reuse", "Enable reuse of the port", UDP_DEFAULT_REUSE, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (gobject_class, PROP_ADDRESS, g_param_spec_string ("address", "Address", "Address to receive packets for. This is equivalent to the " "multicast-group property for now", UDP_DEFAULT_MULTICAST_GROUP, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); gst_element_class_add_pad_template (gstelement_class, gst_static_pad_template_get (&src_template)); gst_element_class_set_static_metadata (gstelement_class, "UDP packet receiver", "Source/Network", "Receive data over the network via UDP", "Wim Taymans <*****@*****.**>, " "Thijs Vermeir <*****@*****.**>"); gstelement_class->change_state = gst_udpsrc_change_state; gstbasesrc_class->unlock = gst_udpsrc_unlock; gstbasesrc_class->unlock_stop = gst_udpsrc_unlock_stop; gstbasesrc_class->get_caps = gst_udpsrc_getcaps; gstbasesrc_class->negotiate = gst_udpsrc_negotiate; gstpushsrc_class->create = gst_udpsrc_create; }
static void ephy_title_box_class_init (EphyTitleBoxClass *klass) { GObjectClass *object_class = G_OBJECT_CLASS (klass); GtkWidgetClass *widget_class = GTK_WIDGET_CLASS (klass); object_class->dispose = ephy_title_box_dispose; object_class->get_property = ephy_title_box_get_property; object_class->set_property = ephy_title_box_set_property; object_class->constructed = ephy_title_box_constructed; widget_class->button_press_event = ephy_title_box_button_press_event; widget_class->button_release_event = ephy_title_box_button_release_event; widget_class->get_preferred_width = ephy_title_box_get_preferred_width; /** * * EphyTitleBox:window: * * The parent window. */ object_properties[PROP_WINDOW] = g_param_spec_object ("window", "Window", "The parent window", EPHY_TYPE_WINDOW, G_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS); /** * EphyTitleBox:mode: * * The mode of the title box. */ object_properties[PROP_MODE] = g_param_spec_enum ("mode", "Mode", "The mode of the title box", EPHY_TYPE_TITLE_BOX_MODE, EPHY_TITLE_BOX_MODE_LOCATION_ENTRY, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS); g_object_class_install_properties (object_class, N_PROPERTIES, object_properties); /** * EphyTitleBox::lock-clicked: * @title_box: the object on which the signal is emitted * @lock_position: the position of the lock icon * * Emitted when the user clicks the security icon inside the * #EphyTitleBox. */ signals[LOCK_CLICKED] = g_signal_new ("lock-clicked", EPHY_TYPE_TITLE_BOX, G_SIGNAL_RUN_FIRST | G_SIGNAL_RUN_LAST, 0, NULL, NULL, NULL, G_TYPE_NONE, 1, GDK_TYPE_RECTANGLE | G_SIGNAL_TYPE_STATIC_SCOPE); }
static void sch_output_stream_class_init(gpointer g_class, gpointer g_class_data) { GObjectClass *klasse = G_OBJECT_CLASS(g_class); g_type_class_add_private(klasse, sizeof(SchOutputStreamPrivate)); klasse->get_property = sch_output_stream_get_property; klasse->set_property = sch_output_stream_set_property; g_object_class_install_property( klasse, SCH_OUTPUT_STREAM_BASE_STREAM, g_param_spec_object( "base-stream", "Base Stream", "Base Stream", G_TYPE_OUTPUT_STREAM, G_PARAM_LAX_VALIDATION | G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS ) ); #if 0 g_object_class_install_property( klasse, SCH_OUTPUT_STREAM_Y1, g_param_spec_int( "y1", "Y1", "Y1", G_MININT, G_MAXINT, 0, G_PARAM_LAX_VALIDATION | G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS ) ); g_object_class_install_property( klasse, SCH_OUTPUT_STREAM_X2, g_param_spec_int( "x2", "X2", "X2", G_MININT, G_MAXINT, 0, G_PARAM_LAX_VALIDATION | G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS ) ); g_object_class_install_property( klasse, SCH_OUTPUT_STREAM_Y2, g_param_spec_int( "y2", "Y2", "Y2", G_MININT, G_MAXINT, 0, G_PARAM_LAX_VALIDATION | G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS ) ); g_object_class_install_property( klasse, SCH_OUTPUT_STREAM_COLOR, g_param_spec_int( "color", "Color", "Color", 0, /*COLOR_MIN,*/ 31, /*COLOR_MAX,*/ 3, /*COLOR_GRAPHIC,*/ G_PARAM_LAX_VALIDATION | G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS ) ); g_object_class_install_property( klasse, SCH_OUTPUT_STREAM_WIDTH, g_param_spec_int( "line-width", "Line Width", "Line Width", 0, G_MAXINT, 0, G_PARAM_LAX_VALIDATION | G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS ) ); g_object_class_install_property( klasse, SCH_OUTPUT_STREAM_CAP_STYLE, g_param_spec_int( "line-cap-style", "Line Cap Style", "Line Cap Style", 0, 2, 0, G_PARAM_LAX_VALIDATION | G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS ) ); g_object_class_install_property( klasse, SCH_OUTPUT_STREAM_DASH_STYLE, g_param_spec_int( "line-dash-style", "Line dash Style", "Line dash Style", 0, 4, 0, G_PARAM_LAX_VALIDATION | G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS ) ); g_object_class_install_property( klasse, SCH_OUTPUT_STREAM_DASH_LENGTH, g_param_spec_int( "line-dash-length", "Line Dash Length", "Line Dash Length", -1, G_MAXINT, -1, G_PARAM_LAX_VALIDATION | G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS ) ); g_object_class_install_property( klasse, SCH_OUTPUT_STREAM_DASH_SPACE, g_param_spec_int( "line-dash-space", "Line Dash Space", "Line Dash Space", -1, G_MAXINT, -1, G_PARAM_LAX_VALIDATION | G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS ) ); #endif }
static void gst_aravis_class_init (GstAravisClass * klass) { GObjectClass *gobject_class = G_OBJECT_CLASS (klass); GstBaseSrcClass *gstbasesrc_class = GST_BASE_SRC_CLASS (klass); GstPushSrcClass *gstpushsrc_class = GST_PUSH_SRC_CLASS (klass); gobject_class->finalize = gst_aravis_finalize; gobject_class->set_property = gst_aravis_set_property; gobject_class->get_property = gst_aravis_get_property; g_object_class_install_property (gobject_class, PROP_CAMERA_NAME, g_param_spec_string ("camera-name", "Camera name", "Name of the camera", NULL, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (gobject_class, PROP_CAMERA, g_param_spec_object ("camera", "Camera Object", "Camera instance to retrieve additional information", ARV_TYPE_CAMERA, G_PARAM_READABLE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (gobject_class, PROP_GAIN, g_param_spec_double ("gain", "Gain", "Gain (dB)", -1.0, 500.0, 0.0, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (gobject_class, PROP_GAIN_AUTO, g_param_spec_boolean ("gain-auto", "Auto Gain", "Auto Gain Mode", TRUE, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (gobject_class, PROP_EXPOSURE, g_param_spec_double ("exposure", "Exposure", "Exposure time (µs)", -1, 100000000.0, 500.0, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (gobject_class, PROP_EXPOSURE_AUTO, g_param_spec_boolean ("exposure-auto", "Auto Exposure", "Auto Exposure Mode", TRUE, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (gobject_class, PROP_OFFSET_X, g_param_spec_int ("offset-x", "x Offset", "Offset in x direction", 0, G_MAXINT, 0, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (gobject_class, PROP_OFFSET_Y, g_param_spec_int ("offset-y", "y Offset", "Offset in y direction", 0, G_MAXINT, 0, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (gobject_class, PROP_H_BINNING, g_param_spec_int ("h-binning", "Horizontal binning", "CCD horizontal binning", 1, G_MAXINT, 1, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (gobject_class, PROP_V_BINNING, g_param_spec_int ("v-binning", "Vertical binning", "CCD vertical binning", 1, G_MAXINT, 1, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); GST_DEBUG_CATEGORY_INIT (aravis_debug, "aravissrc", 0, "Aravis interface"); gstbasesrc_class->get_caps = gst_aravis_get_caps; gstbasesrc_class->set_caps = gst_aravis_set_caps; gstbasesrc_class->start = gst_aravis_start; gstbasesrc_class->stop = gst_aravis_stop; gstbasesrc_class->get_times = gst_aravis_get_times; gstpushsrc_class->create = gst_aravis_create; }
object_class->get_property = cell_renderer_break_icon_get_property; object_class->set_property = cell_renderer_break_icon_set_property; object_class->finalize = cell_renderer_break_icon_finalize; cell_class->get_size = cell_renderer_break_icon_get_size; cell_class->render = cell_renderer_break_icon_render; cell_class->activate = cell_renderer_break_icon_activate; g_object_class_install_property (object_class, PROP_PIXBUF_ENABLED, g_param_spec_object ( "pixbuf_enabled", "Pixbuf Object", "Enabled break image", GDK_TYPE_PIXBUF, G_PARAM_READWRITE) ); g_object_class_install_property (object_class, PROP_PIXBUF_DISABLED, g_param_spec_object ( "pixbuf_disabled", "Pixbuf Object", "Disabled break image", GDK_TYPE_PIXBUF, G_PARAM_READWRITE) ); g_object_class_install_property (object_class,
g_object_class_install_property (gobject_class, PROP_PROTOCOL, g_param_spec_enum ("protocol", P_("Socket protocol"), P_("The protocol to use for socket construction, or 0 for default"), G_TYPE_SOCKET_PROTOCOL, G_SOCKET_PROTOCOL_DEFAULT, G_PARAM_CONSTRUCT | G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (gobject_class, PROP_LOCAL_ADDRESS, g_param_spec_object ("local-address", P_("Local address"), P_("The local address constructed sockets will be bound to"), G_TYPE_SOCKET_ADDRESS, G_PARAM_CONSTRUCT | G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (gobject_class, PROP_TIMEOUT, g_param_spec_uint ("timeout", P_("Socket timeout"), P_("The I/O timeout for sockets, or 0 for none"), 0, G_MAXUINT, 0, G_PARAM_CONSTRUCT | G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (gobject_class, PROP_ENABLE_PROXY, g_param_spec_boolean ("enable-proxy",
G_PARAM_STATIC_STRINGS)); /** * GTlsCertificate:issuer: * * A #GTlsCertificate representing the entity that issued this * certificate. If %NULL, this means that the certificate is either * self-signed, or else the certificate of the issuer is not * available. * * Since: 2.28 */ g_object_class_install_property (gobject_class, PROP_ISSUER, g_param_spec_object ("issuer", P_("Issuer"), P_("The certificate for the issuing entity"), G_TYPE_TLS_CERTIFICATE, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS)); } static GTlsCertificate * g_tls_certificate_new_internal (const gchar *certificate_pem, const gchar *private_key_pem, GError **error) { GObject *cert; GTlsBackend *backend; backend = g_tls_backend_get_default ();
GtkWidgetClass *widget_class; gobject_class = G_OBJECT_CLASS (class); object_class = (GtkObjectClass*) class; widget_class = (GtkWidgetClass*) class; button_class = (GtkButtonClass*) class; check_button_class = (GtkCheckButtonClass*) class; gobject_class->set_property = gtk_radio_button_set_property; gobject_class->get_property = gtk_radio_button_get_property; g_object_class_install_property (gobject_class, PROP_GROUP, g_param_spec_object ("group", P_("Group"), P_("The radio button whose group this widget belongs to."), GTK_TYPE_RADIO_BUTTON, GTK_PARAM_WRITABLE)); object_class->destroy = gtk_radio_button_destroy; widget_class->focus = gtk_radio_button_focus; button_class->clicked = gtk_radio_button_clicked; check_button_class->draw_indicator = gtk_radio_button_draw_indicator; class->group_changed = NULL; /** * GtkRadioButton::group-changed: * @style: the object which received the signal
static void ide_run_manager_class_init (IdeRunManagerClass *klass) { GObjectClass *object_class = G_OBJECT_CLASS (klass); object_class->finalize = ide_run_manager_finalize; object_class->get_property = ide_run_manager_get_property; object_class->set_property = ide_run_manager_set_property; properties [PROP_BUSY] = g_param_spec_boolean ("busy", "Busy", "Busy", FALSE, (G_PARAM_READABLE | G_PARAM_STATIC_STRINGS)); properties [PROP_HANDLER] = g_param_spec_string ("handler", "Handler", "Handler", "run", (G_PARAM_READABLE | G_PARAM_STATIC_STRINGS)); properties [PROP_BUILD_TARGET] = g_param_spec_object ("build-target", "Build Target", "The IdeBuildTarget that will be run", IDE_TYPE_BUILD_TARGET, (G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); g_object_class_install_properties (object_class, N_PROPS, properties); /** * IdeRunManager::run: * @self: An #IdeRunManager * @runner: An #IdeRunner * * This signal is emitted right before ide_runner_run_async() is called * on an #IdeRunner. It can be used by plugins to tweak things right * before the runner is executed. */ signals [RUN] = g_signal_new ("run", G_TYPE_FROM_CLASS (klass), G_SIGNAL_RUN_LAST, 0, NULL, NULL, NULL, G_TYPE_NONE, 1, IDE_TYPE_RUNNER); /** * IdeRunManager::stopped: * * This signal is emitted when the run manager has stopped the currently * executing inferior. */ signals [STOPPED] = g_signal_new ("stopped", G_TYPE_FROM_CLASS (klass), G_SIGNAL_RUN_LAST, 0, NULL, NULL, NULL, G_TYPE_NONE, 0); }
static void pluma_document_saver_class_init (PlumaDocumentSaverClass *klass) { GObjectClass *object_class = G_OBJECT_CLASS (klass); object_class->finalize = pluma_document_saver_finalize; object_class->dispose = pluma_document_saver_dispose; object_class->set_property = pluma_document_saver_set_property; object_class->get_property = pluma_document_saver_get_property; g_object_class_install_property (object_class, PROP_DOCUMENT, g_param_spec_object ("document", "Document", "The PlumaDocument this PlumaDocumentSaver is associated with", PLUMA_TYPE_DOCUMENT, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (object_class, PROP_URI, g_param_spec_string ("uri", "URI", "The URI this PlumaDocumentSaver saves the document to", "", G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (object_class, PROP_ENCODING, g_param_spec_boxed ("encoding", "URI", "The encoding of the saved file", PLUMA_TYPE_ENCODING, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (object_class, PROP_NEWLINE_TYPE, g_param_spec_enum ("newline-type", "Newline type", "The accepted types of line ending", PLUMA_TYPE_DOCUMENT_NEWLINE_TYPE, PLUMA_DOCUMENT_NEWLINE_TYPE_LF, G_PARAM_READWRITE | G_PARAM_STATIC_NAME | G_PARAM_STATIC_BLURB | G_PARAM_CONSTRUCT_ONLY)); g_object_class_install_property (object_class, PROP_FLAGS, g_param_spec_flags ("flags", "Flags", "The flags for the saving operation", PLUMA_TYPE_DOCUMENT_SAVE_FLAGS, 0, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY)); signals[SAVING] = g_signal_new ("saving", G_OBJECT_CLASS_TYPE (object_class), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (PlumaDocumentSaverClass, saving), NULL, NULL, pluma_marshal_VOID__BOOLEAN_POINTER, G_TYPE_NONE, 2, G_TYPE_BOOLEAN, G_TYPE_POINTER); }
static void nm_device_wimax_class_init (NMDeviceWimaxClass *wimax_class) { GObjectClass *object_class = G_OBJECT_CLASS (wimax_class); NMDeviceClass *device_class = NM_DEVICE_CLASS (wimax_class); g_type_class_add_private (wimax_class, sizeof (NMDeviceWimaxPrivate)); /* virtual methods */ object_class->constructed = constructed; object_class->get_property = get_property; object_class->dispose = dispose; device_class->connection_compatible = connection_compatible; device_class->get_setting_type = get_setting_type; device_class->get_hw_address = get_hw_address; wimax_class->nsp_removed = nsp_removed; /* properties */ /** * NMDeviceWimax:hw-address: * * The hardware (MAC) address of the device. * * Deprecated: 1.2: WiMAX is no longer supported. **/ g_object_class_install_property (object_class, PROP_HW_ADDRESS, g_param_spec_string (NM_DEVICE_WIMAX_HW_ADDRESS, "", "", NULL, G_PARAM_READABLE | G_PARAM_STATIC_STRINGS)); /** * NMDeviceWimax:active-nsp: * * The active #NMWimaxNsp of the device. * * Deprecated: 1.2: WiMAX is no longer supported. **/ g_object_class_install_property (object_class, PROP_ACTIVE_NSP, g_param_spec_object (NM_DEVICE_WIMAX_ACTIVE_NSP, "", "", NM_TYPE_WIMAX_NSP, G_PARAM_READABLE | G_PARAM_STATIC_STRINGS)); /** * NMDeviceWimax:center-frequency: * * The center frequency (in KHz) of the radio channel the device is using to * communicate with the network when connected. Has no meaning when the * device is not connected. * * Deprecated: 1.2: WiMAX is no longer supported. **/ g_object_class_install_property (object_class, PROP_CENTER_FREQ, g_param_spec_uint (NM_DEVICE_WIMAX_CENTER_FREQUENCY, "", "", 0, G_MAXUINT, 0, G_PARAM_READABLE | G_PARAM_STATIC_STRINGS)); /** * NMDeviceWimax:rssi: * * RSSI of the current radio link in dBm. This value indicates how strong * the raw received RF signal from the base station is, but does not * indicate the overall quality of the radio link. Has no meaning when the * device is not connected. * * Deprecated: 1.2: WiMAX is no longer supported. **/ g_object_class_install_property (object_class, PROP_RSSI, g_param_spec_int (NM_DEVICE_WIMAX_RSSI, "", "", G_MININT, G_MAXINT, 0, G_PARAM_READABLE | G_PARAM_STATIC_STRINGS)); /** * NMDeviceWimax:cinr: * * CINR (Carrier to Interference + Noise Ratio) of the current radio link * in dB. CINR is a more accurate measure of radio link quality. Has no * meaning when the device is not connected. * * Deprecated: 1.2: WiMAX is no longer supported. **/ g_object_class_install_property (object_class, PROP_CINR, g_param_spec_int (NM_DEVICE_WIMAX_CINR, "", "", G_MININT, G_MAXINT, 0, G_PARAM_READABLE | G_PARAM_STATIC_STRINGS)); /** * NMDeviceWimax:tx-power: * * Average power of the last burst transmitted by the device, in units of * 0.5 dBm. i.e. a TxPower of -11 represents an actual device TX power of * -5.5 dBm. Has no meaning when the device is not connected. * * Deprecated: 1.2: WiMAX is no longer supported. **/ g_object_class_install_property (object_class, PROP_TX_POWER, g_param_spec_int (NM_DEVICE_WIMAX_TX_POWER, "", "", G_MININT, G_MAXINT, 0, G_PARAM_READABLE | G_PARAM_STATIC_STRINGS)); /** * NMDeviceWimax:bsid: * * The ID of the serving base station as received from the network. Has * no meaning when the device is not connected. * * Deprecated: 1.2: WiMAX is no longer supported. **/ g_object_class_install_property (object_class, PROP_BSID, g_param_spec_string (NM_DEVICE_WIMAX_BSID, "", "", NULL, G_PARAM_READABLE | G_PARAM_STATIC_STRINGS)); /** * NMDeviceWimax:nsps: * * List of all WiMAX Network Service Providers the device can see. * * Since: 0.9.10 * Deprecated: 1.2: WiMAX is no longer supported. **/ g_object_class_install_property (object_class, PROP_NSPS, g_param_spec_boxed (NM_DEVICE_WIMAX_NSPS, "", "", NM_TYPE_OBJECT_ARRAY, G_PARAM_READABLE | G_PARAM_STATIC_STRINGS)); /* signals */ /** * NMDeviceWimax::nsp-added: * @self: the wimax device that received the signal * @nsp: the new NSP * * Notifies that a #NMWimaxNsp is added to the wimax device. * * Deprecated: 1.2: WiMAX is no longer supported. **/ signals[NSP_ADDED] = g_signal_new ("nsp-added", G_OBJECT_CLASS_TYPE (object_class), G_SIGNAL_RUN_FIRST, G_STRUCT_OFFSET (NMDeviceWimaxClass, nsp_added), NULL, NULL, g_cclosure_marshal_VOID__OBJECT, G_TYPE_NONE, 1, G_TYPE_OBJECT); /** * NMDeviceWimax::nsp-removed: * @self: the wimax device that received the signal * @nsp: the removed NSP * * Notifies that a #NMWimaxNsp is removed from the wimax device. * * Deprecated: 1.2: WiMAX is no longer supported. **/ signals[NSP_REMOVED] = g_signal_new ("nsp-removed", G_OBJECT_CLASS_TYPE (object_class), G_SIGNAL_RUN_FIRST, G_STRUCT_OFFSET (NMDeviceWimaxClass, nsp_removed), NULL, NULL, g_cclosure_marshal_VOID__OBJECT, G_TYPE_NONE, 1, G_TYPE_OBJECT); }
static void rb_visualizer_page_class_init (RBVisualizerPageClass *klass) { GObjectClass *object_class = G_OBJECT_CLASS (klass); RBDisplayPageClass *page_class = RB_DISPLAY_PAGE_CLASS (klass); object_class->constructed = impl_constructed; object_class->get_property = impl_get_property; object_class->set_property = impl_set_property; object_class->dispose = impl_dispose; page_class->selected = impl_selected; page_class->deselected = impl_deselected; page_class->show_popup = impl_show_popup; g_object_class_install_property (object_class, PROP_SINK, g_param_spec_object ("sink", "sink", "gstreamer sink element", GST_TYPE_ELEMENT, G_PARAM_READABLE)); g_object_class_install_property (object_class, PROP_POPUP, g_param_spec_object ("popup", "popup", "popup menu", GTK_TYPE_WIDGET, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY)); g_object_class_install_property (object_class, PROP_FULLSCREEN_ACTION, g_param_spec_object ("fullscreen-action", "fullscreen action", "GtkToggleAction for fullscreen", GTK_TYPE_TOGGLE_ACTION, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY)); signals[START] = g_signal_new ("start", RB_TYPE_VISUALIZER_PAGE, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0); signals[STOP] = g_signal_new ("stop", RB_TYPE_VISUALIZER_PAGE, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0); signals[FULLSCREEN] = g_signal_new_class_handler ("toggle-fullscreen", RB_TYPE_VISUALIZER_PAGE, G_SIGNAL_RUN_LAST, G_CALLBACK (toggle_fullscreen), NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0); }
P_("Whether the plug is embedded"), FALSE, GTK_PARAM_READABLE)); /** * GtkPlug:socket-window: * * The window of the socket the plug is embedded in. * * Since: 2.14 */ g_object_class_install_property (gobject_class, PROP_SOCKET_WINDOW, g_param_spec_object ("socket-window", P_("Socket Window"), P_("The window of the socket the plug is embedded in"), GDK_TYPE_WINDOW, GTK_PARAM_READABLE)); /** * GtkPlug::embedded: * @plug: the object on which the signal was emitted * * Gets emitted when the plug becomes embedded in a socket. */ plug_signals[EMBEDDED] = g_signal_new (I_("embedded"), G_OBJECT_CLASS_TYPE (class), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (GtkPlugClass, embedded), NULL, NULL,
static void ide_terminal_page_class_init (IdeTerminalPageClass *klass) { GObjectClass *object_class = G_OBJECT_CLASS (klass); GtkWidgetClass *widget_class = GTK_WIDGET_CLASS (klass); IdePageClass *page_class = IDE_PAGE_CLASS (klass); object_class->finalize = ide_terminal_page_finalize; object_class->get_property = ide_terminal_page_get_property; object_class->set_property = ide_terminal_page_set_property; widget_class->realize = gbp_terminal_page_realize; widget_class->get_preferred_width = gbp_terminal_page_get_preferred_width; widget_class->get_preferred_height = gbp_terminal_page_get_preferred_height; widget_class->grab_focus = gbp_terminal_page_grab_focus; page_class->create_split = gbp_terminal_page_create_split; gtk_widget_class_set_template_from_resource (widget_class, "/org/gnome/libide-terminal/ui/ide-terminal-page.ui"); gtk_widget_class_bind_template_child (widget_class, IdeTerminalPage, terminal_top); gtk_widget_class_bind_template_child (widget_class, IdeTerminalPage, top_scrollbar); gtk_widget_class_bind_template_child (widget_class, IdeTerminalPage, terminal_overlay_top); properties [PROP_CLOSE_ON_EXIT] = g_param_spec_boolean ("close-on-exit", "Close on Exit", "Close on Exit", TRUE, (G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS)); properties [PROP_MANAGE_SPAWN] = g_param_spec_boolean ("manage-spawn", "Manage Spawn", "Manage Spawn", TRUE, (G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS)); properties [PROP_RESPAWN_ON_EXIT] = g_param_spec_boolean ("respawn-on-exit", "Respawn on Exit", "Respawn on Exit", TRUE, (G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS)); properties [PROP_PTY] = g_param_spec_object ("pty", "Pty", "The pseudo terminal to use", VTE_TYPE_PTY, (G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS)); properties [PROP_LAUNCHER] = g_param_spec_object ("launcher", "Launcher", "The launcher to use for spawning", IDE_TYPE_TERMINAL_LAUNCHER, (G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); g_object_class_install_properties (object_class, N_PROPS, properties); signals [TEXT_INSERTED] = g_signal_new ("text-inserted", G_TYPE_FROM_CLASS (klass), G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0); g_signal_set_va_marshaller (signals [TEXT_INSERTED], G_TYPE_FROM_CLASS (klass), g_cclosure_marshal_VOID__VOIDv); }
gimv_cell_renderer_pixmap_class_init (GimvCellRendererPixmapClass *class) { GObjectClass *object_class = G_OBJECT_CLASS (class); GtkCellRendererClass *cell_class = GTK_CELL_RENDERER_CLASS (class); object_class->get_property = gimv_cell_renderer_pixmap_get_property; object_class->set_property = gimv_cell_renderer_pixmap_set_property; cell_class->get_size = gimv_cell_renderer_pixmap_get_size; cell_class->render = gimv_cell_renderer_pixmap_render; g_object_class_install_property (object_class, PROP_PIXMAP, g_param_spec_object ("pixmap", _("Pixmap Object"), _("The pixmap to render."), GDK_TYPE_PIXMAP, G_PARAM_READABLE | G_PARAM_WRITABLE)); g_object_class_install_property (object_class, PROP_MASK, g_param_spec_object ("mask", _("Mask Object"), _("The mask to render."), GDK_TYPE_PIXMAP, G_PARAM_READABLE | G_PARAM_WRITABLE)); g_object_class_install_property (object_class, PROP_PIXMAP_EXPANDER_OPEN, g_param_spec_object ("pixmap_expander_open",
static void webkit_hit_test_result_class_init(WebKitHitTestResultClass* webHitTestResultClass) { GObjectClass* objectClass = G_OBJECT_CLASS(webHitTestResultClass); objectClass->finalize = webkit_hit_test_result_finalize; objectClass->get_property = webkit_hit_test_result_get_property; objectClass->set_property = webkit_hit_test_result_set_property; webkit_init(); /** * WebKitHitTestResult:context: * * Flags indicating the kind of target that received the event. * * Since: 1.1.15 */ g_object_class_install_property(objectClass, PROP_CONTEXT, g_param_spec_flags("context", _("Context"), _("Flags indicating the kind of target that received the event."), WEBKIT_TYPE_HIT_TEST_RESULT_CONTEXT, WEBKIT_HIT_TEST_RESULT_CONTEXT_DOCUMENT, static_cast<GParamFlags>((WEBKIT_PARAM_READWRITE|G_PARAM_CONSTRUCT_ONLY)))); /** * WebKitHitTestResult:link-uri: * * The URI to which the target that received the event points, if any. * * Since: 1.1.15 */ g_object_class_install_property(objectClass, PROP_LINK_URI, g_param_spec_string("link-uri", _("Link URI"), _("The URI to which the target that received the event points, if any."), NULL, static_cast<GParamFlags>(WEBKIT_PARAM_READWRITE|G_PARAM_CONSTRUCT_ONLY))); /** * WebKitHitTestResult:image-uri: * * The URI of the image that is part of the target that received the event, if any. * * Since: 1.1.15 */ g_object_class_install_property(objectClass, PROP_IMAGE_URI, g_param_spec_string("image-uri", _("Image URI"), _("The URI of the image that is part of the target that received the event, if any."), NULL, static_cast<GParamFlags>(WEBKIT_PARAM_READWRITE|G_PARAM_CONSTRUCT_ONLY))); /** * WebKitHitTestResult:media-uri: * * The URI of the media that is part of the target that received the event, if any. * * Since: 1.1.15 */ g_object_class_install_property(objectClass, PROP_MEDIA_URI, g_param_spec_string("media-uri", _("Media URI"), _("The URI of the media that is part of the target that received the event, if any."), NULL, static_cast<GParamFlags>(WEBKIT_PARAM_READWRITE|G_PARAM_CONSTRUCT_ONLY))); /** * WebKitHitTestResult:inner-node: * * The DOM node at the coordinates where the hit test * happened. Keep in mind that the node might not be * representative of the information given in the context * property, since WebKit uses a series of heuristics to figure * out that information. One common example is inner-node having * the text node inside the anchor (<a>) tag; WebKit knows the * whole context and will put WEBKIT_HIT_TEST_RESULT_CONTEXT_LINK * in the 'context' property, but the user might be confused by * the lack of any link tag in 'inner-node'. * * Since: 1.3.2 */ g_object_class_install_property(objectClass, PROP_INNER_NODE, g_param_spec_object("inner-node", _("Inner node"), _("The inner DOM node associated with the hit test result."), WEBKIT_TYPE_DOM_NODE, static_cast<GParamFlags>(WEBKIT_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY))); g_type_class_add_private(webHitTestResultClass, sizeof(WebKitHitTestResultPrivate)); }
static void ges_track_element_class_init (GESTrackElementClass * klass) { GObjectClass *object_class = G_OBJECT_CLASS (klass); GESTimelineElementClass *element_class = GES_TIMELINE_ELEMENT_CLASS (klass); g_type_class_add_private (klass, sizeof (GESTrackElementPrivate)); object_class->get_property = ges_track_element_get_property; object_class->set_property = ges_track_element_set_property; object_class->dispose = ges_track_element_dispose; object_class->finalize = ges_track_element_finalize; /** * GESTrackElement:active: * * Whether the object should be taken into account in the #GESTrack output. * If #FALSE, then its contents will not be used in the resulting track. */ properties[PROP_ACTIVE] = g_param_spec_boolean ("active", "Active", "Use object in output", TRUE, G_PARAM_READWRITE); g_object_class_install_property (object_class, PROP_ACTIVE, properties[PROP_ACTIVE]); properties[PROP_TRACK_TYPE] = g_param_spec_flags ("track-type", "Track Type", "The track type of the object", GES_TYPE_TRACK_TYPE, GES_TRACK_TYPE_UNKNOWN, G_PARAM_READWRITE | G_PARAM_CONSTRUCT); g_object_class_install_property (object_class, PROP_TRACK_TYPE, properties[PROP_TRACK_TYPE]); properties[PROP_TRACK] = g_param_spec_object ("track", "Track", "The track the object is in", GES_TYPE_TRACK, G_PARAM_READABLE); g_object_class_install_property (object_class, PROP_TRACK, properties[PROP_TRACK]); /** * GESTrackElement::deep-notify: * @track_element: a #GESTrackElement * @prop_object: the object that originated the signal * @prop: the property that changed * * The deep notify signal is used to be notified of property changes of all * the childs of @track_element */ ges_track_element_signals[DEEP_NOTIFY] = g_signal_new ("deep-notify", G_TYPE_FROM_CLASS (klass), G_SIGNAL_RUN_FIRST | G_SIGNAL_NO_RECURSE | G_SIGNAL_DETAILED | G_SIGNAL_NO_HOOKS, 0, NULL, NULL, g_cclosure_marshal_generic, G_TYPE_NONE, 2, GST_TYPE_ELEMENT, G_TYPE_PARAM); element_class->set_start = _set_start; element_class->set_duration = _set_duration; element_class->set_inpoint = _set_inpoint; element_class->set_priority = _set_priority; element_class->deep_copy = ges_track_element_copy_properties; klass->create_gnl_object = ges_track_element_create_gnl_object_func; klass->list_children_properties = default_list_children_properties; }
static void rb_track_transfer_batch_class_init (RBTrackTransferBatchClass *klass) { GObjectClass *object_class = G_OBJECT_CLASS (klass); object_class->set_property = impl_set_property; object_class->get_property = impl_get_property; object_class->finalize = impl_finalize; object_class->dispose = impl_dispose; /** * RBTrackTransferBatch:media-types * * Array of media type strings describing the acceptable * destination formats. If NULL, no format conversion will * be done. */ g_object_class_install_property (object_class, PROP_MEDIA_TYPES_STRV, g_param_spec_boxed ("media-types-strv", "media types", "Set of allowable destination media types", G_TYPE_STRV, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY)); /** * RBTrackTransferBatch:media-types * * GList of media type strings describing the acceptable * destination formats. If NULL, no format conversion will * be done. */ g_object_class_install_property (object_class, PROP_MEDIA_TYPES, g_param_spec_pointer ("media-types", "media types", "Set of allowable destination media types", G_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY)); /** * RBTrackTransferBatch:source * * The RBSource from which the tracks are being transferred. */ g_object_class_install_property (object_class, PROP_SOURCE, g_param_spec_object ("source", "source source", "RBSource from which the tracks are being transferred", RB_TYPE_SOURCE, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY)); /** * RBTrackTransferBatch:destination * * The RBSource to which the tracks are being transferred. */ g_object_class_install_property (object_class, PROP_DESTINATION, g_param_spec_object ("destination", "destination source", "RBSource to which the tracks are being transferred", RB_TYPE_SOURCE, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY)); /** * RBTrackTransferBatch:total-entries * * Total number of entries in the transfer batch. */ g_object_class_install_property (object_class, PROP_TOTAL_ENTRIES, g_param_spec_int ("total-entries", "total entries", "Number of entries in the batch", 0, G_MAXINT, 0, G_PARAM_READABLE)); /** * RBTrackTransferBatch:done-entries * * Number of entries in the batch that have been transferred. */ g_object_class_install_property (object_class, PROP_DONE_ENTRIES, g_param_spec_int ("done-entries", "done entries", "Number of entries already transferred", 0, G_MAXINT, 0, G_PARAM_READABLE)); /** * RBTrackTransferBatch:progress * * Fraction of the transfer batch that has been processed. */ g_object_class_install_property (object_class, PROP_PROGRESS, g_param_spec_double ("progress", "progress fraction", "Fraction of the batch that has been transferred", 0.0, 1.0, 0.0, G_PARAM_READABLE)); /** * RBTrackTransferBatch:entry-list * * A list of all entries in the batch. */ g_object_class_install_property (object_class, PROP_ENTRY_LIST, g_param_spec_pointer ("entry-list", "entry list", "list of all entries in the batch", G_PARAM_READABLE)); /** * RBTrackTransferBatch::started: * @batch: the #RBTrackTransferBatch * * Emitted when the batch is started. This will be after * all previous batches have finished, which is not necessarily * when #rb_track_transfer_manager_start_batch is called. */ signals [STARTED] = g_signal_new ("started", G_OBJECT_CLASS_TYPE (object_class), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (RBTrackTransferBatchClass, started), NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0); /** * RBTrackTransferBatch::complete: * @batch: the #RBTrackTransferBatch * * Emitted when the batch is complete. This will be immediately * after the final entry transfer is complete. */ signals [COMPLETE] = g_signal_new ("complete", G_OBJECT_CLASS_TYPE (object_class), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (RBTrackTransferBatchClass, complete), NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0); /** * RBTrackTransferBatch::cancelled: * @batch: the #RBTrackTransferBatch * * Emitted when the batch is cancelled. * * hmm. will 'complete' still be emitted in this case? */ signals [CANCELLED] = g_signal_new ("cancelled", G_OBJECT_CLASS_TYPE (object_class), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (RBTrackTransferBatchClass, cancelled), NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0); /** * RBTrackTransferBatch::get-dest-uri: * @batch: the #RBTrackTransferBatch * @entry: the #RhythmDBEntry to be transferred * @mediatype: the destination media type for the transfer * @extension: usual extension for the destionation media type * * The batch emits this to allow the creator to provide a destination * URI for an entry being transferred. This is emitted after the * output media type is decided, so the usual extension for the media * type can be taken into consideration. */ signals [GET_DEST_URI] = g_signal_new ("get-dest-uri", G_OBJECT_CLASS_TYPE (object_class), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (RBTrackTransferBatchClass, get_dest_uri), NULL, NULL, rb_marshal_STRING__BOXED_STRING_STRING, G_TYPE_STRING, 3, RHYTHMDB_TYPE_ENTRY, G_TYPE_STRING, G_TYPE_STRING); /** * RBTrackTransferBatch::overwrite-prompt: * @batch: the #RBTrackTransferBatch * @file: the #GFile that may be overwritten * * Emitted when the destination URI for a transfer already exists. * If a handler returns TRUE, the file will be overwritten, otherwise * the transfer will be skipped. */ signals [OVERWRITE_PROMPT] = g_signal_new ("overwrite-prompt", G_OBJECT_CLASS_TYPE (object_class), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (RBTrackTransferBatchClass, overwrite_prompt), NULL, NULL, rb_marshal_BOOLEAN__OBJECT, G_TYPE_BOOLEAN, 1, G_TYPE_FILE); /** * RBTrackTransferBatch::track-started: * @batch: the #RBTrackTransferBatch * @entry: the #RhythmDBEntry being transferred * @dest: the destination URI for the transfer * * Emitted when a new entry is about to be transferred. * This will be emitted for each entry in the batch, unless * the batch is cancelled. */ signals [TRACK_STARTED] = g_signal_new ("track-started", G_OBJECT_CLASS_TYPE (object_class), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (RBTrackTransferBatchClass, track_started), NULL, NULL, rb_marshal_VOID__BOXED_STRING, G_TYPE_NONE, 2, RHYTHMDB_TYPE_ENTRY, G_TYPE_STRING); /** * RBTrackTransferBatch::track-progress: * @batch: the #RBTrackTransferBatch * @entry: the #RhythmDBEntry being transferred * @dest: the destination URI for the transfer * @done: some measure of how much of the transfer is done * @total: the total amount of that same measure * @fraction: the fraction of the transfer that is done * * Emitted regularly throughout the transfer to allow progress bars * and other UI elements to be updated. */ signals [TRACK_PROGRESS] = g_signal_new ("track-progress", G_OBJECT_CLASS_TYPE (object_class), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (RBTrackTransferBatchClass, track_progress), NULL, NULL, rb_marshal_VOID__BOXED_STRING_INT_INT_DOUBLE, G_TYPE_NONE, 5, RHYTHMDB_TYPE_ENTRY, G_TYPE_STRING, G_TYPE_INT, G_TYPE_INT, G_TYPE_DOUBLE); /** * RBTrackTransferBatch::track-done: * @batch: the #RBTrackTransferBatch * @entry: the #RhythmDBEntry that was transferred * @dest: the destination URI for the transfer * @dest_size: size of the destination file * @dest_mediatype: the media type of the destination file * @error: any error that occurred during transfer * * Emitted when a track transfer is complete, whether because * the track was fully transferred, because an error occurred, * or because the batch was cancelled (maybe..). */ signals [TRACK_DONE] = g_signal_new ("track-done", G_OBJECT_CLASS_TYPE (object_class), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (RBTrackTransferBatchClass, track_done), NULL, NULL, rb_marshal_VOID__BOXED_STRING_UINT64_STRING_POINTER, G_TYPE_NONE, 5, RHYTHMDB_TYPE_ENTRY, G_TYPE_STRING, G_TYPE_UINT64, G_TYPE_STRING, G_TYPE_POINTER); g_type_class_add_private (klass, sizeof (RBTrackTransferBatchPrivate)); }
static void gtk_source_gutter_class_init (GtkSourceGutterClass *klass) { GObjectClass *object_class = G_OBJECT_CLASS (klass); object_class->set_property = gtk_source_gutter_set_property; object_class->get_property = gtk_source_gutter_get_property; object_class->finalize = gtk_source_gutter_finalize; object_class->dispose = gtk_source_gutter_dispose; object_class->constructed = gtk_source_gutter_constructed; /** * GtkSourceGutter:view: * * The #GtkSourceView of the gutter */ g_object_class_install_property (object_class, PROP_VIEW, g_param_spec_object ("view", _("View"), _("The gutters' GtkSourceView"), GTK_SOURCE_TYPE_VIEW, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY)); /** * GtkSourceGutter:window-type: * * The text window type on which the window is placed */ g_object_class_install_property (object_class, PROP_WINDOW_TYPE, g_param_spec_enum ("window_type", _("Window Type"), _("The gutters text window type"), GTK_TYPE_TEXT_WINDOW_TYPE, 0, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY)); g_type_class_add_private (object_class, sizeof(GtkSourceGutterPrivate)); g_object_class_install_property (object_class, PROP_XPAD, g_param_spec_int ("xpad", _("X Padding"), _("The x-padding"), -1, G_MAXINT, 0, G_PARAM_READWRITE | G_PARAM_CONSTRUCT)); g_object_class_install_property (object_class, PROP_YPAD, g_param_spec_int ("ypad", _("Y Padding"), _("The y-padding"), -1, G_MAXINT, 0, G_PARAM_READWRITE | G_PARAM_CONSTRUCT)); }
"Bookmark's name", "The name of this bookmark", NULL, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_CONSTRUCT); properties[PROP_CUSTOM_NAME] = g_param_spec_boolean ("custom-name", "Whether the bookmark has a custom name", "Whether the bookmark has a custom name", FALSE, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_CONSTRUCT); properties[PROP_LOCATION] = g_param_spec_object ("location", "Bookmark's location", "The location of this bookmark", G_TYPE_FILE, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_CONSTRUCT_ONLY); properties[PROP_ICON] = g_param_spec_object ("icon", "Bookmark's icon", "The icon of this bookmark", G_TYPE_ICON, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS); properties[PROP_SYMBOLIC_ICON] = g_param_spec_object ("symbolic-icon", "Bookmark's symbolic icon", "The symbolic icon of this bookmark", G_TYPE_ICON,
static void ncm_data_gauss_cov_class_init (NcmDataGaussCovClass *klass) { GObjectClass *object_class = G_OBJECT_CLASS (klass); NcmDataClass *data_class = NCM_DATA_CLASS (klass); NcmDataGaussCovClass *gauss_cov_class = NCM_DATA_GAUSS_COV_CLASS (klass); object_class->constructed = &_ncm_data_gauss_cov_constructed; object_class->set_property = &_ncm_data_gauss_cov_set_property; object_class->get_property = &_ncm_data_gauss_cov_get_property; object_class->dispose = &_ncm_data_gauss_cov_dispose; object_class->finalize = &_ncm_data_gauss_cov_finalize; g_object_class_install_property (object_class, PROP_NPOINTS, g_param_spec_uint ("n-points", NULL, "Data sample size", 0, G_MAXUINT, 0, G_PARAM_READWRITE | G_PARAM_CONSTRUCT | G_PARAM_STATIC_NAME | G_PARAM_STATIC_BLURB)); g_object_class_install_property (object_class, PROP_USE_NORMA, g_param_spec_boolean ("use-norma", NULL, "Use the likelihood normalization to calculate -2lnL", FALSE, G_PARAM_READWRITE | G_PARAM_STATIC_NAME | G_PARAM_STATIC_BLURB)); g_object_class_install_property (object_class, PROP_MEAN, g_param_spec_object ("mean", NULL, "Data mean", NCM_TYPE_VECTOR, G_PARAM_READWRITE | G_PARAM_STATIC_NAME | G_PARAM_STATIC_BLURB)); g_object_class_install_property (object_class, PROP_COV, g_param_spec_object ("cov", NULL, "Data covariance", NCM_TYPE_MATRIX, G_PARAM_READWRITE | G_PARAM_STATIC_NAME | G_PARAM_STATIC_BLURB)); data_class->bootstrap = TRUE; data_class->get_length = &_ncm_data_gauss_cov_get_length; data_class->get_dof = NULL; data_class->begin = NULL; data_class->resample = &_ncm_data_gauss_cov_resample; data_class->m2lnL_val = &_ncm_data_gauss_cov_m2lnL_val; data_class->leastsquares_f = &_ncm_data_gauss_cov_leastsquares_f; data_class->mean_vector = &_ncm_data_gauss_cov_mean_vector; data_class->inv_cov_UH = &_ncm_data_gauss_cov_inv_cov_UH; gauss_cov_class->mean_func = NULL; gauss_cov_class->cov_func = NULL; gauss_cov_class->lnNorma2 = &_ncm_data_gauss_cov_lnNorma2; gauss_cov_class->lnNorma2_bs = &_ncm_data_gauss_cov_lnNorma2_bs; gauss_cov_class->set_size = &_ncm_data_gauss_cov_set_size; gauss_cov_class->get_size = &_ncm_data_gauss_cov_get_size; }
static void gdaui_entry_shell_class_init (GdauiEntryShellClass * class) { GObjectClass *object_class = G_OBJECT_CLASS (class); GtkWidgetClass *widget_class = GTK_WIDGET_CLASS (class); parent_class = g_type_class_peek_parent (class); object_class->dispose = gdaui_entry_shell_dispose; widget_class->show_all = show_all; /* Properties */ object_class->set_property = gdaui_entry_shell_set_property; object_class->get_property = gdaui_entry_shell_get_property; g_object_class_install_property (object_class, PROP_HANDLER, g_param_spec_object ("handler", NULL, NULL, GDA_TYPE_DATA_HANDLER, (G_PARAM_READABLE | G_PARAM_WRITABLE))); g_object_class_install_property (object_class, PROP_ACTIONS, g_param_spec_boolean ("actions", NULL, NULL, TRUE, (G_PARAM_READABLE | G_PARAM_WRITABLE))); g_object_class_install_property (object_class, PROP_IS_CELL_RENDERER, g_param_spec_boolean ("is-cell-renderer", NULL, NULL, TRUE, (G_PARAM_READABLE | G_PARAM_WRITABLE))); } static void show_all (GtkWidget *widget) { if (((GdauiEntryShell*) widget)->priv->show_actions) gtk_widget_show (((GdauiEntryShell*) widget)->priv->button); }
class->accel_seperator = g_strdup (" / "); class->latin1_to_char = TRUE; g_object_class_install_property (gobject_class, PROP_ACCEL_CLOSURE, g_param_spec_boxed ("accel-closure", P_("Accelerator Closure"), P_("The closure to be monitored for accelerator changes"), G_TYPE_CLOSURE, GTK_PARAM_READWRITE)); g_object_class_install_property (gobject_class, PROP_ACCEL_WIDGET, g_param_spec_object ("accel-widget", P_("Accelerator Widget"), P_("The widget to be monitored for accelerator changes"), GTK_TYPE_WIDGET, GTK_PARAM_READWRITE)); } static void gtk_accel_label_set_property (GObject *object, guint prop_id, const GValue *value, GParamSpec *pspec) { GtkAccelLabel *accel_label; accel_label = GTK_ACCEL_LABEL (object); switch (prop_id)
g_param_spec_boolean ("is-remote", P_("Is remote"), P_("If this application instance is remote"), FALSE, G_PARAM_READABLE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (object_class, PROP_INACTIVITY_TIMEOUT, g_param_spec_uint ("inactivity-timeout", P_("Inactivity timeout"), P_("Iime (ms) to stay alive after becoming idle"), 0, G_MAXUINT, 0, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (object_class, PROP_ACTION_GROUP, g_param_spec_object ("action-group", P_("Action group"), P_("The group of actions that the application exports"), G_TYPE_ACTION_GROUP, G_PARAM_WRITABLE | G_PARAM_STATIC_STRINGS)); /** * GApplication::startup: * @application: the application * * The ::startup signal is emitted on the primary instance immediately * after registration. See g_activation_register(). */ g_application_signals[SIGNAL_STARTUP] = g_signal_new ("startup", G_TYPE_APPLICATION, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (GApplicationClass, startup), NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0);
static void photos_export_dialog_class_init (PhotosExportDialogClass *class) { GObjectClass *object_class = G_OBJECT_CLASS (class); GtkWidgetClass *widget_class = GTK_WIDGET_CLASS (class); object_class->constructed = photos_export_dialog_constructed; object_class->dispose = photos_export_dialog_dispose; object_class->set_property = photos_export_dialog_set_property; g_object_class_install_property (object_class, PROP_ITEM, g_param_spec_object ("item", "PhotosBaseItem object", "The item to export", PHOTOS_TYPE_BASE_ITEM, G_PARAM_CONSTRUCT_ONLY | G_PARAM_WRITABLE)); gtk_widget_class_set_template_from_resource (widget_class, "/org/gnome/Photos/export-dialog.ui"); gtk_widget_class_bind_template_child (widget_class, PhotosExportDialog, dir_entry); gtk_widget_class_bind_template_child (widget_class, PhotosExportDialog, folder_name_label); gtk_widget_class_bind_template_child (widget_class, PhotosExportDialog, full_button); gtk_widget_class_bind_template_child (widget_class, PhotosExportDialog, full_label); gtk_widget_class_bind_template_child (widget_class, PhotosExportDialog, reduced_button); gtk_widget_class_bind_template_child (widget_class, PhotosExportDialog, reduced_label); gtk_widget_class_bind_template_child (widget_class, PhotosExportDialog, size_label); } GtkWidget *
static JSBool param_new_internal(JSContext *cx, unsigned argc, jsval *vp) { jsval *argv = JS_ARGV(cx, vp); GParamSpec *pspec = NULL; JSBool ret = JS_FALSE; gchar *method_name; gchar *prop_name; JSObject *prop_gtype_jsobj; GType prop_gtype; GType prop_type; gchar *nick; gchar *blurb; GParamFlags flags; if (!gjs_parse_args(cx, "GObject.ParamSpec._new_internal", "!sossi", argc, argv, "prop_name", &prop_name, "prop_gtype", &prop_gtype_jsobj, "nick", &nick, "blurb", &blurb, "flags", &flags)) return JS_FALSE; prop_gtype = gjs_gtype_get_actual_gtype(cx, prop_gtype_jsobj); prop_type = G_TYPE_FUNDAMENTAL(prop_gtype); method_name = g_strdup_printf("GObject.ParamSpec.%s", g_type_name(prop_type)); argv += 5; argc -= 5; switch (prop_type) { case G_TYPE_UCHAR: case G_TYPE_CHAR: { gchar *minimum, *maximum, *default_value; if (!gjs_parse_args(cx, method_name, "sss", argc, argv, "minimum", &minimum, "maximum", &maximum, "default_value", &default_value)) goto out; if (prop_type == G_TYPE_CHAR) pspec = g_param_spec_char(prop_name, nick, blurb, minimum[0], maximum[0], default_value[0], flags); else pspec = g_param_spec_uchar(prop_name, nick, blurb, minimum[0], maximum[0], default_value[0], flags); g_free(minimum); g_free(maximum); g_free(default_value); } break; case G_TYPE_INT: case G_TYPE_UINT: case G_TYPE_LONG: case G_TYPE_ULONG: case G_TYPE_INT64: case G_TYPE_UINT64: { gint64 minimum, maximum, default_value; if (!gjs_parse_args(cx, method_name, "ttt", argc, argv, "minimum", &minimum, "maximum", &maximum, "default_value", &default_value)) goto out; switch (prop_type) { case G_TYPE_INT: pspec = g_param_spec_int(prop_name, nick, blurb, minimum, maximum, default_value, flags); break; case G_TYPE_UINT: pspec = g_param_spec_uint(prop_name, nick, blurb, minimum, maximum, default_value, flags); break; case G_TYPE_LONG: pspec = g_param_spec_long(prop_name, nick, blurb, minimum, maximum, default_value, flags); break; case G_TYPE_ULONG: pspec = g_param_spec_ulong(prop_name, nick, blurb, minimum, maximum, default_value, flags); break; case G_TYPE_INT64: pspec = g_param_spec_int64(prop_name, nick, blurb, minimum, maximum, default_value, flags); break; case G_TYPE_UINT64: pspec = g_param_spec_uint64(prop_name, nick, blurb, minimum, maximum, default_value, flags); break; } } break; case G_TYPE_BOOLEAN: { gboolean default_value; if (!gjs_parse_args(cx, method_name, "b", argc, argv, "default_value", &default_value)) goto out; default_value = JSVAL_TO_BOOLEAN(argv[0]); pspec = g_param_spec_boolean(prop_name, nick, blurb, default_value, flags); } break; case G_TYPE_ENUM: { JSObject *gtype_jsobj; GType gtype; GIEnumInfo *info; gint64 default_value; if (!gjs_parse_args(cx, method_name, "ot", argc, argv, "gtype", >ype_jsobj, "default_value", &default_value)) goto out; gtype = gjs_gtype_get_actual_gtype(cx, gtype_jsobj); if (gtype == G_TYPE_NONE) { gjs_throw(cx, "Passed invalid GType to GParamSpecEnum constructor"); goto out; } info = g_irepository_find_by_gtype(g_irepository_get_default(), gtype); if (!_gjs_enum_value_is_valid(cx, info, default_value)) goto out; pspec = g_param_spec_enum(prop_name, nick, blurb, gtype, default_value, flags); } break; case G_TYPE_FLAGS: { JSObject *gtype_jsobj; GType gtype; gint64 default_value; if (!gjs_parse_args(cx, method_name, "ot", argc, argv, "gtype", >ype_jsobj, "default_value", &default_value)) goto out; gtype = gjs_gtype_get_actual_gtype(cx, gtype_jsobj); if (gtype == G_TYPE_NONE) { gjs_throw(cx, "Passed invalid GType to GParamSpecFlags constructor"); goto out; } if (!_gjs_flags_value_is_valid(cx, gtype, default_value)) goto out; pspec = g_param_spec_flags(prop_name, nick, blurb, gtype, default_value, flags); } break; case G_TYPE_FLOAT: case G_TYPE_DOUBLE: { gfloat minimum, maximum, default_value; if (!gjs_parse_args(cx, "GObject.ParamSpec.float", "fff", argc, argv, "minimum", &minimum, "maximum", &maximum, "default_value", &default_value)) goto out; if (prop_type == G_TYPE_FLOAT) pspec = g_param_spec_float(prop_name, nick, blurb, minimum, maximum, default_value, flags); else pspec = g_param_spec_double(prop_name, nick, blurb, minimum, maximum, default_value, flags); } break; case G_TYPE_STRING: { gchar *default_value; if (!gjs_parse_args(cx, method_name, "s", argc, argv, "default_value", &default_value)) goto out; pspec = g_param_spec_string(prop_name, nick, blurb, default_value, flags); g_free (default_value); } break; case G_TYPE_PARAM: pspec = g_param_spec_param(prop_name, nick, blurb, prop_type, flags); break; case G_TYPE_BOXED: pspec = g_param_spec_boxed(prop_name, nick, blurb, prop_type, flags); break; case G_TYPE_POINTER: pspec = g_param_spec_pointer(prop_name, nick, blurb, flags); break; case G_TYPE_OBJECT: pspec = g_param_spec_object(prop_name, nick, blurb, prop_type, flags); break; default: gjs_throw(cx, "Could not create param spec for type '%s'", g_type_name(prop_gtype)); goto out; } ret = JS_TRUE; jsval foo = OBJECT_TO_JSVAL(gjs_param_from_g_param(cx, pspec)); JS_SET_RVAL(cx, vp, foo); out: g_free(method_name); g_free(prop_name); g_free(nick); g_free(blurb); return ret; }
static void gtk_source_mark_attributes_class_init (GtkSourceMarkAttributesClass *klass) { GObjectClass *object_class = G_OBJECT_CLASS (klass); object_class->finalize = gtk_source_mark_attributes_finalize; object_class->get_property = gtk_source_mark_attributes_get_property; object_class->set_property = gtk_source_mark_attributes_set_property; /** * GtkSourceMarkAttributes:background: * * A color used for background of a line. */ g_object_class_install_property (object_class, PROP_BACKGROUND, g_param_spec_boxed ("background", "Background", "The background", GDK_TYPE_RGBA, G_PARAM_READWRITE)); /** * GtkSourceMarkAttributes:stock-id: * * A stock id that may be a base of a rendered icon. * * Deprecated: 3.10: Don't use this property. */ g_object_class_install_property (object_class, PROP_STOCK_ID, g_param_spec_string ("stock-id", "Stock Id", "The stock id", NULL, G_PARAM_READWRITE | G_PARAM_DEPRECATED)); /** * GtkSourceMarkAttributes:pixbuf: * * A #GdkPixbuf that may be a base of a rendered icon. */ g_object_class_install_property (object_class, PROP_PIXBUF, g_param_spec_object ("pixbuf", "Pixbuf", "The pixbuf", GDK_TYPE_PIXBUF, G_PARAM_READWRITE)); /** * GtkSourceMarkAttributes:icon-name: * * An icon name that may be a base of a rendered icon. */ g_object_class_install_property (object_class, PROP_ICON_NAME, g_param_spec_string ("icon-name", "Icon Name", "The icon name", NULL, G_PARAM_READWRITE)); /** * GtkSourceMarkAttributes:gicon: * * A #GIcon that may be a base of a rendered icon. */ g_object_class_install_property (object_class, PROP_GICON, g_param_spec_object ("gicon", "GIcon", "The GIcon", G_TYPE_ICON, G_PARAM_READWRITE)); /** * GtkSourceMarkAttributes::query-tooltip-text: * @attributes: The #GtkSourceMarkAttributes which emits the signal. * @mark: The #GtkSourceMark. * * The code should connect to this signal to provide a tooltip for given * @mark. The tooltip should be just a plain text. * * Returns: (transfer full): A tooltip. The string should be freed with * g_free() when done with it. */ signals[QUERY_TOOLTIP_TEXT] = g_signal_new ("query-tooltip-text", G_TYPE_FROM_CLASS (klass), G_SIGNAL_RUN_LAST, 0, NULL, NULL, NULL, G_TYPE_STRING, 1, GTK_SOURCE_TYPE_MARK); /** * GtkSourceMarkAttributes::query-tooltip-markup: * @attributes: The #GtkSourceMarkAttributes which emits the signal. * @mark: The #GtkSourceMark. * * The code should connect to this signal to provide a tooltip for given * @mark. The tooltip can contain a markup. * * Returns: (transfer full): A tooltip. The string should be freed with * g_free() when done with it. */ signals[QUERY_TOOLTIP_MARKUP] = g_signal_new ("query-tooltip-markup", G_TYPE_FROM_CLASS (klass), G_SIGNAL_RUN_LAST, 0, NULL, NULL, NULL, G_TYPE_STRING, 1, GTK_SOURCE_TYPE_MARK); }
static void gtd_manager_class_init (GtdManagerClass *klass) { GObjectClass *object_class = G_OBJECT_CLASS (klass); object_class->finalize = gtd_manager_finalize; object_class->get_property = gtd_manager_get_property; object_class->set_property = gtd_manager_set_property; /** * GtdManager::default-provider: * * The default provider. */ g_object_class_install_property ( object_class, PROP_DEFAULT_PROVIDER, g_param_spec_object ("default-provider", "The default provider of the application", "The default provider of the application", GTD_TYPE_PROVIDER, G_PARAM_READWRITE)); /** * GtdManager::plugin-manager: * * The plugin manager. */ g_object_class_install_property ( object_class, PROP_PLUGIN_MANAGER, g_param_spec_object ("plugin-manager", "The plugin manager", "The plugin manager of the application", GTD_TYPE_PLUGIN_MANAGER, G_PARAM_READABLE)); /** * GtdManager::list-added: * @manager: a #GtdManager * @list: a #GtdTaskList * * The ::list-added signal is emmited after a #GtdTaskList * is connected. */ signals[LIST_ADDED] = g_signal_new ("list-added", GTD_TYPE_MANAGER, G_SIGNAL_RUN_LAST, 0, NULL, NULL, NULL, G_TYPE_NONE, 1, GTD_TYPE_TASK_LIST); /** * GtdManager::list-changed: * @manager: a #GtdManager * @list: a #GtdTaskList * * The ::list-changed signal is emmited after a #GtdTaskList * has any of it's properties changed. */ signals[LIST_CHANGED] = g_signal_new ("list-changed", GTD_TYPE_MANAGER, G_SIGNAL_RUN_LAST, 0, NULL, NULL, NULL, G_TYPE_NONE, 1, GTD_TYPE_TASK_LIST); /** * GtdManager::list-removed: * @manager: a #GtdManager * @list: a #GtdTaskList * * The ::list-removed signal is emmited after a #GtdTaskList * is disconnected. */ signals[LIST_REMOVED] = g_signal_new ("list-removed", GTD_TYPE_MANAGER, G_SIGNAL_RUN_LAST, 0, NULL, NULL, NULL, G_TYPE_NONE, 1, GTD_TYPE_TASK_LIST); /** * GtdManager::show-error-message: * @manager: a #GtdManager * @primary_text: the primary message * @secondary_text: the detailed explanation of the error * * Notifies about errors, and sends the error message for widgets * to display. */ signals[SHOW_ERROR_MESSAGE] = g_signal_new ("show-error-message", GTD_TYPE_MANAGER, G_SIGNAL_RUN_LAST, 0, NULL, NULL, NULL, G_TYPE_NONE, 2, G_TYPE_STRING, G_TYPE_STRING); /** * GtdManager::panel-added: * @manager: a #GtdManager * @panel: a #GtdPanel * * The ::panel-added signal is emmited after a #GtdPanel * is added. */ signals[PANEL_ADDED] = g_signal_new ("panel-added", GTD_TYPE_MANAGER, G_SIGNAL_RUN_LAST, 0, NULL, NULL, NULL, G_TYPE_NONE, 1, GTD_TYPE_PANEL); /** * GtdManager::panel-removed: * @manager: a #GtdManager * @panel: a #GtdPanel * * The ::panel-removed signal is emmited after a #GtdPanel * is removed from the list. */ signals[PANEL_REMOVED] = g_signal_new ("panel-removed", GTD_TYPE_MANAGER, G_SIGNAL_RUN_LAST, 0, NULL, NULL, NULL, G_TYPE_NONE, 1, GTD_TYPE_PANEL); /** * GtdManager::provider-added: * @manager: a #GtdManager * @provider: a #GtdProvider * * The ::provider-added signal is emmited after a #GtdProvider * is added. */ signals[PROVIDER_ADDED] = g_signal_new ("provider-added", GTD_TYPE_MANAGER, G_SIGNAL_RUN_LAST, 0, NULL, NULL, NULL, G_TYPE_NONE, 1, GTD_TYPE_PROVIDER); /** * GtdManager::provider-removed: * @manager: a #GtdManager * @provider: a #GtdProvider * * The ::provider-removed signal is emmited after a #GtdProvider * is removed from the list. */ signals[PROVIDER_REMOVED] = g_signal_new ("provider-removed", GTD_TYPE_MANAGER, G_SIGNAL_RUN_LAST, 0, NULL, NULL, NULL, G_TYPE_NONE, 1, GTD_TYPE_PROVIDER); }