Changeset 3222

Show
Ignore:
Timestamp:
12/31/07 12:46:36
Author:
pvanhoof
Message:

gtk version check for a hack

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/libtinymailui-gtk/tny-gtk-header-list-model.c

    r3220 r3222  
    4141#include <glib/gi18n-lib.h> 
    4242#include <gdk/gdk.h> 
     43#include <gtk/gtk.h> 
    4344 
    4445#include <tny-gtk-header-list-model.h> 
     
    551552} 
    552553 
     554#if GTK_CHECK_VERSION (2,16,0) 
     555 
     556static inline GtkTreePath * 
     557gtk_tree_path_new_internal (gint index) 
     558{ 
     559        GtkTreePath *path = gtk_tree_path_new (); 
     560        gtk_tree_path_append_index (path, index); 
     561        return path; 
     562} 
     563static inline void 
     564gtk_tree_path_free_internal (GtkTreePath *path_in) 
     565{ 
     566        gtk_tree_path_free (path_in); 
     567} 
     568 
     569#else 
     570 
    553571typedef struct  
    554572{ 
     
    574592  g_slice_free (GtkTreePathInternal, path); 
    575593} 
     594 
     595#endif 
    576596 
    577597static gboolean