summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrbuj <[email protected]>2021-10-19 20:47:32 +0200
committerraveit65 <[email protected]>2022-02-11 18:36:38 +0100
commit693d74f5e9d72224fa8213fec7231203c863c4e2 (patch)
tree4bb5f8d2f42c188a5340e66f2c04378de52f28e5
parentae5293ecdb902c6ff3f4870e6ae94c69024b3288 (diff)
downloadmate-utils-master.tar.bz2
mate-utils-master.tar.xz
logview: converting the enum constant to a booleanHEADmaster
-rw-r--r--logview/src/logview-app.c2
-rw-r--r--logview/src/logview-log.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/logview/src/logview-app.c b/logview/src/logview-app.c
index fc5941fc..ba9bec7b 100644
--- a/logview/src/logview-app.c
+++ b/logview/src/logview-app.c
@@ -185,7 +185,7 @@ enumerate_next_files_async_cb (GObject *source,
continue;
}
- if (type != (G_FILE_TYPE_REGULAR || G_FILE_TYPE_SYMBOLIC_LINK) ||
+ if (((type != G_FILE_TYPE_REGULAR) && (type != G_FILE_TYPE_SYMBOLIC_LINK)) ||
!g_content_type_is_a (content_type, "text/plain"))
{
g_object_unref (info);
diff --git a/logview/src/logview-log.c b/logview/src/logview-log.c
index b4aef846..6ff92904 100644
--- a/logview/src/logview-log.c
+++ b/logview/src/logview-log.c
@@ -643,7 +643,7 @@ log_load (GIOSchedulerJob *io_job,
is_archive = g_content_type_equals (content_type, "application/x-gzip");
- if (type != (G_FILE_TYPE_REGULAR || G_FILE_TYPE_SYMBOLIC_LINK) ||
+ if (((type != G_FILE_TYPE_REGULAR) && (type != G_FILE_TYPE_SYMBOLIC_LINK)) ||
(!g_content_type_is_a (content_type, "text/plain") && !is_archive))
{
err = g_error_new_literal (LOGVIEW_ERROR_QUARK, LOGVIEW_ERROR_NOT_A_LOG,