diff options
-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 |