From 28dd0a302e4c8d42dcf2b6f9d1c0053fb7e9d79f Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Fri, 2 Mar 2012 11:45:09 +0000 Subject: -LRN: Adapt to new main window building --- src/peerinfo/gnunet-peerinfo-gtk.c | 5 +++++ src/setup/gnunet-setup.c | 6 ++++++ src/statistics/gnunet-statistics-gtk.c | 6 ++++++ 3 files changed, 17 insertions(+) diff --git a/src/peerinfo/gnunet-peerinfo-gtk.c b/src/peerinfo/gnunet-peerinfo-gtk.c index d205ad88..2a633d33 100644 --- a/src/peerinfo/gnunet-peerinfo-gtk.c +++ b/src/peerinfo/gnunet-peerinfo-gtk.c @@ -373,6 +373,11 @@ run (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) ml = cls; + if (GNUNET_OK != GNUNET_GTK_main_loop_build_window (ml, NULL)) + { + return; + } + GNUNET_GTK_set_icon_search_path (); GNUNET_GTK_setup_nls (); peer2info = GNUNET_CONTAINER_multihashmap_create (256); diff --git a/src/setup/gnunet-setup.c b/src/setup/gnunet-setup.c index 2f564667..c1ea2520 100644 --- a/src/setup/gnunet-setup.c +++ b/src/setup/gnunet-setup.c @@ -324,6 +324,12 @@ run (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) GtkWidget *main_window; ml = cls; + + if (GNUNET_OK != GNUNET_GTK_main_loop_build_window (ml, NULL)) + { + return; + } + cfgName = GNUNET_GTK_main_loop_get_configuration_file (ml); cfg = GNUNET_CONFIGURATION_create (); (void) GNUNET_CONFIGURATION_load (cfg, cfgName); diff --git a/src/statistics/gnunet-statistics-gtk.c b/src/statistics/gnunet-statistics-gtk.c index 3055c4aa..eee75c5a 100644 --- a/src/statistics/gnunet-statistics-gtk.c +++ b/src/statistics/gnunet-statistics-gtk.c @@ -241,6 +241,12 @@ run (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) GtkWidget *main_window; ml = cls; + + if (GNUNET_OK != GNUNET_GTK_main_loop_build_window (ml, NULL)) + { + return; + } + statistics = GNUNET_STATISTICS_create ("gnunet-statistics-gtk", GNUNET_GTK_main_loop_get_configuration (ml)); -- cgit v1.2.3