gitkrwlabel.c

Go to the documentation of this file.
00001 
00012 #define GITK_RENDERER_C
00013 #define GITKR_WIDGET_LABEL_C
00014 
00015 #include "gitkrincludes.h"
00016 
00018 void gitkr_widget_label_new(GitkrTextWidgetPtr widget,GitkDialogPtr dialog,xmlNodePtr node) {
00019   widget->icon=' ';
00020   gitkr_widget_new(widget,dialog,node);
00021   widget->type=GITK_WIDGET_TYPE_LABEL;
00022   widget->output=gitkr_widget_label_output;
00023   widget->handle=gitkr_widget_label_handle;
00024 }
00025 
00027 void gitkr_widget_label_output(GitkrTextWidgetPtr widget,gint line,gboolean active) {
00028   //gint str_len;
00029   gchar *value=gitkr_widget_get_value(widget->dialog,widget->id,"value");
00030 
00031   gitkr_widget_output_pre(widget,line,active);
00032 
00033   //mvaddstr(line,2,(widget->label?widget->label:"-"));
00035   mvaddstr(line,2,(value?value:" "));
00036 
00037   if(active && value) { festival_say_text(ftinfo,value); }
00038   gitkr_widget_output_post(widget,line,active);
00039 }
00040 
00042 gboolean gitkr_widget_label_handle(GitkrTextWidgetPtr widget,gint line) {
00043   return(TRUE);
00044 }

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