Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:12.2
gtk-vnc2
gtk-vnc-glib231-debug.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File gtk-vnc-glib231-debug.patch of Package gtk-vnc2
Index: gtk-vnc-0.5.0/src/Makefile.am =================================================================== --- gtk-vnc-0.5.0.orig/src/Makefile.am +++ gtk-vnc-0.5.0/src/Makefile.am @@ -48,7 +48,7 @@ libgvnc_1_0_la_CFLAGS = \ $(WARNING_CFLAGS) \ -DSYSCONFDIR=\""$(sysconfdir)"\" \ -DPACKAGE_LOCALE_DIR=\""$(datadir)/locale"\" \ - -DG_LOG_DOMAIN=\"gvnc\" + -DG_LOG_DOMAIN=\"gtk-vnc\" libgvnc_1_0_la_LDFLAGS = \ $(VERSION_SCRIPT_FLAGS)$(GVNC_VERSION_FILE) \ -version-info 0:1:0 $(NO_UNDEFINED_FLAGS) @@ -109,7 +109,7 @@ libgvncpulse_1_0_la_CFLAGS = \ $(WARNING_CFLAGS) \ -DSYSCONFDIR=\""$(sysconfdir)"\" \ -DPACKAGE_LOCALE_DIR=\""$(datadir)/locale"\" \ - -DG_LOG_DOMAIN=\"pulse-vnc\" + -DG_LOG_DOMAIN=\"gtk-vnc\" libgvncpulse_1_0_la_LDFLAGS = \ $(VERSION_SCRIPT_FLAGS)$(GVNCPULSE_VERSION_FILE) \ -version-info 0:1:0 $(NO_UNDEFINED_FLAGS) Index: gtk-vnc-0.5.0/src/vncutil.c =================================================================== --- gtk-vnc-0.5.0.orig/src/vncutil.c +++ gtk-vnc-0.5.0/src/vncutil.c @@ -20,6 +20,9 @@ #include <config.h> +#include <stdlib.h> +#include <string.h> + #include "vncutil.h" @@ -27,6 +30,18 @@ static gboolean debugFlag = FALSE; void vnc_util_set_debug(gboolean enabled) { +#if GLIB_CHECK_VERSION(2, 31, 0) + if (enabled) { + gchar *doms = getenv("G_MESSAGES_DEBUG"); + if (!doms) { + setenv("G_MESSAGES_DEBUG", G_LOG_DOMAIN, 1); + } else if (!strstr(doms, G_LOG_DOMAIN)) { + gchar *newdoms = g_strdup_printf("%s %s", doms, G_LOG_DOMAIN); + setenv("G_MESSAGES_DEBUG", newdoms, 1); + g_free(newdoms); + } + } +#endif debugFlag = enabled; } Index: gtk-vnc-0.5.0/src/Makefile.in =================================================================== --- gtk-vnc-0.5.0.orig/src/Makefile.in +++ gtk-vnc-0.5.0/src/Makefile.in @@ -488,7 +488,7 @@ libgvnc_1_0_la_CFLAGS = \ $(WARNING_CFLAGS) \ -DSYSCONFDIR=\""$(sysconfdir)"\" \ -DPACKAGE_LOCALE_DIR=\""$(datadir)/locale"\" \ - -DG_LOG_DOMAIN=\"gvnc\" + -DG_LOG_DOMAIN=\"gtk-vnc\" libgvnc_1_0_la_LDFLAGS = \ $(VERSION_SCRIPT_FLAGS)$(GVNC_VERSION_FILE) \ @@ -539,7 +539,7 @@ libgvnc_1_0_la_SOURCES = coroutine.h d3d @HAVE_PULSEAUDIO_TRUE@ $(WARNING_CFLAGS) \ @HAVE_PULSEAUDIO_TRUE@ -DSYSCONFDIR=\""$(sysconfdir)"\" \ @HAVE_PULSEAUDIO_TRUE@ -DPACKAGE_LOCALE_DIR=\""$(datadir)/locale"\" \ -@HAVE_PULSEAUDIO_TRUE@ -DG_LOG_DOMAIN=\"pulse-vnc\" +@HAVE_PULSEAUDIO_TRUE@ -DG_LOG_DOMAIN=\"gtk-vnc\" @HAVE_PULSEAUDIO_TRUE@libgvncpulse_1_0_la_LDFLAGS = \ @HAVE_PULSEAUDIO_TRUE@ $(VERSION_SCRIPT_FLAGS)$(GVNCPULSE_VERSION_FILE) \
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor