[pan] pan/gui/gtk-compat.h: remove compat for Gtk2 < 2.24
- From: Dominique Dumont <ddumont src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pan] pan/gui/gtk-compat.h: remove compat for Gtk2 < 2.24
- Date: Sun, 19 Jun 2022 13:28:48 +0000 (UTC)
commit 711e13342e58f6f13ea43e8126db997388b00824
Author: Dominique Dumont <dod debian org>
Date: Sun Jun 19 15:06:19 2022 +0200
pan/gui/gtk-compat.h: remove compat for Gtk2 < 2.24
pan/gui/gtk-compat.h | 77 ----------------------------------------------------
1 file changed, 77 deletions(-)
---
diff --git a/pan/gui/gtk-compat.h b/pan/gui/gtk-compat.h
index 074ba47..dc93e93 100644
--- a/pan/gui/gtk-compat.h
+++ b/pan/gui/gtk-compat.h
@@ -79,93 +79,16 @@ static inline GdkWindow * gdk_window_get_device_position (GdkWindow *window,
#endif
}
-
-#if !GTK_CHECK_VERSION(2,18,0)
- static inline void gtk_widget_get_allocation( GtkWidget *w, GtkAllocation *a)
- {
- *a = w->allocation;
- }
- static inline bool gtk_widget_has_focus( GtkWidget *w)
- {
- return GTK_WIDGET_HAS_FOCUS(w);
- }
- static inline bool gtk_widget_get_sensitive( GtkWidget *w)
- {
- return GTK_WIDGET_SENSITIVE(w);
- }
- static inline bool gtk_widget_get_visible(GtkWidget *w)
- {
- return GTK_WIDGET_VISIBLE(w);
- }
- static inline bool gtk_widget_is_toplevel(GtkWidget *w)
- {
- return GTK_WIDGET_TOPLEVEL(w);
- }
-#endif
-
-#if !GTK_CHECK_VERSION(2,20,0)
- static inline gboolean gtk_widget_get_realized(GtkWidget *w)
- {
- return GTK_WIDGET_REALIZED(w);
- }
-#endif
-
#if defined(GTK_DISABLE_DEPRECATED) || GTK_CHECK_VERSION(3,0,0)
#if GTK_CHECK_VERSION(2,22,0)
#define GtkNotebookPage void
#endif
#endif
-#if !GTK_CHECK_VERSION(2,24,0)
-#define GTK_COMBO_BOX_TEXT(cb) GTK_COMBO_BOX(cb)
- typedef GtkComboBox GtkComboBoxText;
- static inline GtkWidget* gtk_combo_box_text_new()
- {
- return gtk_combo_box_new_text();
- }
- static inline GtkWidget* gtk_combo_box_text_new_with_entry()
- {
- return gtk_combo_box_entry_new_text();
- }
- static inline void gtk_combo_box_text_append_text(GtkComboBoxText *cb, const gchar *t)
- {
- gtk_combo_box_append_text(cb,t);
- }
- static inline gchar *gtk_combo_box_text_get_active_text(GtkComboBoxText *cb)
- {
- return gtk_combo_box_get_active_text(cb);
- }
- static inline void gtk_combo_box_text_remove(GtkComboBoxText *cb, int p)
- {
- gtk_combo_box_remove_text(cb, p);
- }
-#endif
-
#if !GTK_CHECK_VERSION(3, 0, 0)
#include <gdk/gdkkeysyms.h>
#endif
-//#if !GTK_CHECK_VERSION(3,0,0)
-//#ifndef GDK_KEY_Up
-// #define GDK_KEY_Up GDK_Up
-//#define GDK_KEY_KP_Up GDK_KP_Up
-//#ifndef GDK_KEY_Down
-// #define GDK_KEY_Down GDK_Down
-//#define GDK_KEY_KP_Down GDK_KP_Down
-//#endif
-
-#if !GTK_CHECK_VERSION(2, 22, 0)
-// Define any keys not defined by older GDK versions
- #define GDK_KEY_Delete GDK_Delete
- #define GDK_KEY_Return GDK_Return
- #define GDK_KEY_Down GDK_Down
- #define GDK_KEY_Left GDK_Left
- #define GDK_KEY_Right GDK_Right
- #define GDK_KEY_Up GDK_Up
- #define GDK_KEY_KP_Up GDK_KP_Up
- #define GDK_KEY_KP_Down GDK_KP_Down
-#endif
-
#if !GTK_CHECK_VERSION(3,0,0)
typedef GtkStyle GtkStyleContext;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]