Author: kmachalkova
Date: Mon Sep 14 14:50:17 2009
New Revision: 58633
URL: http://svn.opensuse.org/viewcvs/yast?rev=58633&view=rev
Log:
Initialize Gtk stuff even in thread-less
environment
Modified:
trunk/gtk/ChangeLog
trunk/gtk/src/YGUI.cc
Modified: trunk/gtk/ChangeLog
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/ChangeLog?rev=58633&r1=58632&r2=58633&view=diff
==============================================================================
--- trunk/gtk/ChangeLog (original)
+++ trunk/gtk/ChangeLog Mon Sep 14 14:50:17 2009
@@ -1,3 +1,8 @@
+2009-09-14 Katarina Machalkova
+ * src/YGUI.cc: initialize Gtk stuff in ctor if we're running
+ without threads. This enables standalone libyui, where
+ with_threads=false use Gtk interface (thanks mmeeks for help)
+
2009-09-13 Ricardo Cruz
* src/YGPackageSelector.cc: bug fix: repository selection not
Modified: trunk/gtk/src/YGUI.cc
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/src/YGUI.cc?rev=58633&r1=58632&r2=58633&view=diff
==============================================================================
--- trunk/gtk/src/YGUI.cc (original)
+++ trunk/gtk/src/YGUI.cc Mon Sep 14 14:50:17 2009
@@ -44,6 +44,11 @@
YGUI::setTextdomain( TEXTDOMAIN );
+ // If we're running without threads, initialize Gtk stuff
+ // This enables standalone libyui use Gtk interface
+ if (!with_threads)
+ checkInit();
+
// without this none of the (default) threading action works ...
topmostConstructorHasFinished();
}
--
To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org
For additional commands, e-mail: yast-commit+help@opensuse.org