Mercurial > pidgin.yaz
diff console/libgnt/gnttree.c @ 13865:d78ab363e02d
[gaim-migrate @ 16331]
Make the tooltips move to the right place when the selected item goes up/down when someone signs on/off.
committer: Tailor Script <tailor@pidgin.im>
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Sat, 24 Jun 2006 20:06:37 +0000 |
parents | c7d84d4c5afa |
children | 0d0ab1e39d0a |
line wrap: on
line diff
--- a/console/libgnt/gnttree.c Sat Jun 24 10:10:53 2006 +0000 +++ b/console/libgnt/gnttree.c Sat Jun 24 20:06:37 2006 +0000 @@ -6,6 +6,7 @@ enum { SIG_SELECTION_CHANGED, + SIG_SCROLLED, SIGS, }; @@ -345,6 +346,14 @@ NULL, NULL, gnt_closure_marshal_VOID__POINTER_POINTER, G_TYPE_NONE, 2, G_TYPE_POINTER, G_TYPE_POINTER); + signals[SIG_SCROLLED] = + g_signal_new("scrolled", + G_TYPE_FROM_CLASS(klass), + G_SIGNAL_RUN_LAST, + 0, + NULL, NULL, + g_cclosure_marshal_VOID__INT, + G_TYPE_NONE, 1, G_TYPE_INT); DEBUG; } @@ -445,6 +454,7 @@ } redraw_tree(tree); + g_signal_emit(tree, signals[SIG_SCROLLED], 0, count); } static int