[balsa/gtk3] Build --without-nm



commit 58ea6783d9db43d8ea5101f319c8e6a6219145d2
Author: Peter Bloomfield <PeterBloomfield bellsouth net>
Date:   Sat Dec 17 20:34:00 2011 -0500

    Build --without-nm
    
    	* src/main-window.c: build --without-nm; thanks to Jack
    	<URL:http://mail.gnome.org/archives/balsa-list/2011-December/msg00013.html>.

 ChangeLog         |    5 +++++
 src/main-window.c |    6 ++++++
 2 files changed, 11 insertions(+), 0 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 5e8a9df..e4ca124 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2011-12-17  Peter Bloomfield
 
+	* src/main-window.c: build --without-nm; thanks to Jack
+	<URL:http://mail.gnome.org/archives/balsa-list/2011-December/msg00013.html>.
+
+2011-12-17  Peter Bloomfield
+
 	* src/main.c (handle_remote): use the capabilities of
 	g_application_command_line_print.
 
diff --git a/src/main-window.c b/src/main-window.c
index 52fc9ab..9a98fc1 100644
--- a/src/main-window.c
+++ b/src/main-window.c
@@ -2977,7 +2977,9 @@ check_new_messages_real(BalsaWindow * window, int type)
     g_slist_foreach(list, (GFunc) g_object_unref, NULL);
     g_slist_free(list);
 
+#if defined(HAVE_LIBNM_GLIB)
     time(&window->last_check_time);
+#endif                          /* defined(HAVE_LIBNM_GLIB) */
 #endif
 }
 
@@ -3142,7 +3144,9 @@ bw_check_messages_thread(struct check_messages_thread_info *info)
     if (info->window) {
         gdk_threads_enter();
         bw_set_sensitive(info->window, "GetNewMail", TRUE);
+#if defined(HAVE_LIBNM_GLIB)
         time(&info->window->last_check_time);
+#endif                          /* defined(HAVE_LIBNM_GLIB) */
         g_object_unref(info->window);
         gdk_threads_leave();
     }
@@ -3576,6 +3580,7 @@ bw_change_connection_status_thread(void *arg)
                            mw_mbox_change_connection_status,
 			   arg);
 
+#if defined(HAVE_LIBNM_GLIB)
     /* GLib timeouts are now triggered by g_get_monotonic_time(),
      * which doesn't increment while we're suspended, so we must
      * check for ourselves whether a scheduled mail check was
@@ -3586,6 +3591,7 @@ bw_change_connection_status_thread(void *arg)
         /* Check the mail now, and reset the timer */
         check_new_messages_cb(NULL, balsa_app.main_window);
     }
+#endif                          /* defined(HAVE_LIBNM_GLIB) */
 
     return NULL;
 }



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