Mercurial > pidgin
changeset 5273:2e1238f4b4e3
[gaim-migrate @ 5645]
fix dragging buddies as they're signing off
committer: Tailor Script <tailor@pidgin.im>
author | Nathan Walp <nwalp@pidgin.im> |
---|---|
date | Thu, 01 May 2003 16:44:48 +0000 |
parents | 992550219800 |
children | ad299f62b9b6 |
files | src/gtkblist.c |
diffstat | 1 files changed, 5 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/gtkblist.c Thu May 01 16:10:06 2003 +0000 +++ b/src/gtkblist.c Thu May 01 16:44:48 2003 +0000 @@ -65,6 +65,7 @@ static void gaim_gtk_blist_update(struct gaim_buddy_list *list, GaimBlistNode *node); static char *gaim_get_tooltip_text(GaimBlistNode *node); static char *item_factory_translate_func (const char *path, gpointer func_data); +static gboolean get_iter_from_node(GaimBlistNode *node, GtkTreeIter *iter); struct _gaim_gtk_blist_node { GtkTreeRowReference *row; @@ -480,6 +481,8 @@ GtkTreeIter iter; GaimBlistNode *node = NULL; GValue val = {0}; + if(!sourcerow) + return; gtk_tree_model_get_iter(GTK_TREE_MODEL(gtkblist->treemodel), &iter, sourcerow); gtk_tree_model_get_value (GTK_TREE_MODEL(gtkblist->treemodel), &iter, NODE_COLUMN, &val); node = g_value_get_pointer(&val); @@ -488,10 +491,10 @@ 8, /* bits */ (void*)&node, sizeof (node)); - + gtk_tree_path_free(sourcerow); } - + } static void gaim_gtk_blist_drag_data_rcv_cb(GtkWidget *widget, GdkDragContext *dc, guint x, guint y,