Use macro XDG_MIME_TYPE_UNKNOWN instead of the variable

master
Yevgen Muntyan 2006-06-17 05:50:03 -05:00
parent ee43c61f5c
commit b62cd50f55
2 changed files with 3 additions and 3 deletions

View File

@ -922,7 +922,7 @@ moo_lang_mgr_get_lang_for_file (MooLangMgr *mgr,
mime_type = xdg_mime_get_mime_type_for_file (filename, NULL);
if (!xdg_mime_mime_type_equal (mime_type, XDG_MIME_TYPE_UNKNOWN))
if (mime_type != XDG_MIME_TYPE_UNKNOWN)
lang = moo_lang_mgr_get_lang_for_mime_type (mgr, mime_type);
if (lang)
@ -963,7 +963,7 @@ moo_lang_mgr_get_lang_for_filename (MooLangMgr *mgr,
mime_type = xdg_mime_get_mime_type_from_file_name (filename);
if (!xdg_mime_mime_type_equal (mime_type, XDG_MIME_TYPE_UNKNOWN))
if (mime_type != XDG_MIME_TYPE_UNKNOWN)
lang = moo_lang_mgr_get_lang_for_mime_type (mgr, mime_type);
if (lang)

View File

@ -310,7 +310,7 @@ action_check_one (ToolAction *action,
mime = _moo_file_get_mime_type (file);
g_return_val_if_fail (mime != NULL, FALSE);
if (mime == xdg_mime_type_unknown)
if (mime == XDG_MIME_TYPE_UNKNOWN)
return FALSE;
for (l = action->mimetypes; l != NULL; l = l->next)