Commit 019416f9 authored by Sebastian Ramacher's avatar Sebastian Ramacher

Print debug output on invalid filemonitor type

parent 09c7f540
Pipeline #127 skipped
......@@ -2,9 +2,13 @@
#include "file-monitor.h"
#include "file-monitor-glib.h"
#ifdef G_OS_UNIX
#include "file-monitor-signal.h"
#endif
#include "macros.h"
#include <girara/utils.h>
G_DEFINE_TYPE(ZathuraFileMonitor, zathura_filemonitor, G_TYPE_OBJECT)
typedef struct private_s {
......@@ -126,11 +130,14 @@ zathura_filemonitor_new(const char* file_path,
ret = g_object_new(ZATHURA_TYPE_GLIBFILEMONITOR, "file-path", file_path,
NULL);
break;
#ifdef G_OS_UNIX
case ZATHURA_FILEMONITOR_SIGNAL:
ret = g_object_new(ZATHURA_TYPE_SIGNALFILEMONITOR, "file-path", file_path,
NULL);
break;
#endif
default:
girara_debug("invalid filemonitor type: %d", filemonitor_type);
g_return_val_if_fail(false, NULL);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment