gitkrtools.c

Go to the documentation of this file.
00001 
00012 #define GITK_RENDERER_C
00013 #define GITKR_TOOLS_C
00014 
00015 #include "gitkrincludes.h"
00016 
00024 gchar *gitkr_cxpath_get_string(GitkDialogPtr dialog, xmlXPathCompExprPtr xpath_expr, xmlNodePtr root_node) {
00025   gchar *str,*res;
00026   
00027   str=gitk_cxpath_get_string(dialog,xpath_expr,root_node);
00028   res=g_convert(str,-1,code_set,"UTF-8",NULL,NULL,NULL);
00029   g_free(str);
00030   return(res);
00031 }
00032 
00040 void gitkr_widget_set_value(GitkDialogPtr const dialog,gchar * const widget_id,const gchar *name, const gchar *data) {
00041   gchar *str;
00042   
00043   str=g_convert(data,-1,"UTF-8",code_set,NULL,NULL,NULL);
00044   gitk_widget_set_value(dialog,widget_id,name,str);
00045   g_free(str);
00046 }
00047 
00056 gchar *gitkr_widget_get_value(GitkDialogPtr const dialog,gchar * const widget_id,const gchar *name) {
00057   gchar *str,*res;
00058   
00059   str=gitk_widget_get_value(dialog,widget_id,name);
00060   res=g_convert(str,-1,code_set,"UTF-8",NULL,NULL,NULL);
00061   g_free(str);
00062   gitk_log1("gitkr_widget_get_value() value ist %s", res);
00063   return(res);
00064 }

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