aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_gtk.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/gnunet_gtk.h')
-rw-r--r--src/include/gnunet_gtk.h38
1 files changed, 17 insertions, 21 deletions
diff --git a/src/include/gnunet_gtk.h b/src/include/gnunet_gtk.h
index b2242e96..cbf5c966 100644
--- a/src/include/gnunet_gtk.h
+++ b/src/include/gnunet_gtk.h
@@ -57,7 +57,7 @@ GNUNET_GTK_setup_nls (void);
57 * Initialize GTK search path for icons. 57 * Initialize GTK search path for icons.
58 */ 58 */
59void 59void
60GNUNET_GTK_set_icon_search_path (); 60GNUNET_GTK_set_icon_search_path (void);
61 61
62 62
63/** 63/**
@@ -87,10 +87,13 @@ GNUNET_GTK_installation_get_path (enum GNUNET_OS_InstallationPathKind dirkind);
87 * file. 87 * file.
88 * 88 *
89 * @param filename name of the resource file to load 89 * @param filename name of the resource file to load
90 * @param user_data user_data to pass to signal handlers,
91 * use "NULL" to pass the GtkBuilder itself.
90 * @return NULL on error 92 * @return NULL on error
91 */ 93 */
92GtkBuilder * 94GtkBuilder *
93GNUNET_GTK_get_new_builder (const char *filename); 95GNUNET_GTK_get_new_builder (const char *filename,
96 void *user_data);
94 97
95 98
96/** 99/**
@@ -121,31 +124,24 @@ GNUNET_GTK_tray_icon_create (GtkWindow * main, const char *icon_name,
121void 124void
122GNUNET_GTK_tray_icon_destroy (void); 125GNUNET_GTK_tray_icon_destroy (void);
123 126
124char *
125GNUNET_GTK_from_utf8_to_loc (gchar * str_utf8);
126
127char *
128GNUNET_GTK_from_loc_to_utf8 (gchar * str_loc);
129
130char *
131GNUNET_GTK_from_filename_to_utf8 (gchar * filename);
132
133char *
134GNUNET_GTK_from_utf8_to_filename (gchar * str_utf8);
135 127
128/**
129 * Convert a string from the current locale to UTF-8.
130 *
131 * @param str_loc string in current locale
132 * @return string in UTF-8, NULL if str_loc was NULL
133 */
136char * 134char *
137GNUNET_GTK_from_loc_to_filename (gchar * str_loc); 135GNUNET_GTK_from_loc_to_utf8 (const char * str_loc);
138 136
139char *
140GNUNET_GTK_from_filename_to_loc (gchar * filename);
141 137
142/* Returns filename form filechooser, encoded in locale-dependent 138/**
143 * encoding, suitable to be given to CRT and/or GNUnet 139 * Returns filename form filechooser, encoded in UTF-8.
140 *
141 * @param fc file chooser to inspect
142 * @return selected filename as UTF-8, NULL on errors
144 */ 143 */
145char * 144char *
146GNUNET_GTK_filechooser_get_filename_loc (GtkFileChooser * fc);
147
148gchar *
149GNUNET_GTK_filechooser_get_filename_utf8 (GtkFileChooser * fc); 145GNUNET_GTK_filechooser_get_filename_utf8 (GtkFileChooser * fc);
150 146
151 147