~vcs-imports/balsa/master

« back to all changes in this revision

Viewing changes to src/balsa-index.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:
51
51
#include <glib/gi18n.h>
52
52
 
53
53
/* TREE_VIEW_FIXED_HEIGHT enables hight-performance mode of GtkTreeView
54
 
 * very useful for large mailboxes (#msg >5000) but: a. is available only
55
 
 * in gtk2>=2.3.5 b. may expose some bugs in gtk.
56
 
 * gtk-2.4.9 has been tested with a positive result.
57
 
 */
58
 
#if GTK_CHECK_VERSION(2,4,9)
 
54
 * very useful for large mailboxes (#msg >5000)  */
59
55
#define TREE_VIEW_FIXED_HEIGHT 1
60
 
#endif
61
56
 
62
57
 
63
58
/* gtk widget */
415
410
    g_signal_connect_after(tree_view, "size-allocate",
416
411
                           G_CALLBACK(bndx_column_resize),
417
412
                           NULL);
418
 
#if GTK_CHECK_VERSION(2,4,9)
419
413
    gtk_tree_view_set_enable_search(tree_view, FALSE);
420
 
#endif
421
414
 
422
415
    gtk_drag_source_set(GTK_WIDGET (index), 
423
416
                        GDK_BUTTON1_MASK | GDK_SHIFT_MASK | GDK_CONTROL_MASK,
2585
2578
        gchar *pipe_cmd;
2586
2579
        GList *active_cmd;
2587
2580
 
2588
 
#if GTK_CHECK_VERSION(2, 6, 0)
2589
2581
        pipe_cmd =
2590
2582
            gtk_combo_box_get_active_text(GTK_COMBO_BOX(info->entry));
2591
 
#else                           /* GTK_CHECK_VERSION(2, 6, 0) */
2592
 
        pipe_cmd =
2593
 
            gtk_editable_get_chars(GTK_EDITABLE
2594
 
                                   (GTK_BIN(info->entry)->child), 0, -1);
2595
 
#endif                          /* GTK_CHECK_VERSION(2, 6, 0) */
2596
2583
        active_cmd =
2597
2584
            g_list_find_custom(balsa_app.pipe_cmds, pipe_cmd,
2598
2585
                               (GCompareFunc) strcmp);