Trim trailing white spaces.
[geeqie.git] / src / compat.h
index dd1b268..80d667e 100644 (file)
 #ifndef COMPAT_H
 #define COMPAT_H
 
-void radio_action_set_current_value(GtkRadioAction *action, gint current_value);
-GList* hash_table_get_keys(GHashTable *hash_table);
-
-#if !GTK_CHECK_VERSION(2,12,0)
-#define gtk_widget_set_tooltip_text(widget, text) /* ignored */
-#endif
-
 
 /* Some systems (BSD,MacOsX,HP-UX,...) define MAP_ANON and not MAP_ANONYMOUS */
 #if defined(MAP_ANON) && !defined(MAP_ANONYMOUS)
@@ -28,7 +21,7 @@ GList* hash_table_get_keys(GHashTable *hash_table);
 #define        MAP_ANON        MAP_ANONYMOUS
 #endif
 
-#ifndef GDK_KEY_Up
+#if !GTK_CHECK_VERSION(2,22,0)
 #define GDK_KEY_BackSpace      GDK_BackSpace
 #define GDK_KEY_Delete         GDK_Delete
 #define GDK_KEY_Down           GDK_Down
@@ -69,7 +62,7 @@ GList* hash_table_get_keys(GHashTable *hash_table);
 #define gtk_combo_box_text_append_text gtk_combo_box_append_text
 #define gtk_combo_box_text_new_with_entry gtk_combo_box_entry_new_text
 #define gtk_combo_box_new_with_model_and_entry(model) gtk_combo_box_entry_new_with_model(model, FILTER_COLUMN_FILTER)
-#define GTK_COMBO_BOX_TEXT(combo) GTK_COMBO_BOX(combo) 
+#define GTK_COMBO_BOX_TEXT(combo) GTK_COMBO_BOX(combo)
 #define gdk_window_get_width(window) compat_gdk_window_get_width(window)
 #define gdk_window_get_height(window) compat_gdk_window_get_height(window)
 
@@ -78,7 +71,7 @@ gint compat_gdk_window_get_height(GdkWindow *window);
 
 #endif
 
-#if !GTK_CHECK_VERSION(2,24,0)
+#if !GTK_CHECK_VERSION(2,22,0)
 #define gdk_window_create_similar_surface(window, content, width, height) compat_gdk_window_create_similar_surface(window, content, width, height)
 cairo_surface_t *compat_gdk_window_create_similar_surface (GdkWindow *window, cairo_content_t content, gint width, gint height);