[gtkmm] Gtk::Widget: Remove one of the drag_dest_find_target() overloads
- From: Kjell Ahlstedt <kjellahl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtkmm] Gtk::Widget: Remove one of the drag_dest_find_target() overloads
- Date: Thu, 2 Aug 2018 08:25:15 +0000 (UTC)
commit dc41de0d9c97615c8e3b16c9fe3ee7544a304952
Author: Kjell Ahlstedt <kjellahlstedt gmail com>
Date: Thu Aug 2 10:19:59 2018 +0200
Gtk::Widget: Remove one of the drag_dest_find_target() overloads
The hand-coded overload is unnecessary, and it was not modified when
the return value of gtk_drag_dest_find_target() was changed from
GdkAtom to const char*.
gtk/src/widget.ccg | 5 -----
gtk/src/widget.hg | 3 +--
2 files changed, 1 insertion(+), 7 deletions(-)
---
diff --git a/gtk/src/widget.ccg b/gtk/src/widget.ccg
index ae183171..0a8bba4a 100644
--- a/gtk/src/widget.ccg
+++ b/gtk/src/widget.ccg
@@ -496,11 +496,6 @@ void Widget_Class::dispose_vfunc_callback(GObject* self)
#endif
}
-Glib::ustring Widget::drag_dest_find_target(const Glib::RefPtr<Gdk::Drop>& drop) const
-{
- return Gdk::AtomString::to_cpp_type(gtk_drag_dest_find_target(const_cast<GtkWidget*>(gobj()),
Glib::unwrap(drop), nullptr /* See GTK+ docs */));
-}
-
void Widget::unset_font_options()
{
gtk_widget_set_font_options(gobj(), nullptr);
diff --git a/gtk/src/widget.hg b/gtk/src/widget.hg
index 3efd582b..6e50047c 100644
--- a/gtk/src/widget.hg
+++ b/gtk/src/widget.hg
@@ -420,8 +420,7 @@ public:
_WRAP_METHOD(void drag_dest_unset(), gtk_drag_dest_unset)
_WRAP_METHOD(Glib::ustring drag_dest_find_target(const Glib::RefPtr<Gdk::Drop>& drop,
- const Glib::RefPtr<Gdk::ContentFormats>& target_list) const, gtk_drag_dest_find_target)
- Glib::ustring drag_dest_find_target(const Glib::RefPtr<Gdk::Drop>& drop) const;
+ const Glib::RefPtr<Gdk::ContentFormats>& target_list = {}) const, gtk_drag_dest_find_target)
_WRAP_METHOD(Glib::RefPtr<Gdk::ContentFormats> drag_dest_get_target_list(), gtk_drag_dest_get_target_list,
refreturn)
_WRAP_METHOD(Glib::RefPtr<const Gdk::ContentFormats> drag_dest_get_target_list() const,
gtk_drag_dest_get_target_list, refreturn, constversion)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]