[virt-tools-list] [PATCH virt-viewer 1/2] build: Keep original type name as generated from glib-mkenums
Eduardo Lima (Etrunko)
etrunko at redhat.com
Wed Sep 12 09:07:58 UTC 2018
Signed-off-by: Eduardo Lima (Etrunko) <etrunko at redhat.com>
---
src/Makefile.am | 4 ++--
src/virt-viewer-display.c | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/Makefile.am b/src/Makefile.am
index 0a3cbbf..0472908 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -40,8 +40,8 @@ virt-viewer-resources.c virt-viewer-resources.h: resources/virt-viewer.gresource
virt-viewer-enums.c virt-viewer-enums.h: %: %.etemplate $(ENUMS_FILES)
$(AM_V_GEN)LC_ALL= LANG=C LC_CTYPE=en_US.UTF-8 $(GLIB_MKENUMS) --template $^ | \
- sed -e 's/VIRT_TYPE_VIEWER/VIRT_VIEWER_TYPE/' \
- -e 's,#include "$(srcdir)/,#include ",' > $@
+ sed -e 's,#include "$(srcdir)/,#include ",' > $@
+
CLEANFILES = \
$(BUILT_SOURCES) \
diff --git a/src/virt-viewer-display.c b/src/virt-viewer-display.c
index 2dbaba1..d6f29d1 100644
--- a/src/virt-viewer-display.c
+++ b/src/virt-viewer-display.c
@@ -140,7 +140,7 @@ virt_viewer_display_class_init(VirtViewerDisplayClass *class)
g_param_spec_flags("show-hint",
"Show hint",
"Show state hint",
- VIRT_VIEWER_TYPE_DISPLAY_SHOW_HINT_FLAGS,
+ VIRT_TYPE_VIEWER_DISPLAY_SHOW_HINT_FLAGS, /* from generated file virt-viewer-enums.h */
0,
G_PARAM_READABLE));
--
2.17.1
More information about the virt-tools-list
mailing list