~vcs-imports/balsa/master

« back to all changes in this revision

Viewing changes to libbalsa/misc.c

  • Committer: Pawel Salek
  • Date: 2009-02-07 22:20:25 UTC
  • Revision ID: git-v1:750bab1bc2273852311a96325e04bc194547498a
minimum gtk version upgraded, link cleanup (Incomplete!). Check min

* INSTALL: minimum gtk version upgraded, link cleanup (Incomplete!).
* configure.in: Check min versions, new option for Mac OS X desktop,
  check for *time_r funcs, remove unnecessary check for iconv
* src/filter-edit.h, src/balsa-index.c, src/balsa-mblist.c
* src/mailbox-conf.c, src/filter-edit-dialog.c, src/pref-manager.c
* src/address-book-config.c, libbalsa/misc.[hc]
* libbalsa/libbalsa-conf.[hc], libbalsa/address.c, libbalsa/identity.c
* src/filter-edit-callbacks.c: Assume we have Gtk+/glib >= 2.6.0
* libbalsa/imap/imap_search.c:
  use GDate instead of localtime_r (avoid dependency to libbalsa)
* libbalsa/rfc3156.c: use glib random func
* libbalsa/Makefile.am, libbalsa/missing{_time.c,.h}:
  add system-dependent time_r funcs
* src/main-window.c:
  Add basic Mac OS X menu integration, assume we have Gtk+/glib >= 2.6.0
* src/sendmsg-window.c: Add basic Mac OS X menu integration, use g_strdup.
* src/save-restore.[hc], libinit_balsa/assistant_page_defclient.[hc],
* libinit_balsa/assistant_init.c: No Gnome default client without Gnome
* src/toolbar-factory.c, src/main.c, src/Makefile.am:
  Build without Gnome support
* src/print-gtk.c: Mac OS X doesn't define _NL_MEASUREMENT_MEASUREMENT
* src/balsa-icons.c:  Remove unnecessary include.
* src/balsa-bonobo.[hc]: Only compiled if building with Gnome support
* src/balsa-app.c:
  Gdk on Mac OS X cannot create a new colour map, fall back to system
* src/ab-main.c:
  Build Gnome stuff only when available, assume we have Gtk+/glib >=
  2.6.0, add basic Mac OS X menu integration.

svn path=/trunk/; revision=8068

Show diffs side-by-side

added added

removed removed

Lines of Context:
1036
1036
    return 0;
1037
1037
}
1038
1038
 
1039
 
#if !GLIB_CHECK_VERSION(2, 2, 0)
1040
 
gboolean
1041
 
libbalsa_str_has_prefix(const gchar * str, const gchar * prefix)
1042
 
{
1043
 
    g_return_val_if_fail(str != NULL, FALSE);
1044
 
    g_return_val_if_fail(prefix != NULL, FALSE);
1045
 
 
1046
 
    while (*prefix == *str && *prefix) {
1047
 
        ++prefix;
1048
 
        ++str;
1049
 
    }
1050
 
 
1051
 
    return *prefix == '\0';
1052
 
}
1053
 
#endif                          /* !GLIB_CHECK_VERSION(2, 2, 0) */
1054
 
 
1055
1039
 
1056
1040
/* libbalsa_ia_rfc2821_equal
1057
1041
   compares two addresses according to rfc2821: local-part@domain is equal,