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.h20
1 files changed, 17 insertions, 3 deletions
diff --git a/src/include/gnunet_gtk.h b/src/include/gnunet_gtk.h
index 523524d6..ec500705 100644
--- a/src/include/gnunet_gtk.h
+++ b/src/include/gnunet_gtk.h
@@ -107,6 +107,22 @@ GNUNET_GTK_installation_get_path (enum GNUNET_OS_InstallationPathKind dirkind);
107/* **************** Glade/Gtk helpers *************** */ 107/* **************** Glade/Gtk helpers *************** */
108 108
109/** 109/**
110 * Create an initialize a new builder based on the
111 * GNUnet-GTK glade file.
112 *
113 * @param filename name of the resource file to load
114 * @param user_data user_data to pass to signal handlers,
115 * use "NULL" to pass the GtkBuilder itself.
116 * @param cb function to call before connecting signals
117 * @return NULL on error
118 */
119GtkBuilder *
120GNUNET_GTK_get_new_builder2 (const char *filename,
121 void *user_data,
122 GtkBuilderConnectFunc cb);
123
124
125/**
110 * Create an initialize a new builder based on the GNUnet-GTK glade 126 * Create an initialize a new builder based on the GNUnet-GTK glade
111 * file. 127 * file.
112 * 128 *
@@ -115,9 +131,7 @@ GNUNET_GTK_installation_get_path (enum GNUNET_OS_InstallationPathKind dirkind);
115 * use "NULL" to pass the GtkBuilder itself. 131 * use "NULL" to pass the GtkBuilder itself.
116 * @return NULL on error 132 * @return NULL on error
117 */ 133 */
118GtkBuilder * 134#define GNUNET_GTK_get_new_builder(filename,user_data) GNUNET_GTK_get_new_builder2(filename,user_data,NULL)
119GNUNET_GTK_get_new_builder (const char *filename,
120 void *user_data);
121 135
122 136
123/** 137/**