[gtk/dnd-gestures-2: 115/150] notebook: Stop using gtk_drag_source_get_origin
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/dnd-gestures-2: 115/150] notebook: Stop using gtk_drag_source_get_origin
- Date: Tue, 7 Jan 2020 07:01:35 +0000 (UTC)
commit e6705c94540a8498333a2c83e08c9ff2f1820191
Author: Matthias Clasen <mclasen redhat com>
Date: Mon Jan 6 19:51:46 2020 -0500
notebook: Stop using gtk_drag_source_get_origin
gtk/gtknotebook.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/gtk/gtknotebook.c b/gtk/gtknotebook.c
index 585a3143d1..4a902bf14c 100644
--- a/gtk/gtknotebook.c
+++ b/gtk/gtknotebook.c
@@ -3232,7 +3232,7 @@ gtk_notebook_drag_motion (GtkDropTarget *dest,
else
{
GtkDragSource *drag_source = gtk_drag_get_source (drag);
- GtkNotebook *source = GTK_NOTEBOOK (gtk_drag_source_get_origin (drag_source));
+ GtkNotebook *source = GTK_NOTEBOOK (gtk_event_controller_get_widget (GTK_EVENT_CONTROLLER
(drag_source)));
g_assert (source->priv->cur_page != NULL);
source_child = source->priv->cur_page->child;
@@ -3307,7 +3307,7 @@ got_page (GObject *source,
GInputStream *stream;
const char *mime_type;
- source_widget = drag ? gtk_drag_source_get_origin (gtk_drag_get_source (drag)) : NULL;
+ source_widget = drag ? gtk_event_controller_get_widget (GTK_EVENT_CONTROLLER (drag)) : NULL;
stream = gdk_drop_read_finish (drop, result, &mime_type, NULL);
@@ -3355,7 +3355,7 @@ gtk_notebook_drag_drop (GtkDropTarget *dest,
GtkWidget *source_widget;
GdkAtom target, tab_target;
- source_widget = drag ? gtk_drag_source_get_origin (gtk_drag_get_source (drag)) : NULL;
+ source_widget = drag ? gtk_event_controller_get_widget (GTK_EVENT_CONTROLLER (drag)) : NULL;
target = gtk_drop_target_find_mimetype (dest);
tab_target = g_intern_static_string ("GTK_NOTEBOOK_TAB");
@@ -7114,7 +7114,7 @@ gtk_notebook_get_tab_detachable (GtkNotebook *notebook,
*
* drag = gtk_drop_get_drag (drop);
* source = gtk_drag_get_source (drag);
- * notebook = gtk_drag_source_get_origin (source);
+ * notebook = gtk_event_controller_get_widge (GTK_EVENT_CONTROLLER (source));
* child = (void*) gtk_selection_data_get_data (data);
*
* // process_widget (*child);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]