Author: rpmcruz
Date: Sun Dec 9 19:30:10 2007
New Revision: 42872
URL: http://svn.opensuse.org/viewcvs/yast?rev=42872&view=rev
Log:
* src/YGUI.h.cc: fixed package selector issue. We weren't implementing
UI::RunPkgSelector() (removed it on cleanup...).
* src/ygtkwizard.c: fix part widgets destroying; possible mem-leak.
Modified:
trunk/gtk/unstable-libyui/ChangeLog
trunk/gtk/unstable-libyui/src/YGUI.cc
trunk/gtk/unstable-libyui/src/YGUI.h
trunk/gtk/unstable-libyui/src/ygtkwizard.c
Modified: trunk/gtk/unstable-libyui/ChangeLog
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/unstable-libyui/ChangeLog?rev=42872&r1=42871&r2=42872&view=diff
==============================================================================
--- trunk/gtk/unstable-libyui/ChangeLog (original)
+++ trunk/gtk/unstable-libyui/ChangeLog Sun Dec 9 19:30:10 2007
@@ -1,4 +1,11 @@
-2007-12-07 Ricardo Cruz
+2007-12-09 Ricardo Cruz
+
+ * src/YGUI.h.cc: fixed package selector issue. We weren't implementing
+ UI::RunPkgSelector() (removed it on cleanup...).
+
+ * src/ygtkwizard.c: fix part widgets destroying; possible mem-leak.
+
+2007-12-08 Ricardo Cruz
* src/ygtkcellrenderertextpixbuf.c: fix: honor align for icons too.
Modified: trunk/gtk/unstable-libyui/src/YGUI.cc
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/unstable-libyui/src/YGUI.cc?rev=42872&r1=42871&r2=42872&view=diff
==============================================================================
--- trunk/gtk/unstable-libyui/src/YGUI.cc (original)
+++ trunk/gtk/unstable-libyui/src/YGUI.cc Sun Dec 9 19:30:10 2007
@@ -400,6 +400,25 @@
dialog->normalCursor();
}
+YCPValue YGUI::runPkgSelection (YWidget *packageSelector)
+{
+ y2milestone( "Running package selection..." );
+ YCPValue input = YCPVoid();
+
+ try {
+ input = evaluateUserInput();
+ } catch (const std::exception &e) {
+ y2error ("UI::RunPkgSelection() error: %s", e.what());
+ y2error( "This is a libzypp problem. Do not file a bug against the UI!" );
+ } catch (...) {
+ y2error ("UI::RunPkgSelection() error (unspecified)");
+ y2error( "This is a libzypp problem. Do not file a bug against the UI!" );
+ }
+
+ y2milestone ("Package selection done - returning %s", input->toString().c_str());
+ return input;
+}
+
void YGUI::makeScreenShot (string filename)
{
IMPL
Modified: trunk/gtk/unstable-libyui/src/YGUI.h
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/unstable-libyui/src/YGUI.h?rev=42872&r1=42871&r2=42872&view=diff
==============================================================================
--- trunk/gtk/unstable-libyui/src/YGUI.h (original)
+++ trunk/gtk/unstable-libyui/src/YGUI.h Sun Dec 9 19:30:10 2007
@@ -85,6 +85,7 @@
virtual void makeScreenShot (string filename);
virtual void beep();
+ virtual YCPValue runPkgSelection (YWidget *packageSelector);
virtual YCPValue askForExistingDirectory (const YCPString &startDir,
const YCPString &headline);
Modified: trunk/gtk/unstable-libyui/src/ygtkwizard.c
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/unstable-libyui/src/ygtkwizard.c?rev=42872&r1=42871&r2=42872&view=diff
==============================================================================
--- trunk/gtk/unstable-libyui/src/ygtkwizard.c (original)
+++ trunk/gtk/unstable-libyui/src/ygtkwizard.c Sun Dec 9 19:30:10 2007
@@ -409,11 +409,10 @@
to use gtk_container_remove() on it. We ref them since we still
want to call destroy on them so they children die. */
#define DESTROY_WIDGET(widget) \
- if (widget) { \
- g_object_ref (G_OBJECT (widget)); \
- gtk_widget_unparent (widget); \
- gtk_widget_destroy (widget); \
- widget = NULL; \
+#define DESTROY_WIDGET(widget) \
+ if (widget) { \
+ gtk_widget_unparent (widget); \
+ widget = NULL; \
}
DESTROY_WIDGET (wizard->m_title)
DESTROY_WIDGET (wizard->m_buttons)
--
To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org
For additional commands, e-mail: yast-commit+help@opensuse.org