aboutsummaryrefslogtreecommitdiffstats
path: root/lib/widgets/ephy-node-view.c
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2003-08-21 20:17:19 +0800
committerChristian Persch <chpe@src.gnome.org>2003-08-21 20:17:19 +0800
commite248096d88862a9157cc23b00f211a8ea4ddaf2b (patch)
tree855206e04e5dd221f5d0c8d9a8ef9f49820f943b /lib/widgets/ephy-node-view.c
parent4abcadb61611f22af59624b7554a2fea7aefe6be (diff)
downloadgsoc2013-epiphany-e248096d88862a9157cc23b00f211a8ea4ddaf2b.tar
gsoc2013-epiphany-e248096d88862a9157cc23b00f211a8ea4ddaf2b.tar.gz
gsoc2013-epiphany-e248096d88862a9157cc23b00f211a8ea4ddaf2b.tar.bz2
gsoc2013-epiphany-e248096d88862a9157cc23b00f211a8ea4ddaf2b.tar.lz
gsoc2013-epiphany-e248096d88862a9157cc23b00f211a8ea4ddaf2b.tar.xz
gsoc2013-epiphany-e248096d88862a9157cc23b00f211a8ea4ddaf2b.tar.zst
gsoc2013-epiphany-e248096d88862a9157cc23b00f211a8ea4ddaf2b.zip
Fix function signature, it's void instead of gboolean. Fix a logic error.
2003-08-21 Christian Persch <chpe@cvs.gnome.org> * lib/widgets/ephy-node-view.c: (drag_data_received_cb): Fix function signature, it's void instead of gboolean. Fix a logic error.
Diffstat (limited to 'lib/widgets/ephy-node-view.c')
-rw-r--r--lib/widgets/ephy-node-view.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/lib/widgets/ephy-node-view.c b/lib/widgets/ephy-node-view.c
index c49924b37..3baac583a 100644
--- a/lib/widgets/ephy-node-view.c
+++ b/lib/widgets/ephy-node-view.c
@@ -425,7 +425,7 @@ drag_leave_cb (GtkWidget *widget,
remove_scroll_timeout (view);
}
-static gboolean
+static void
drag_data_received_cb (GtkWidget *widget,
GdkDragContext *context,
int x,
@@ -441,7 +441,7 @@ drag_data_received_cb (GtkWidget *widget,
if (selection_data->length <= 0 || selection_data->data == NULL)
{
- return FALSE;
+ return;
}
on_row = gtk_tree_view_get_dest_row_at_pos (GTK_TREE_VIEW (widget),
@@ -460,7 +460,7 @@ drag_data_received_cb (GtkWidget *widget,
GList *uris;
gboolean success = FALSE;
- g_return_val_if_fail (on_row || path != NULL, FALSE);
+ g_return_if_fail (on_row && path != NULL);
node = get_node_from_path (view, path);
@@ -489,8 +489,6 @@ drag_data_received_cb (GtkWidget *widget,
* from being called */
g_signal_stop_emission_by_name (GTK_TREE_VIEW (view),
"drag_data_received");
-
- return TRUE;
}
static gboolean