gcompat: gtk_widget_get_window() for below 2.14
authorJens Axboe <axboe@kernel.dk>
Mon, 26 Mar 2012 18:27:52 +0000 (20:27 +0200)
committerJens Axboe <axboe@kernel.dk>
Mon, 26 Mar 2012 18:27:52 +0000 (20:27 +0200)
Signed-off-by: Jens Axboe <axboe@kernel.dk>
gcompat.h

index cd9602ff1b170fd199cf9a15af17d7381bfaa030..61b989458468e7b6d30a544206e2ed0e073b1344 100644 (file)
--- a/gcompat.h
+++ b/gcompat.h
@@ -22,6 +22,10 @@ static inline GtkWidget *gtk_dialog_get_content_area(GtkDialog *dialog)
 {
        return dialog->vbox;
 }
+static inline GdkWindow *gtk_widget_get_window(GtkWidget *w)
+{
+       return w->window;
+}
 #endif
 
 #if GTK_MAJOR_VERSION < 3