[gtkmm] Gtk::Clipboard: Comment why get_default() is not wrapped



commit e45bcddee907ed99bf8fd6146330c3cbf45116f1
Author: Kjell Ahlstedt <kjell ahlstedt bredband net>
Date:   Wed Feb 8 13:09:55 2017 +0100

    Gtk::Clipboard: Comment why get_default() is not wrapped

 gtk/src/clipboard.hg |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/gtk/src/clipboard.hg b/gtk/src/clipboard.hg
index d047215..ce6d713 100644
--- a/gtk/src/clipboard.hg
+++ b/gtk/src/clipboard.hg
@@ -65,6 +65,11 @@ class Clipboard : public Glib::Object
 {
    _CLASS_GOBJECT(Clipboard, GtkClipboard, GTK_CLIPBOARD, Glib::Object, GObject)
 public:
+  // It's unnecessary to wrap gtk_clipboard_get_default(). The wrapper would be
+  // identical to get_for_display() with the default value of GdkAtom selection.
+  // If you ever wrap it, first make sure it's defined in gtkclipboard-quartz.c.
+  // https://bugzilla.gnome.org/show_bug.cgi?id=772281#c12
+  _IGNORE(gtk_clipboard_get_default)
 
   _WRAP_METHOD(static Glib::RefPtr<Clipboard> get(GdkAtom selection = GDK_SELECTION_CLIPBOARD), 
gtk_clipboard_get, refreturn)
   _WRAP_METHOD(static Glib::RefPtr<Clipboard> get_for_display(const Glib::RefPtr<Gdk::Display>& display, 
GdkAtom selection = GDK_SELECTION_CLIPBOARD), gtk_clipboard_get_for_display, refreturn)


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