nautilus r14848 - in trunk: . libnautilus-private
- From: alexl svn gnome org
- To: svn-commits-list gnome org
- Subject: nautilus r14848 - in trunk: . libnautilus-private
- Date: Tue, 13 Jan 2009 11:07:38 +0000 (UTC)
Author: alexl
Date: Tue Jan 13 11:07:38 2009
New Revision: 14848
URL: http://svn.gnome.org/viewvc/nautilus?rev=14848&view=rev
Log:
2009-01-13 Alexander Larsson <alexl redhat com>
* libnautilus-private/nautilus-directory-async.c:
Don't need the want_foo calls, can just pass in
the request type directly now.
Modified:
trunk/ChangeLog
trunk/libnautilus-private/nautilus-directory-async.c
Modified: trunk/libnautilus-private/nautilus-directory-async.c
==============================================================================
--- trunk/libnautilus-private/nautilus-directory-async.c (original)
+++ trunk/libnautilus-private/nautilus-directory-async.c Tue Jan 13 11:07:38 2009
@@ -1688,12 +1688,6 @@
}
static gboolean
-wants_directory_count (Request request)
-{
- return REQUEST_WANTS_TYPE (request, REQUEST_DIRECTORY_COUNT);
-}
-
-static gboolean
lacks_top_left (NautilusFile *file)
{
return file->details->file_info_is_up_to_date &&
@@ -1702,12 +1696,6 @@
}
static gboolean
-wants_top_left (Request request)
-{
- return REQUEST_WANTS_TYPE (request, REQUEST_TOP_LEFT_TEXT);
-}
-
-static gboolean
lacks_large_top_left (NautilusFile *file)
{
return file->details->file_info_is_up_to_date &&
@@ -1715,13 +1703,6 @@
file->details->got_large_top_left_text != file->details->got_top_left_text)
&& nautilus_file_should_get_top_left_text (file);
}
-
-static gboolean
-wants_large_top_left (Request request)
-{
- return REQUEST_WANTS_TYPE (request, REQUEST_LARGE_TOP_LEFT_TEXT);
-}
-
static gboolean
lacks_info (NautilusFile *file)
{
@@ -1736,30 +1717,12 @@
}
static gboolean
-wants_info (Request request)
-{
- return REQUEST_WANTS_TYPE (request, REQUEST_FILE_INFO);
-}
-
-static gboolean
-wants_filesystem_info (Request request)
-{
- return REQUEST_WANTS_TYPE (request, REQUEST_FILESYSTEM_INFO);
-}
-
-static gboolean
lacks_deep_count (NautilusFile *file)
{
return file->details->deep_counts_status != NAUTILUS_REQUEST_DONE;
}
static gboolean
-wants_deep_count (Request request)
-{
- return REQUEST_WANTS_TYPE (request, REQUEST_DEEP_COUNT);
-}
-
-static gboolean
lacks_mime_list (NautilusFile *file)
{
return !file->details->mime_list_is_up_to_date;
@@ -1773,11 +1736,6 @@
}
static gboolean
-wants_mime_list (Request request)
-{
- return REQUEST_WANTS_TYPE (request, REQUEST_MIME_LIST);
-}
-static gboolean
lacks_link_info (NautilusFile *file)
{
if (file->details->file_info_is_up_to_date &&
@@ -1794,24 +1752,12 @@
}
static gboolean
-wants_link_info (Request request)
-{
- return REQUEST_WANTS_TYPE (request, REQUEST_LINK_INFO);
-}
-
-static gboolean
lacks_extension_info (NautilusFile *file)
{
return file->details->pending_info_providers != NULL;
}
static gboolean
-wants_extension_info (Request request)
-{
- return REQUEST_WANTS_TYPE (request, REQUEST_EXTENSION_INFO);
-}
-
-static gboolean
lacks_thumbnail (NautilusFile *file)
{
return nautilus_file_should_show_thumbnail (file) &&
@@ -1820,12 +1766,6 @@
}
static gboolean
-wants_thumbnail (Request request)
-{
- return REQUEST_WANTS_TYPE (request, REQUEST_THUMBNAIL);
-}
-
-static gboolean
lacks_mount (NautilusFile *file)
{
return (!file->details->mount_is_up_to_date &&
@@ -1846,12 +1786,6 @@
}
static gboolean
-wants_mount (Request request)
-{
- return REQUEST_WANTS_TYPE (request, REQUEST_MOUNT);
-}
-
-static gboolean
has_problem (NautilusDirectory *directory, NautilusFile *file, FileCheck problem)
{
GList *node;
@@ -2475,7 +2409,7 @@
static gboolean
is_needy (NautilusFile *file,
FileCheck check_missing,
- RequestCheck check_wanted)
+ RequestType request_type_wanted)
{
NautilusDirectory *directory;
GList *node;
@@ -2491,7 +2425,7 @@
node != NULL; node = node->next) {
callback = node->data;
if (callback->active &&
- (* check_wanted) (callback->request)) {
+ REQUEST_WANTS_TYPE (callback->request, request_type_wanted)) {
if (callback->file == file) {
return TRUE;
}
@@ -2504,7 +2438,7 @@
for (node = directory->details->monitor_list;
node != NULL; node = node->next) {
monitor = node->data;
- if ((* check_wanted) (monitor->request)) {
+ if (REQUEST_WANTS_TYPE (monitor->request, request_type_wanted)) {
if (monitor_includes_file (monitor, file)) {
return TRUE;
}
@@ -2525,7 +2459,7 @@
g_assert (file->details->directory == directory);
if (is_needy (file,
should_get_directory_count_now,
- wants_directory_count)) {
+ REQUEST_DIRECTORY_COUNT)) {
return;
}
}
@@ -2715,7 +2649,7 @@
if (!is_needy (file,
should_get_directory_count_now,
- wants_directory_count)) {
+ REQUEST_DIRECTORY_COUNT)) {
return;
}
*doing_io = TRUE;
@@ -3020,7 +2954,7 @@
g_assert (file->details->directory == directory);
if (is_needy (file,
lacks_deep_count,
- wants_deep_count)) {
+ REQUEST_DEEP_COUNT)) {
return;
}
}
@@ -3045,7 +2979,7 @@
if (!is_needy (file,
lacks_deep_count,
- wants_deep_count)) {
+ REQUEST_DEEP_COUNT)) {
return;
}
*doing_io = TRUE;
@@ -3093,7 +3027,7 @@
g_assert (file->details->directory == directory);
if (is_needy (file,
should_get_mime_list,
- wants_mime_list)) {
+ REQUEST_MIME_LIST)) {
return;
}
}
@@ -3291,7 +3225,7 @@
/* Figure out which file to get a mime list for. */
if (!is_needy (file,
should_get_mime_list,
- wants_mime_list)) {
+ REQUEST_MIME_LIST)) {
return;
}
*doing_io = TRUE;
@@ -3351,10 +3285,10 @@
g_assert (file->details->directory == directory);
if (is_needy (file,
lacks_top_left,
- wants_top_left) ||
+ REQUEST_TOP_LEFT_TEXT) ||
is_needy (file,
lacks_large_top_left,
- wants_large_top_left)) {
+ REQUEST_LARGE_TOP_LEFT_TEXT)) {
return;
}
}
@@ -3472,7 +3406,7 @@
if (is_needy (file,
lacks_large_top_left,
- wants_large_top_left)) {
+ REQUEST_LARGE_TOP_LEFT_TEXT)) {
needs_large = TRUE;
}
@@ -3480,7 +3414,7 @@
if (!(needs_large ||
is_needy (file,
lacks_top_left,
- wants_top_left))) {
+ REQUEST_TOP_LEFT_TEXT))) {
return;
}
*doing_io = TRUE;
@@ -3596,7 +3530,7 @@
if (file != NULL) {
g_assert (NAUTILUS_IS_FILE (file));
g_assert (file->details->directory == directory);
- if (is_needy (file, lacks_info, wants_info)) {
+ if (is_needy (file, lacks_info, REQUEST_FILE_INFO)) {
return;
}
}
@@ -3621,7 +3555,7 @@
return;
}
- if (!is_needy (file, lacks_info, wants_info)) {
+ if (!is_needy (file, lacks_info, REQUEST_FILE_INFO)) {
return;
}
*doing_io = TRUE;
@@ -3703,7 +3637,7 @@
g_assert (file->details->directory == directory);
if (is_needy (file,
lacks_link_info,
- wants_link_info)) {
+ REQUEST_LINK_INFO)) {
return;
}
}
@@ -3818,7 +3752,7 @@
if (!is_needy (file,
lacks_link_info,
- wants_link_info)) {
+ REQUEST_LINK_INFO)) {
return;
}
*doing_io = TRUE;
@@ -3902,7 +3836,7 @@
g_assert (file->details->directory == directory);
if (is_needy (file,
lacks_thumbnail,
- wants_thumbnail)) {
+ REQUEST_THUMBNAIL)) {
return;
}
}
@@ -4078,7 +4012,7 @@
if (!is_needy (file,
lacks_thumbnail,
- wants_thumbnail)) {
+ REQUEST_THUMBNAIL)) {
return;
}
*doing_io = TRUE;
@@ -4122,7 +4056,7 @@
g_assert (file->details->directory == directory);
if (is_needy (file,
lacks_mount,
- wants_mount)) {
+ REQUEST_MOUNT)) {
return;
}
}
@@ -4255,7 +4189,7 @@
if (!is_needy (file,
lacks_mount,
- wants_mount)) {
+ REQUEST_MOUNT)) {
return;
}
*doing_io = TRUE;
@@ -4323,7 +4257,7 @@
g_assert (file->details->directory == directory);
if (is_needy (file,
lacks_filesystem_info,
- wants_filesystem_info)) {
+ REQUEST_FILESYSTEM_INFO)) {
return;
}
}
@@ -4412,7 +4346,7 @@
if (!is_needy (file,
lacks_filesystem_info,
- wants_filesystem_info)) {
+ REQUEST_FILESYSTEM_INFO)) {
return;
}
*doing_io = TRUE;
@@ -4471,7 +4405,7 @@
if (file != NULL) {
g_assert (NAUTILUS_IS_FILE (file));
g_assert (file->details->directory == directory);
- if (is_needy (file, lacks_extension_info, wants_extension_info)) {
+ if (is_needy (file, lacks_extension_info, REQUEST_EXTENSION_INFO)) {
return;
}
}
@@ -4563,7 +4497,7 @@
return;
}
- if (!is_needy (file, lacks_extension_info, wants_extension_info)) {
+ if (!is_needy (file, lacks_extension_info, REQUEST_EXTENSION_INFO)) {
return;
}
*doing_io = TRUE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]