Changeset b2ea16b
- Timestamp:
- Jun 1, 2010, 8:45:29 PM (14 years ago)
- Branches:
- master, release-1.10, release-1.7, release-1.8, release-1.9
- Children:
- 135d24b
- Parents:
- 5b80b87
- git-author:
- David Benjamin <davidben@mit.edu> (06/01/10 20:43:44)
- git-committer:
- David Benjamin <davidben@mit.edu> (06/01/10 20:45:29)
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
globalnotifier.h
rf3a9d4d rb2ea16b 39 39 OwlGlobalNotifier* owl_global_notifier_new(owl_global *g); 40 40 41 void owl_global_notifier_emit_view_changed(OwlGlobalNotifier *gn); 42 41 43 G_END_DECLS 42 44 -
globalnotifiergen.pl
r5b80b87 rb2ea16b 50 50 }; 51 51 52 /* signals */ 53 enum { 54 VIEW_CHANGED, 55 LAST_SIGNAL 56 }; 57 58 static guint notifier_signals[LAST_SIGNAL] = { 0 }; 59 52 60 G_DEFINE_TYPE(OwlGlobalNotifier, owl_global_notifier, G_TYPE_OBJECT) 53 61 … … 141 149 gobject_class->get_property = owl_global_notifier_get_property; 142 150 gobject_class->set_property = owl_global_notifier_set_property; 151 152 /* Create signals */ 153 154 notifier_signals[VIEW_CHANGED] = 155 g_signal_new("view-changed", 156 G_TYPE_FROM_CLASS(gobject_class), 157 G_SIGNAL_RUN_FIRST, 158 0, 159 NULL, NULL, 160 g_cclosure_marshal_VOID__VOID, 161 G_TYPE_NONE, 162 0, 163 NULL); 143 164 144 165 /* Register properties */ … … 206 227 return gn; 207 228 } 208 EOT 229 230 void owl_global_notifier_emit_view_changed(OwlGlobalNotifier *gn) 231 { 232 g_signal_emit(gn, notifier_signals[VIEW_CHANGED], 0); 233 } 234 EOT
Note: See TracChangeset
for help on using the changeset viewer.