# HG changeset patch # User masneyb # Date 1074455761 0 # Node ID 2e408d9918d4fd71251ca82e391200c5982d34db # Parent 2a049e4dc5512120b7da838dd2bf1f9a66201ac3 2003-1-18 Brian Masney * src/gtk/bookmarks.c - don't allow an item to be dropped onto the root node or items that are not a folder (from Aurelien Jarno ) diff -r 2a049e4dc551 -r 2e408d9918d4 ChangeLog --- a/ChangeLog Sun Jan 18 16:51:35 2004 +0000 +++ b/ChangeLog Sun Jan 18 19:56:01 2004 +0000 @@ -1,18 +1,23 @@ +2003-1-18 Brian Masney + * src/gtk/bookmarks.c - don't allow an item to be dropped onto the root + node or items that are not a folder + (from Aurelien Jarno ) + 2003-1-7 Brian Masney * lib/protocols.c (parse_time) - insert the right year for files that are from last year and the year is not shown in the ls output. - * src/uicommon/gftpui.c (_gftpui_common_thread_callback) - src/uicommon/gftpui.h - added a retries variable to the cdata structure - - * src/uicommon/gftpui.c (gftpui_common_cmd_open) src/uicommon/gftpui.c - - actually connect to the remote server - - * src/uicommon/gftpuicallbacks.c src/uicommon/gftpui.c - in the - callback functions, don't change the return value - - * src/text/textui.c (gftpui_generic_thread) - don't spawn a thread, - just call the function directly + * src/uicommon/gftpui.c (_gftpui_common_thread_callback) + src/uicommon/gftpui.h - added a retries variable to the cdata structure + + * src/uicommon/gftpui.c (gftpui_common_cmd_open) src/uicommon/gftpui.c + - actually connect to the remote server + + * src/uicommon/gftpuicallbacks.c src/uicommon/gftpui.c - in the + callback functions, don't change the return value + + * src/text/textui.c (gftpui_generic_thread) - don't spawn a thread, + just call the function directly 2003-1-6 Brian Masney * lib/gftp.h lib/protocols.c lib/rfc959.c - added MVS directory parsing @@ -1975,7 +1980,7 @@ * cvsclean - added this script - * *.[ch] - added $Id: ChangeLog,v 1.199 2004/01/07 12:11:34 masneyb Exp $ tags + * *.[ch] - added $Id: ChangeLog,v 1.200 2004/01/18 19:56:00 masneyb Exp $ tags * debian/* - updated files from Debian maintainer diff -r 2a049e4dc551 -r 2e408d9918d4 src/gtk/bookmarks.c --- a/src/gtk/bookmarks.c Sun Jan 18 16:51:35 2004 +0000 +++ b/src/gtk/bookmarks.c Sun Jan 18 19:56:01 2004 +0000 @@ -1075,6 +1075,14 @@ } +static inline gboolean +move_possible (GtkCTree *ctree, GtkCTreeNode *child, GtkCTreeNode *parent, + GtkCTreeNode *sibling) +{ + return (parent != NULL && sibling != NULL); +} + + static void after_move (GtkCTree * ctree, GtkCTreeNode * child, GtkCTreeNode * parent, GtkCTreeNode * sibling, gpointer data) @@ -1248,6 +1256,7 @@ GTK_SIGNAL_FUNC (after_move), NULL); gtk_signal_connect_after (GTK_OBJECT (tree), "button_press_event", GTK_SIGNAL_FUNC (bm_dblclick), (gpointer) tree); + gtk_ctree_set_drag_compare_func (GTK_CTREE(tree), &move_possible); gtk_widget_show (tree); #if GTK_MAJOR_VERSION == 1