aboutsummaryrefslogtreecommitdiff
path: root/src/fs/gnunet-fs-gtk_namespace_manager.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/fs/gnunet-fs-gtk_namespace_manager.c')
-rw-r--r--src/fs/gnunet-fs-gtk_namespace_manager.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/fs/gnunet-fs-gtk_namespace_manager.c b/src/fs/gnunet-fs-gtk_namespace_manager.c
index 772d3339..95763aef 100644
--- a/src/fs/gnunet-fs-gtk_namespace_manager.c
+++ b/src/fs/gnunet-fs-gtk_namespace_manager.c
@@ -47,6 +47,7 @@ struct GNUNET_GTK_NamespaceManagerContext
47 GtkWidget *details_delete_button; 47 GtkWidget *details_delete_button;
48 int sort_direction; 48 int sort_direction;
49 struct GNUNET_CONTAINER_MetaData *uneditable_md; 49 struct GNUNET_CONTAINER_MetaData *uneditable_md;
50 struct GNUNET_GTK_MainWindowContext *main_ctx;
50}; 51};
51 52
52/** 53/**
@@ -747,6 +748,7 @@ GNUNET_GTK_namespace_manager_dialog_response_cb (GtkDialog *dialog,
747 case GTK_RESPONSE_APPLY: 748 case GTK_RESPONSE_APPLY:
748 case GTK_RESPONSE_OK: 749 case GTK_RESPONSE_OK:
749 apply_known_ns_changes (ctx); 750 apply_known_ns_changes (ctx);
751 GNUNET_GTK_main_window_refresh_ns_list (ctx->main_ctx);
750 break; 752 break;
751 default: 753 default:
752 break; 754 break;
@@ -902,7 +904,8 @@ void
902GNUNET_GTK_main_menu_file_manage_pseudonyms_activate_cb (GtkMenuItem *menuitem, 904GNUNET_GTK_main_menu_file_manage_pseudonyms_activate_cb (GtkMenuItem *menuitem,
903 gpointer user_data) 905 gpointer user_data)
904{ 906{
905 struct GNUNET_GTK_NamespaceManagerContext *ctx; 907 struct GNUNET_GTK_MainWindowContext *main_ctx = user_data;
908 struct GNUNET_GTK_NamespaceManagerContext *ctx;
906 909
907 if (ns_manager != NULL) 910 if (ns_manager != NULL)
908 return; 911 return;
@@ -916,6 +919,8 @@ GNUNET_GTK_main_menu_file_manage_pseudonyms_activate_cb (GtkMenuItem *menuitem,
916 return; 919 return;
917 } 920 }
918 921
922 ctx->main_ctx = main_ctx;
923
919 /* initialize widget references */ 924 /* initialize widget references */
920 ctx->known_ns = GTK_WIDGET (gtk_builder_get_object (ctx->builder, 925 ctx->known_ns = GTK_WIDGET (gtk_builder_get_object (ctx->builder,
921 "GNUNET_GTK_namespace_manager_known_treeview")); 926 "GNUNET_GTK_namespace_manager_known_treeview"));