[libgd/wip/ernestask/gtk4: 15/23] Drop info parameter from drag-data-get
- From: Ernestas Kulik <ernestask src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgd/wip/ernestask/gtk4: 15/23] Drop info parameter from drag-data-get
- Date: Sat, 10 Mar 2018 09:07:53 +0000 (UTC)
commit 91027cf29f0564759068eea9895844815b1e3d26
Author: Ernestas Kulik <ernestask gnome org>
Date: Mon Mar 5 18:30:36 2018 +0200
Drop info parameter from drag-data-get
libgd/gd-main-icon-box.c | 4 ----
libgd/gd-main-icon-view.c | 6 +-----
libgd/gd-main-list-view.c | 6 +-----
3 files changed, 2 insertions(+), 14 deletions(-)
---
diff --git a/libgd/gd-main-icon-box.c b/libgd/gd-main-icon-box.c
index c04e15d..3e982ca 100644
--- a/libgd/gd-main-icon-box.c
+++ b/libgd/gd-main-icon-box.c
@@ -588,7 +588,6 @@ static void
gd_main_icon_box_drag_data_get (GtkWidget *widget,
GdkDragContext *context,
GtkSelectionData *data,
- guint info,
guint time)
{
GdMainIconBox *self = GD_MAIN_ICON_BOX (widget);
@@ -597,9 +596,6 @@ gd_main_icon_box_drag_data_get (GtkWidget *widget,
priv = gd_main_icon_box_get_instance_private (self);
- if (info != 0)
- goto out;
-
if (priv->dnd_start_x < 0.0 || priv->dnd_start_y < 0.0)
goto out;
diff --git a/libgd/gd-main-icon-view.c b/libgd/gd-main-icon-view.c
index 7602edc..263eba6 100644
--- a/libgd/gd-main-icon-view.c
+++ b/libgd/gd-main-icon-view.c
@@ -99,7 +99,6 @@ static void
gd_main_icon_view_drag_data_get (GtkWidget *widget,
GdkDragContext *drag_context,
GtkSelectionData *data,
- guint info,
guint time)
{
GdMainIconView *self = GD_MAIN_ICON_VIEW (widget);
@@ -108,14 +107,11 @@ gd_main_icon_view_drag_data_get (GtkWidget *widget,
priv = gd_main_icon_view_get_instance_private (self);
- if (info != 0)
- return;
-
_gd_main_view_generic_dnd_common (model, priv->selection_mode,
get_source_row (drag_context), data);
GTK_WIDGET_CLASS (gd_main_icon_view_parent_class)->drag_data_get (widget, drag_context,
- data, info, time);
+ data, time);
}
static void
diff --git a/libgd/gd-main-list-view.c b/libgd/gd-main-list-view.c
index 26128af..00fe5e0 100644
--- a/libgd/gd-main-list-view.c
+++ b/libgd/gd-main-list-view.c
@@ -92,21 +92,17 @@ static void
gd_main_list_view_drag_data_get (GtkWidget *widget,
GdkDragContext *drag_context,
GtkSelectionData *data,
- guint info,
guint time)
{
GdMainListView *self = GD_MAIN_LIST_VIEW (widget);
GtkTreeModel *model = gtk_tree_view_get_model (GTK_TREE_VIEW (self));
- if (info != 0)
- return;
-
_gd_main_view_generic_dnd_common (model,
self->priv->selection_mode,
get_source_row (drag_context), data);
GTK_WIDGET_CLASS (gd_main_list_view_parent_class)->drag_data_get (widget, drag_context,
- data, info, time);
+ data, time);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]