*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*
*/
#include "ev-history.h"
+
+enum
+{
+ HISTORY_CHANGED,
+ N_SIGNALS
+};
+
+static guint signals[N_SIGNALS] = {0, };
+
struct _EvHistoryPrivate
{
GList *links;
object_class->finalize = ev_history_finalize;
+ signals[HISTORY_CHANGED] =
+ g_signal_new ("changed",
+ G_OBJECT_CLASS_TYPE (object_class),
+ G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION,
+ G_STRUCT_OFFSET (EvHistoryClass, changed),
+ NULL, NULL,
+ g_cclosure_marshal_VOID__VOID,
+ G_TYPE_NONE, 0);
+
g_type_class_add_private (object_class, sizeof (EvHistoryPrivate));
}
history->priv->links = g_list_delete_link (history->priv->links,
history->priv->links);
}
+
+ g_signal_emit (history, signals[HISTORY_CHANGED], 0);
}
EvLink *