mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2024-11-13 08:43:47 +01:00
Print debug output on invalid filemonitor type
This commit is contained in:
parent
09c7f540ab
commit
019416f943
@ -2,9 +2,13 @@
|
|||||||
|
|
||||||
#include "file-monitor.h"
|
#include "file-monitor.h"
|
||||||
#include "file-monitor-glib.h"
|
#include "file-monitor-glib.h"
|
||||||
|
#ifdef G_OS_UNIX
|
||||||
#include "file-monitor-signal.h"
|
#include "file-monitor-signal.h"
|
||||||
|
#endif
|
||||||
#include "macros.h"
|
#include "macros.h"
|
||||||
|
|
||||||
|
#include <girara/utils.h>
|
||||||
|
|
||||||
G_DEFINE_TYPE(ZathuraFileMonitor, zathura_filemonitor, G_TYPE_OBJECT)
|
G_DEFINE_TYPE(ZathuraFileMonitor, zathura_filemonitor, G_TYPE_OBJECT)
|
||||||
|
|
||||||
typedef struct private_s {
|
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,
|
ret = g_object_new(ZATHURA_TYPE_GLIBFILEMONITOR, "file-path", file_path,
|
||||||
NULL);
|
NULL);
|
||||||
break;
|
break;
|
||||||
|
#ifdef G_OS_UNIX
|
||||||
case ZATHURA_FILEMONITOR_SIGNAL:
|
case ZATHURA_FILEMONITOR_SIGNAL:
|
||||||
ret = g_object_new(ZATHURA_TYPE_SIGNALFILEMONITOR, "file-path", file_path,
|
ret = g_object_new(ZATHURA_TYPE_SIGNALFILEMONITOR, "file-path", file_path,
|
||||||
NULL);
|
NULL);
|
||||||
break;
|
break;
|
||||||
|
#endif
|
||||||
default:
|
default:
|
||||||
|
girara_debug("invalid filemonitor type: %d", filemonitor_type);
|
||||||
g_return_val_if_fail(false, NULL);
|
g_return_val_if_fail(false, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user