00001
00012 #ifndef GITK_CALLBACK_H
00013 #define GITK_CALLBACK_H
00014
00015 #ifdef __cplusplus
00016 extern "C" {
00017 #endif
00018
00019 #ifdef GITK_CALLBACK_C
00020 void gitk__dialog_attach_callback(GitkDialogPtr const dialog,gchar * const widget_id,const GitkEventType type,gpointer const user_data, GitkCallbackPtr const callback,gchar * const callback_name);
00021 void gitk_dialog_detach_callback(GitkDialogPtr const dialog,gchar * const widget_id,const GitkEventType type);
00022 gboolean gitk_dialog_process_event(GitkDialogPtr const dialog,gchar * const widget_id,GitkEventPtr const event);
00023 void gitk_dialog_trans_callback(GitkDialogPtr dialog);
00024 #else
00025 extern void gitk__dialog_attach_callback(GitkDialogPtr const dialog,gchar * const widget_id,const GitkEventType type,gpointer user_data, GitkCallbackPtr const callback,gchar * const callback_name);
00026 extern void gitk_dialog_detach_callback(GitkDialogPtr const dialog,gchar * const widget_id,const GitkEventType type);
00027 #if defined(GITK_LIB_C) || defined(GITK_RENDERER_C)
00028 extern gboolean gitk_dialog_process_event(GitkDialogPtr const dialog,gchar * const widget_id,GitkEventPtr const event);
00029 #endif
00030 #ifdef GITK_LIB_C
00031 extern void gitk_dialog_trans_callback(GitkDialogPtr dialog);
00032 #endif
00033 #endif
00034
00035 #define gitk_dialog_attach_callback(dialog,widget_id,type,user_data,callback) gitk__dialog_attach_callback(dialog,widget_id,type,user_data,callback,PACKAGE"::"#callback"()")
00036
00037 #ifdef __cplusplus
00038 }
00039 #endif
00040
00041 #endif