Created attachment 155208 [details] Fixed error. Steps to reproduce: (1)-Open mousepad as user: (mousepad:29596): GtkSourceView-CRITICAL **: gtk_source_style_scheme_get_id: assertion 'GTK_IS_SOURCE_STYLE_SCHEME (scheme)' failed (mousepad:29596): GLib-CRITICAL **: g_variant_new_string: assertion 'string != NULL' failed (mousepad:29596): GtkSourceView-CRITICAL **: gtk_source_style_scheme_get_id: assertion 'GTK_IS_SOURCE_STYLE_SCHEME (scheme)' failed (mousepad:29596): GLib-CRITICAL **: g_variant_new_string: assertion 'string != NULL' failed (mousepad:29596): GtkSourceView-CRITICAL **: gtk_source_style_scheme_get_id: assertion 'GTK_IS_SOURCE_STYLE_SCHEME (scheme)' failed (2)-Open mousepad as root: (mousepad:29628): GLib-CRITICAL **: g_variant_new_string: assertion 'string != NULL' failed (mousepad:29628): dconf-WARNING **: failed to commit changes to dconf: Conexiunea este închisă (mousepad:29628): GtkSourceView-CRITICAL **: gtk_source_style_scheme_get_id: assertion 'GTK_IS_SOURCE_STYLE_SCHEME (scheme)' failed (mousepad:29628): GtkSourceView-CRITICAL **: gtk_source_style_scheme_manager_get_scheme: assertion 'scheme_id != NULL' failed (mousepad:29628): GtkSourceView-CRITICAL **: gtk_source_style_scheme_get_id: assertion 'GTK_IS_SOURCE_STYLE_SCHEME (scheme)' failed (mousepad:29628): GLib-CRITICAL **: g_variant_new_string: assertion 'string != NULL' failed (mousepad:29628): dconf-WARNING **: failed to commit changes to dconf: Conexiunea este închisă (mousepad:29628): GtkSourceView-CRITICAL **: gtk_source_style_scheme_get_id: assertion 'GTK_IS_SOURCE_STYLE_SCHEME (scheme)' failed (mousepad:29628): GtkSourceView-CRITICAL **: gtk_source_style_scheme_manager_get_scheme: assertion 'scheme_id != NULL' failed ... This warnings when "Colour scheme" is set to "None". Patch in attachment.
(In reply to admin from comment #0) Patch doesn't work (only tested with GTK3). I have also change value in mousepad_view_class_init () function, same behaviour. If I change the value with gsettings, warnings disappear gsettings set org.xfce.mousepad.preferences.view color-scheme 'classic' Upstream knows https://bugzilla.xfce.org/show_bug.cgi?id=11663
(In reply to Olivier Duchateau from comment #1) Patch work OK (tested with GTK2). # make showconfig ===> The following configuration options are available for mousepad-0.4.0_1: GTK3=off: GTK+ 3 GUI toolkit support ===> Use 'make config' to modify these settings I change the value with gsettings (gsettings set org.xfce.mousepad.preferences.view color-scheme 'classic') - warnings still present. (mousepad:12105): GLib-CRITICAL **: g_variant_new_string: assertion 'string != NULL' failed (mousepad:12105): dconf-WARNING **: failed to commit changes to dconf: Соединение закрыто (mousepad:12105): GtkSourceView-CRITICAL **: gtk_source_style_scheme_get_id: assertion 'GTK_IS_SOURCE_STYLE_SCHEME (scheme)' failed (mousepad:12105): GtkSourceView-CRITICAL **: gtk_source_style_scheme_manager_get_scheme: assertion 'scheme_id != NULL' failed (mousepad:12105): GtkSourceView-CRITICAL **: gtk_source_style_scheme_get_id: assertion 'GTK_IS_SOURCE_STYLE_SCHEME (scheme)' failed (mousepad:12105): GLib-CRITICAL **: g_variant_new_string: assertion 'string != NULL' failed (mousepad:12105): dconf-WARNING **: failed to commit changes to dconf: Соединение закрыто (mousepad:12105): GtkSourceView-CRITICAL **: gtk_source_style_scheme_get_id: assertion 'GTK_IS_SOURCE_STYLE_SCHEME (scheme)' failed ...
Created attachment 155315 [details] patch_ok
Tested with GTK3 - patch work OK. # make showconfig ===> The following configuration options are available for mousepad-0.4.0_1: GTK3=on: GTK+ 3 GUI toolkit support ===> Use 'make config' to modify these settings P.S. Warning dcong still present, but this problem, when not right to access config dconf. (mousepad:21684): dconf-WARNING **: failed to commit changes to dconf: Соединение закрыто (mousepad:21684): dconf-WARNING **: failed to commit changes to dconf: Соединение закрыто (mousepad:21684): dconf-WARNING **: failed to commit changes to dconf: Соединение закрыто (mousepad:21684): dconf-WARNING **: failed to commit changes to dconf: Соединение закрыто (mousepad:21684): dconf-WARNING **: failed to commit changes to dconf: Соединение закрыто (mousepad:21684): dconf-WARNING **: failed to commit changes to dconf: Соединение закрыто (mousepad:21684): dconf-WARNING **: failed to commit changes to dconf: Соединение закрыто (mousepad:21684): dconf-WARNING **: failed to commit changes to dconf: Соединение закрыто ...
A commit references this bug: Author: olivierd Date: Sat Jul 11 06:02:22 UTC 2015 New revision: 391727 URL: https://svnweb.freebsd.org/changeset/ports/391727 Log: - Add patches in order to fix warnings, when color scheme is not defined - Bump PORTREVISION PR: 199181 Reported by: <admin@vladiom.com.ua> Obtained from: Xfce upstream repository Changes: head/editors/mousepad/Makefile head/editors/mousepad/files/patch-mousepad_mousepad-action-group.c head/editors/mousepad/files/patch-mousepad_mousepad-settings.c head/editors/mousepad/files/patch-mousepad_mousepad-view.c head/editors/mousepad/files/patch-mousepad_mousepad-window.c
Add upstream patches, which fix this boring behaviour.