gitkrwaction.c

Go to the documentation of this file.
00001 
00012 #define GITK_RENDERER_C
00013 #define GITKR_WIDGET_ACTION_C
00014 
00015 #include "gitkrincludes.h"
00016 
00018 void gitkr_widget_action_new(GitkrTextWidgetPtr widget,GitkDialogPtr dialog,xmlNodePtr node) {
00019   widget->icon='!';
00020   gitkr_widget_new(widget,dialog,node);
00021   widget->type=GITK_WIDGET_TYPE_ACTION;
00022   widget->output=gitkr_widget_action_output;
00023   widget->handle=gitkr_widget_action_handle;
00024 }
00025 
00027 void gitkr_widget_action_output(GitkrTextWidgetPtr widget,gint line,gboolean active) {
00028   gitkr_widget_output_pre(widget,line,active);
00029 
00030   mvaddstr(line,2,(widget->label?widget->label:"-"));
00031 
00032   if(active && widget->label) { festival_say_text(ftinfo,widget->label); }
00033   gitkr_widget_output_post(widget,line,active);
00034 }
00035 
00037 gboolean gitkr_widget_action_handle(GitkrTextWidgetPtr widget,gint line) {
00038   return(TRUE);
00039 }

Generated on Thu Oct 28 10:59:13 2004 for gitk by doxygen 1.3.6