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(GitkrPhoneWidgetPtr widget,GitkDialogPtr dialog,xmlNodePtr node) {
00019   gitkr_widget_new(widget,dialog,node);
00020   widget->type=GITK_WIDGET_TYPE_LABEL;
00021   widget->output=gitkr_widget_label_output;
00022   widget->handle=gitkr_widget_label_handle;
00023 }
00024 
00026 void gitkr_widget_label_output(GitkrPhoneWidgetPtr widget,gboolean active) {
00027   //gint str_len;
00028   gchar *value=gitkr_widget_get_value(widget->dialog,widget->id,"value");
00029   if(active && value && (value != "")){
00030     capi_text_output(capiinfo,IconLabel,ftinfo);
00031     capi_text_output(capiinfo, value, ftinfo);
00032   }
00033 }
00034 
00036 gboolean gitkr_widget_label_handle(GitkrPhoneWidgetPtr widget) {
00037   capi_text_output(capiinfo,IconLabel,ftinfo);
00038   return(TRUE);
00039 }

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