[gtkmm] Gtk::ApplicationWindow: Add set/unset/get_help_overlay()



commit 0c6654c27b707952358b4e054adfc5b227f455c6
Author: Kjell Ahlstedt <kjell ahlstedt bredband net>
Date:   Thu Mar 3 14:36:39 2016 +0100

    Gtk::ApplicationWindow: Add set/unset/get_help_overlay()

 gtk/src/applicationwindow.ccg |    6 ++++++
 gtk/src/applicationwindow.hg  |    9 +++++++++
 2 files changed, 15 insertions(+), 0 deletions(-)
---
diff --git a/gtk/src/applicationwindow.ccg b/gtk/src/applicationwindow.ccg
index b73ec37..1c26d23 100644
--- a/gtk/src/applicationwindow.ccg
+++ b/gtk/src/applicationwindow.ccg
@@ -16,6 +16,7 @@
  */
 
 #include <gtkmm/applicationwindow.h>
+#include <gtkmm/shortcutswindow.h>
 
 namespace Gtk
 {
@@ -45,4 +46,9 @@ ApplicationWindow::ApplicationWindow(const Glib::RefPtr<Application>& applicatio
     application->add_window(*this);
 }
 
+void ApplicationWindow::unset_help_overlay()
+{
+  gtk_application_window_set_help_overlay(gobj(), nullptr);
+}
+
 } // namespace Gtk
diff --git a/gtk/src/applicationwindow.hg b/gtk/src/applicationwindow.hg
index a9fe625..50d2f38 100644
--- a/gtk/src/applicationwindow.hg
+++ b/gtk/src/applicationwindow.hg
@@ -26,6 +26,7 @@ _PINCLUDE(gtkmm/private/window_p.h)
 
 namespace Gtk
 {
+class ShortcutsWindow;
 
 /** A Gtk::Window subclass with Gtk::Application support.
  *
@@ -88,6 +89,14 @@ dnl //_IGNORE(gtk_application_window_new)
 
   _WRAP_METHOD(guint get_id() const, gtk_application_window_get_id)
 
+  _WRAP_METHOD(void set_help_overlay(ShortcutsWindow& help_overlay), gtk_application_window_set_help_overlay)
+  /** Undoes the effect of a previous call to set_help_overlay().
+   * @newin{3,20}
+   */
+  void unset_help_overlay();
+  _WRAP_METHOD(ShortcutsWindow* get_help_overlay(), gtk_application_window_get_help_overlay)
+  _WRAP_METHOD(const ShortcutsWindow* get_help_overlay() const, gtk_application_window_get_help_overlay, 
constversion)
+
   _WRAP_PROPERTY("show-menubar", bool)
 };
 


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