diff options
author | Christian Persch <chpe@cvs.gnome.org> | 2003-08-21 20:17:19 +0800 |
---|---|---|
committer | Christian Persch <chpe@src.gnome.org> | 2003-08-21 20:17:19 +0800 |
commit | e248096d88862a9157cc23b00f211a8ea4ddaf2b (patch) | |
tree | 855206e04e5dd221f5d0c8d9a8ef9f49820f943b | |
parent | 4abcadb61611f22af59624b7554a2fea7aefe6be (diff) | |
download | gsoc2013-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.
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | lib/widgets/ephy-node-view.c | 8 |
2 files changed, 10 insertions, 5 deletions
@@ -1,3 +1,10 @@ +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. + 2003-08-20 Samúel Jón Gunnarsson <sammi@techattack.nu> * configure.in: Added "is" to ALL_LINGUAS 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 |