[gtkmm] Gtk::Application: Fix the build with the latest gtk+



commit f01f0e30c91d3ff64ec3bca24f5ce6f6355451f0
Author: Kjell Ahlstedt <kjell ahlstedt bredband net>
Date:   Tue Apr 15 14:45:57 2014 +0200

    Gtk::Application: Fix the build with the latest gtk+
    
    * gtk/src/application.hg: Define GDK_DISABLE_DEPRECATION_WARNINGS,
    because gtk_application_add/remove_accelerator() are deprecated.

 gtk/src/application.hg |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/gtk/src/application.hg b/gtk/src/application.hg
index 376bc6b..0049c21 100644
--- a/gtk/src/application.hg
+++ b/gtk/src/application.hg
@@ -32,6 +32,9 @@ _PINCLUDE(giomm/private/application_p.h)
 #m4 _PUSH(SECTION_CC_PRE_INCLUDES)
 // Needed before gtkmm/private/application_p.h is included.
 typedef struct _GtkWindow GtkWindow;
+//So we can use deprecated GTK+ API in our deprecated C++ API:
+#undef GTK_DISABLE_DEPRECATED
+#define GDK_DISABLE_DEPRECATION_WARNINGS 1
 #m4 _POP()
 
 namespace Gtk


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]