Changeset f06baef


Ignore:
Timestamp:
Jun 1, 2010, 9:01:48 PM (11 years ago)
Author:
David Benjamin <davidben@mit.edu>
Branches:
master, release-1.7, release-1.8, release-1.9
Children:
385fda9
Parents:
135d24b
Message:
Add a message received signal as well
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • globalnotifier.h

    rb2ea16b rf06baef  
    4040
    4141void owl_global_notifier_emit_view_changed(OwlGlobalNotifier *gn);
     42void owl_global_notifier_emit_message_received(OwlGlobalNotifier *gn, owl_message *msg);
    4243
    4344G_END_DECLS
  • globalnotifiergen.pl

    rb2ea16b rf06baef  
    5353enum {
    5454  VIEW_CHANGED,
     55  MESSAGE_RECEIVED,
    5556  LAST_SIGNAL
    5657};
     
    162163                 0,
    163164                 NULL);
     165
     166  notifier_signals[MESSAGE_RECEIVED] =
     167    g_signal_new("message-received",
     168                 G_TYPE_FROM_CLASS(gobject_class),
     169                 G_SIGNAL_RUN_FIRST,
     170                 0,
     171                 NULL, NULL,
     172                 g_cclosure_marshal_VOID__POINTER,
     173                 G_TYPE_NONE,
     174                 1,
     175                 G_TYPE_POINTER, NULL);
    164176
    165177  /* Register properties */
     
    232244  g_signal_emit(gn, notifier_signals[VIEW_CHANGED], 0);
    233245}
    234 EOT
     246
     247void owl_global_notifier_emit_message_received(OwlGlobalNotifier *gn, owl_message *msg)
     248{
     249  g_signal_emit(gn, notifier_signals[MESSAGE_RECEIVED], 0, msg);
     250}
     251EOT
Note: See TracChangeset for help on using the changeset viewer.