aboutsummaryrefslogtreecommitdiff
path: root/src/fs/gnunet-fs-gtk.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/fs/gnunet-fs-gtk.c')
-rw-r--r--src/fs/gnunet-fs-gtk.c22
1 files changed, 2 insertions, 20 deletions
diff --git a/src/fs/gnunet-fs-gtk.c b/src/fs/gnunet-fs-gtk.c
index cbbc1984..7d39f1e3 100644
--- a/src/fs/gnunet-fs-gtk.c
+++ b/src/fs/gnunet-fs-gtk.c
@@ -52,11 +52,6 @@
52GtkTreeStore *downloads_treestore; 52GtkTreeStore *downloads_treestore;
53 53
54/** 54/**
55 * Should gnunet-fs-gtk start in tray mode?
56 */
57static int tray_only;
58
59/**
60 * Handle to our main loop. 55 * Handle to our main loop.
61 */ 56 */
62static struct GNUNET_GTK_MainLoop *ml; 57static struct GNUNET_GTK_MainLoop *ml;
@@ -240,7 +235,6 @@ shutdown_task (void *cls)
240 struct PseuLookupContext *lctx; 235 struct PseuLookupContext *lctx;
241 struct SearchResult *sr; 236 struct SearchResult *sr;
242 237
243 GNUNET_GTK_tray_icon_destroy ();
244 while (NULL != (sr = pl_head)) 238 while (NULL != (sr = pl_head))
245 { 239 {
246 GNUNET_FS_probe_stop (sr->probe); 240 GNUNET_FS_probe_stop (sr->probe);
@@ -336,7 +330,6 @@ GNUNET_FS_GTK_delete_event_cb (GtkWidget *object,
336 * just to be sure it is dead (if it isn't, application will hang up). 330 * just to be sure it is dead (if it isn't, application will hang up).
337 */ 331 */
338 GNUNET_SCHEDULER_shutdown (); 332 GNUNET_SCHEDULER_shutdown ();
339 GNUNET_GTK_tray_icon_destroy ();
340} 333}
341 334
342 335
@@ -776,11 +769,6 @@ run (void *cls)
776 (However, this needs GTK >= 3.2, we currently target 3.0) */ 769 (However, this needs GTK >= 3.2, we currently target 3.0) */
777 gtk_tree_selection_set_mode (gtk_tree_view_get_selection (main_context.md_treeview), 770 gtk_tree_selection_set_mode (gtk_tree_view_get_selection (main_context.md_treeview),
778 GTK_SELECTION_MULTIPLE); 771 GTK_SELECTION_MULTIPLE);
779 if (NULL == getenv ("GNUNET_FS_GTK_PLUG"))
780 GNUNET_GTK_tray_icon_create (ml,
781 GTK_WINDOW (main_context.main_window),
782 "gnunet-fs-gtk",
783 "gnunet-fs-gtk");
784 772
785 /* FIXME: should these '1's be here? Maybe better to put them into 773 /* FIXME: should these '1's be here? Maybe better to put them into
786 * default config files? 774 * default config files?
@@ -830,11 +818,8 @@ run (void *cls)
830 G_CALLBACK (unique_app_message_cb), &main_context); 818 G_CALLBACK (unique_app_message_cb), &main_context);
831#endif 819#endif
832 /* make GUI visible */ 820 /* make GUI visible */
833 if (!tray_only) 821 gtk_widget_show (main_context.main_window);
834 { 822 gtk_window_present (GTK_WINDOW (main_context.main_window));
835 gtk_widget_show (main_context.main_window);
836 gtk_window_present (GTK_WINDOW (main_context.main_window));
837 }
838 823
839 { 824 {
840 char *const *argv; 825 char *const *argv;
@@ -861,9 +846,6 @@ int
861main (int argc, char **argv) 846main (int argc, char **argv)
862{ 847{
863 static struct GNUNET_GETOPT_CommandLineOption options[] = { 848 static struct GNUNET_GETOPT_CommandLineOption options[] = {
864 {'t', "tray", NULL,
865 gettext_noop ("start in tray mode"), 0,
866 &GNUNET_GETOPT_set_one, &tray_only},
867 GNUNET_GETOPT_OPTION_END 849 GNUNET_GETOPT_OPTION_END
868 }; 850 };
869#if HAVE_LIBUNIQUE 851#if HAVE_LIBUNIQUE