diff options
author | Jeffrey Stedfast <fejj@ximian.com> | 2003-12-03 04:57:23 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2003-12-03 04:57:23 +0800 |
commit | a0b2261343a7938b4c85f8659216b9df1c81769b (patch) | |
tree | 6303a197cee9b5efb0e4e24363de81b05470f456 /mail/em-folder-tree-model.c | |
parent | 3db4f804fda057ff60bc019b3ce7082134eb80fc (diff) | |
download | gsoc2013-evolution-a0b2261343a7938b4c85f8659216b9df1c81769b.tar.gz gsoc2013-evolution-a0b2261343a7938b4c85f8659216b9df1c81769b.tar.zst gsoc2013-evolution-a0b2261343a7938b4c85f8659216b9df1c81769b.zip |
Connect to the loading row signal. (loading_row_cb): Expand the path if
2003-12-02 Jeffrey Stedfast <fejj@ximian.com>
* em-folder-tree.c (em_folder_tree_new_with_model): Connect to the
loading row signal.
(loading_row_cb): Expand the path if needed.
(em_folder_tree_destroy): Disconnect from the loading-row signal.
* em-folder-tree-model.c (em_folder_tree_model_class_init): Define
the loading-row signal.
(em_folder_tree_model_set_folder_info): emit the loading-row signal.
svn path=/trunk/; revision=23589
Diffstat (limited to 'mail/em-folder-tree-model.c')
-rw-r--r-- | mail/em-folder-tree-model.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/mail/em-folder-tree-model.c b/mail/em-folder-tree-model.c index 8efbcce48d..563f53dce0 100644 --- a/mail/em-folder-tree-model.c +++ b/mail/em-folder-tree-model.c @@ -78,6 +78,7 @@ static gboolean model_drag_data_delete (GtkTreeDragSource *drag_source, enum { + LOADING_ROW, DRAG_DATA_RECEIVED, ROW_DROP_POSSIBLE, ROW_DRAGGABLE, @@ -149,6 +150,17 @@ em_folder_tree_model_class_init (EMFolderTreeModelClass *klass) object_class->finalize = em_folder_tree_model_finalize; /* signals */ + signals[LOADING_ROW] = + g_signal_new ("loading-row", + G_OBJECT_CLASS_TYPE (object_class), + G_SIGNAL_RUN_FIRST, + G_STRUCT_OFFSET (EMFolderTreeModelClass, loading_row), + NULL, NULL, + em_marshal_VOID__POINTER_POINTER, + G_TYPE_NONE, 2, + G_TYPE_POINTER, + G_TYPE_POINTER); + signals[DRAG_DATA_RECEIVED] = g_signal_new ("drag-data-received", G_OBJECT_CLASS_TYPE (object_class), @@ -442,6 +454,10 @@ em_folder_tree_model_set_folder_info (EMFolderTreeModel *model, GtkTreeIter *ite COL_STRING_URI, NULL, COL_UINT_UNREAD, 0, -1); + + path = gtk_tree_model_get_path ((GtkTreeModel *) model, iter); + g_signal_emit (model, signals[LOADING_ROW], 0, path, iter); + gtk_tree_path_free (path); } } |