[pan2] quickfix for non-gui mode



commit 34d5f94f5194c454f3446dd3148af5a71cd5459a
Author: Heinrich Müller <henmull src gnome org>
Date:   Fri Mar 1 18:12:12 2013 +0100

    quickfix for non-gui mode

 pan/gui/pan.cc |   10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)
---
diff --git a/pan/gui/pan.cc b/pan/gui/pan.cc
index e229e92..28c1837 100644
--- a/pan/gui/pan.cc
+++ b/pan/gui/pan.cc
@@ -627,8 +627,9 @@ _("General Options\n"
 "\n"
 "URL Options\n"
 
-"  news:message-id          Show the specified article.\n"
-"  news:group.name          Show the specified newsgroup.\n"
+// NOT IMPLEMENTED
+//"  news:message-id          Show the specified article.\n"
+//"  news:group.name          Show the specified newsgroup.\n"
 "  headers:group.name       Download new headers for the specified newsgroup.\n"
 "  --no-gui                 On news:message-id, dump the article to stdout.\n"
 "\n"
@@ -884,9 +885,9 @@ main (int argc, char *argv[])
   textdomain (GETTEXT_PACKAGE);
 
   g_type_init();
-//#if !GLIB_CHECK_VERSION(2,32,0)
+#if !GLIB_CHECK_VERSION(2,32,0)
   g_thread_init (0);
-//#endif
+#endif
   g_mime_init (GMIME_ENABLE_RFC2047_WORKAROUNDS);
 
   bool gui(true), nzb(false), verbosed(false);
@@ -960,6 +961,7 @@ main (int argc, char *argv[])
 
   Log::add_info_va (_("Pan %s started"), VERSION);
 
+  if (gui)
   {
     // load the preferences...
     char * filename = g_build_filename (file::get_pan_home().c_str(), "preferences.xml", NULL);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]