diff options
author | Christopher James Lahey <clahey@ximian.com> | 2001-08-04 11:35:29 +0800 |
---|---|---|
committer | Chris Lahey <clahey@src.gnome.org> | 2001-08-04 11:35:29 +0800 |
commit | f35d325f7920c22848e89ccfcfef9b3a34699569 (patch) | |
tree | 0a388b39a07f818c899e22d1d0192561df417096 /shell/e-storage-set-view.c | |
parent | edd997c8894491c74b9b908cbd1e5e9036d1c9c2 (diff) | |
download | gsoc2013-evolution-f35d325f7920c22848e89ccfcfef9b3a34699569.tar.gz gsoc2013-evolution-f35d325f7920c22848e89ccfcfef9b3a34699569.tar.zst gsoc2013-evolution-f35d325f7920c22848e89ccfcfef9b3a34699569.zip |
Some paths here don't set handled properly so lets initialize it to FALSE.
2001-08-03 Christopher James Lahey <clahey@ximian.com>
* e-storage-set-view.c (tree_drag_data_received): Some paths here
don't set handled properly so lets initialize it to FALSE.
(update_folder_with_unread_hash, etree_value_at): constified
folder_name here.
(init): Initialize priv->drag_path here to NULL.
svn path=/trunk/; revision=11648
Diffstat (limited to 'shell/e-storage-set-view.c')
-rw-r--r-- | shell/e-storage-set-view.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/shell/e-storage-set-view.c b/shell/e-storage-set-view.c index 9187e4bb81..223ed21a28 100644 --- a/shell/e-storage-set-view.c +++ b/shell/e-storage-set-view.c @@ -876,9 +876,9 @@ motion_notify_event (GtkWidget *widget, actions = GDK_ACTION_MOVE | GDK_ACTION_COPY; context = e_tree_drag_begin (tree, - priv->drag_row, priv->drag_column, - target_list, actions, - 1, (GdkEvent *) event); + priv->drag_row, priv->drag_column, + target_list, actions, + 1, (GdkEvent *) event); gtk_drag_set_icon_default (context); gtk_target_list_unref (target_list); @@ -1205,7 +1205,7 @@ tree_drag_data_received (ETree *etree, { EStorageSetView *storage_set_view; EStorageSetViewPrivate *priv; - gboolean handled; + gboolean handled = FALSE; char *target_type; storage_set_view = E_STORAGE_SET_VIEW (etree); @@ -1426,7 +1426,7 @@ etree_get_node_by_id (ETreeModel *etm, gchar *save_id, void *model_data) GHashTable *folders_with_unread = NULL; static void -update_folder_with_unread_hash (char *folder_name, int unread_count) +update_folder_with_unread_hash (const char *folder_name, int unread_count) { if (!folders_with_unread) folders_with_unread = g_hash_table_new (g_str_hash, g_str_equal); @@ -1454,7 +1454,7 @@ etree_value_at (ETreeModel *etree, ETreePath tree_path, int col, void *model_dat folder = e_storage_set_get_folder (storage_set, path); if (folder != NULL) { - char *folder_name = e_folder_get_name (folder); + const char *folder_name = e_folder_get_name (folder); int unread_count = e_folder_get_unread_count (folder); update_folder_with_unread_hash (folder_name, unread_count); @@ -1756,6 +1756,7 @@ init (EStorageSetView *storage_set_view) priv->drag_y = 0; priv->drag_column = 0; priv->drag_row = 0; + priv->drag_path = NULL; storage_set_view->priv = priv; } |