aboutsummaryrefslogtreecommitdiff
path: root/src/common/logging.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/logging.c')
-rw-r--r--src/common/logging.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/common/logging.c b/src/common/logging.c
index aef6fa46..41cfdc2a 100644
--- a/src/common/logging.c
+++ b/src/common/logging.c
@@ -46,7 +46,7 @@ init ()
46 statusXML 46 statusXML
47 = 47 =
48 glade_xml_new (GNUNET_GTK_get_glade_filename (), "statusWindow", 48 glade_xml_new (GNUNET_GTK_get_glade_filename (), "statusWindow",
49 PACKAGNUNET_GENAME); 49 PACKAGNUNET_GE_NAME);
50 infoWindow = glade_xml_get_widget (statusXML, "statusWindow"); 50 infoWindow = glade_xml_get_widget (statusXML, "statusWindow");
51 infoWindowTextView 51 infoWindowTextView
52 = glade_xml_get_widget (statusXML, "messageWindowTextView"); 52 = glade_xml_get_widget (statusXML, "messageWindowTextView");
@@ -170,24 +170,24 @@ GNUNET_GTK_add_log_entry (const char *txt, ...)
170 170
171static void 171static void
172ge_gtk_log_handler (void *ctx, 172ge_gtk_log_handler (void *ctx,
173 GNUNET_GEKIND kind, const char *date, const char *msg) 173 GNUNET_GE_KIND kind, const char *date, const char *msg)
174{ 174{
175 int popUp; 175 int popUp;
176 176
177 popUp = GNUNET_NO; 177 popUp = GNUNET_NO;
178 if ((kind & (GNUNET_GEFATAL | GNUNET_GEERROR | GNUNET_GEWARNING)) > 0) 178 if ((kind & (GNUNET_GE_FATAL | GNUNET_GE_ERROR | GNUNET_GE_WARNING)) > 0)
179 popUp = GNUNET_YES; 179 popUp = GNUNET_YES;
180 GNUNET_GTK_show_info_message (popUp, "%s: %s", date, msg); 180 GNUNET_GTK_show_info_message (popUp, "%s: %s", date, msg);
181} 181}
182 182
183struct GNUNET_GEContext * 183struct GNUNET_GE_Context *
184GNUNET_GTK_create_gtk_logger (GNUNET_GEKIND mask) 184GNUNET_GTK_create_gtk_logger (GNUNET_GE_KIND mask)
185{ 185{
186 struct GNUNET_GEContext *myLog; 186 struct GNUNET_GE_Context *myLog;
187 187
188 myLog = GNUNET_GEcreate_context_callback (mask, 188 myLog = GNUNET_GE_create_context_callback (mask,
189 &ge_gtk_log_handler, NULL, NULL, 189 &ge_gtk_log_handler, NULL, NULL,
190 NULL); 190 NULL);
191 return myLog; 191 return myLog;
192} 192}
193 193