summaryrefslogtreecommitdiffstats
path: root/gtk/src/ghbcompat.h
diff options
context:
space:
mode:
authorjstebbins <[email protected]>2014-02-25 18:23:08 +0000
committerjstebbins <[email protected]>2014-02-25 18:23:08 +0000
commit0d059773392af25d4e86aeda2edf595cd6c5dd92 (patch)
tree4b80ec15d465054000ae887d8b97694c2550a713 /gtk/src/ghbcompat.h
parentf2e0749bb43ec0f8fc420087100cdfcb2fb0ed59 (diff)
LinGui: remove cruft
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6084 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'gtk/src/ghbcompat.h')
-rw-r--r--gtk/src/ghbcompat.h32
1 files changed, 0 insertions, 32 deletions
diff --git a/gtk/src/ghbcompat.h b/gtk/src/ghbcompat.h
index fa9e10bec..4e95951b0 100644
--- a/gtk/src/ghbcompat.h
+++ b/gtk/src/ghbcompat.h
@@ -4,31 +4,6 @@
#include <gtk/gtk.h>
#include <gdk/gdk.h>
-#if !GTK_CHECK_VERSION(3, 0, 0)
-#include <gdk/gdkkeysyms.h>
-#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_Up GDK_Up
-#endif
-
-#if !GTK_CHECK_VERSION(2, 20, 0)
-// Replace simple accessor functions added to newer gtk versions
-static inline void gtk_widget_set_realized(GtkWidget *widget, gboolean realized)
-{
- GTK_WIDGET_SET_FLAGS(widget, GTK_REALIZED);
-}
-
-static inline gboolean gtk_widget_get_realized(GtkWidget *widget)
-{
- return GTK_WIDGET_REALIZED(widget);
-}
-#endif
-
static inline PangoFontDescription* ghb_widget_get_font(GtkWidget *widget)
{
PangoFontDescription *font = NULL;
@@ -44,18 +19,11 @@ static inline PangoFontDescription* ghb_widget_get_font(GtkWidget *widget)
#else
font = gtk_style_context_get_font(style, GTK_STATE_FLAG_NORMAL);
#endif
-
-#else
- font = gtk_widget_get_style(widget)->font_desc;
#endif
return font;
}
-#if !GTK_CHECK_VERSION(3, 0, 0)
-#define gtk_widget_override_font gtk_widget_modify_font
-#endif
-
#if !GTK_CHECK_VERSION(3, 10, 0)
#define gtk_image_set_from_icon_name gtk_image_set_from_stock
#define GHB_PLAY_ICON "gtk-media-play"