Author: michael_meeks
Date: Mon Oct 6 18:37:41 2008
New Revision: 51886
URL: http://svn.opensuse.org/viewcvs/yast?rev=51886&view=rev
Log:
2008-10-06 Michael Meeks
* src/YGUI.cc (print_log): wow - YUILog::log assumes that it has
a static / const string.
Modified:
trunk/gtk/ChangeLog
trunk/gtk/src/YGUI.cc
Modified: trunk/gtk/ChangeLog
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/ChangeLog?rev=51886&r1=51885&r2=51886&view=diff
==============================================================================
--- trunk/gtk/ChangeLog (original)
+++ trunk/gtk/ChangeLog Mon Oct 6 18:37:41 2008
@@ -1,5 +1,8 @@
2008-10-06 Michael Meeks
+ * src/YGUI.cc (print_log): wow - YUILog::log assumes that it has
+ a static / const string.
+
* src/YGDialog.cc: set dialog a11y role on dialogs.
2008-10-02 Ricardo Cruz
Modified: trunk/gtk/src/YGUI.cc
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/src/YGUI.cc?rev=51886&r1=51885&r2=51886&view=diff
==============================================================================
--- trunk/gtk/src/YGUI.cc (original)
+++ trunk/gtk/src/YGUI.cc Mon Oct 6 18:37:41 2008
@@ -79,7 +79,12 @@
default:
break;
}
- YUILog::instance()->log (ylevel, domain ? domain : "yast2-gtk", "yast2-gtk", 0, "") << message;
+ // YUILog.cc assumes 'logComponent' (etc.) are static strings, that it
+ // can just keep lying around for ever, and use later, so we have to
+ // intern the domain - that can be allocated (or belong to a transient
+ // plugin's address space).
+ const char *component = domain ? g_intern_string (domain) : "yast2-gtk";
+ YUILog::instance()->log (ylevel, component, "yast2-gtk", 0, "") << message;
}
void YGUI::checkInit()
--
To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org
For additional commands, e-mail: yast-commit+help@opensuse.org