example1: /** * Mg2DPlot::plot-bounds-changed: * @plot: the object that emitted the signal * @xmin: * @xmax: * @ymin: * @ymax: * * The "plot-bounds-changed" signal is emitted when data is added or * removed or as a result of mg_2d_plot_set_bounds(). * * Adding or removing data may result in "plot-bounds-changed" being * emitted even though it is not strictly true. */ mg_2d_plot_signals[PLOT_BOUNDS_CHANGED] = g_signal_new ( "plot-bounds-changed", G_OBJECT_CLASS_TYPE (obj_class), G_SIGNAL_RUN_FIRST, G_STRUCT_OFFSET (Mg2DPlotClass, plot_bounds_changed), NULL, NULL, _mg_marshal_VOID__DOUBLE_DOUBLE_DOUBLE_DOUBLE, G_TYPE_NONE, 4, G_TYPE_DOUBLE, G_TYPE_DOUBLE, G_TYPE_DOUBLE, G_TYPE_DOUBLE);example2: /** * MgPlotBoundsDialog:plot: * * The #Mg2DPlot this dialog is setting the bounds for. */ g_object_class_install_property (obj_class, PROP_PLOT, g_param_spec_object ("plot", "plot", "Plot", MG_TYPE_2D_PLOT, G_PARAM_READWRITE));