Author: rpmcruz
Date: Fri Feb 11 16:04:22 2011
New Revision: 63401
URL: http://svn.opensuse.org/viewcvs/yast?rev=63401&view=rev
Log:
Bug fix 670625 -- webpin freeze
Modified:
trunk/gtk/src/YGTreeView.cc
Modified: trunk/gtk/src/YGTreeView.cc
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/src/YGTreeView.cc?rev=63401&r1=63400&r2=63401&view=diff
==============================================================================
--- trunk/gtk/src/YGTreeView.cc (original)
+++ trunk/gtk/src/YGTreeView.cc Fri Feb 11 16:04:22 2011
@@ -14,7 +14,7 @@
#include "YSelectionWidget.h"
#include "YGSelectionStore.h"
#include "ygtktreeview.h"
-#include
+#include
/* A generic widget for table related widgets. */
@@ -109,14 +109,7 @@
void addCountWidget (YWidget *yparent)
{
- bool mainWidget = true;
- for (; yparent; yparent->parent()) {
- YLayoutBox *box = dynamic_cast (yparent);
- if (box) {
- mainWidget = box->primary() == YD_VERT;
- break;
- }
- }
+ bool mainWidget = !yparent || !strcmp (yparent->widgetClass(), "YVBox") || !strcmp (yparent->widgetClass(), "YReplacePoint");
if (mainWidget) {
m_count = gtk_label_new ("0");
GtkWidget *hbox = gtk_hbox_new (FALSE, 4);
@@ -127,6 +120,7 @@
gtk_box_pack_start (GTK_BOX (YGWidget::getWidget()), hbox, FALSE, TRUE, 0);
gtk_widget_show_all (hbox);
}
+#endif
}
void syncCount()
--
To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org
For additional commands, e-mail: yast-commit+help@opensuse.org