aboutsummaryrefslogtreecommitdiff
path: root/src/namestore/gnunet-namestore-gtk.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/namestore/gnunet-namestore-gtk.c')
-rw-r--r--src/namestore/gnunet-namestore-gtk.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/namestore/gnunet-namestore-gtk.c b/src/namestore/gnunet-namestore-gtk.c
index 025aa9c5..a9d42f91 100644
--- a/src/namestore/gnunet-namestore-gtk.c
+++ b/src/namestore/gnunet-namestore-gtk.c
@@ -2706,7 +2706,7 @@ fresh_label (const char *label)
2706static void 2706static void
2707iop_create_cont (void *cls, 2707iop_create_cont (void *cls,
2708 const struct GNUNET_IDENTITY_PrivateKey *priv, 2708 const struct GNUNET_IDENTITY_PrivateKey *priv,
2709 const char *emsg) 2709 enum GNUNET_ErrorCode ec)
2710{ 2710{
2711 GtkEntry *entry; 2711 GtkEntry *entry;
2712 2712
@@ -2715,7 +2715,8 @@ iop_create_cont (void *cls,
2715 iop = NULL; 2715 iop = NULL;
2716 entry = GTK_ENTRY (get_object ("gnunet_namestore_gtk_zone_entry")); 2716 entry = GTK_ENTRY (get_object ("gnunet_namestore_gtk_zone_entry"));
2717 gtk_widget_set_sensitive (main_window, TRUE); 2717 gtk_widget_set_sensitive (main_window, TRUE);
2718 gtk_label_set_markup (status_label, emsg); 2718 gtk_label_set_markup (status_label, (GNUNET_EC_NONE == ec) ? NULL :
2719 GNUNET_ErrorCode_get_hint (ec));
2719 gtk_entry_grab_focus_without_selecting (entry); 2720 gtk_entry_grab_focus_without_selecting (entry);
2720} 2721}
2721 2722
@@ -2728,14 +2729,15 @@ iop_create_cont (void *cls,
2728 * @param emsg error message, used in status bar 2729 * @param emsg error message, used in status bar
2729 */ 2730 */
2730static void 2731static void
2731iop_cont (void *cls, const char *emsg) 2732iop_cont (void *cls, enum GNUNET_ErrorCode ec)
2732{ 2733{
2733 GtkEntry *entry; 2734 GtkEntry *entry;
2734 2735
2735 iop = NULL; 2736 iop = NULL;
2736 entry = GTK_ENTRY (get_object ("gnunet_namestore_gtk_zone_entry")); 2737 entry = GTK_ENTRY (get_object ("gnunet_namestore_gtk_zone_entry"));
2737 gtk_widget_set_sensitive (main_window, TRUE); 2738 gtk_widget_set_sensitive (main_window, TRUE);
2738 gtk_label_set_markup (status_label, emsg); 2739 gtk_label_set_markup (status_label, (GNUNET_EC_NONE == ec) ? NULL :
2740 GNUNET_ErrorCode_get_hint (ec));
2739 gtk_entry_grab_focus_without_selecting (entry); 2741 gtk_entry_grab_focus_without_selecting (entry);
2740} 2742}
2741 2743