Mailinglist Archive: yast-commit (2114 mails)

< Previous Next >
[yast-commit] r58744 - in /trunk/gtk: ChangeLog src/YGPackageSelector.cc src/ygtknotebook.c src/ygtkzyppview.cc src/ygtkzyppview.h
  • From: rpmcruz@xxxxxxxxxxxxxxxx
  • Date: Thu, 24 Sep 2009 10:33:11 -0000
  • Message-id: <E1MqldP-0006Dr-MR@xxxxxxxxxxxxxxxx>
Author: rpmcruz
Date: Thu Sep 24 12:33:11 2009
New Revision: 58744

URL: http://svn.opensuse.org/viewcvs/yast?rev=58744&view=rev
Log:
* src/ygtkzyppview.cc: bug fix: pass USERNAME for gnomesu
not USER.

* src/YGPackageSelector.cc & src/ygtkzyppview.cc/h: look fix:
reserve empty space for online_update installed tab.

* src/ygtknotebook.c: bug fix: search entry wasn't well aligned
under some settings.

Modified:
trunk/gtk/ChangeLog
trunk/gtk/src/YGPackageSelector.cc
trunk/gtk/src/ygtknotebook.c
trunk/gtk/src/ygtkzyppview.cc
trunk/gtk/src/ygtkzyppview.h

Modified: trunk/gtk/ChangeLog
URL:
http://svn.opensuse.org/viewcvs/yast/trunk/gtk/ChangeLog?rev=58744&r1=58743&r2=58744&view=diff
==============================================================================
--- trunk/gtk/ChangeLog (original)
+++ trunk/gtk/ChangeLog Thu Sep 24 12:33:11 2009
@@ -1,3 +1,14 @@
+2009-09-24 Ricardo Cruz <rpmcruz@xxxxxxxxxxxxxxxxxxx>
+
+ * src/ygtkzyppview.cc: bug fix: pass USERNAME for gnomesu
+ not USER.
+
+ * src/YGPackageSelector.cc & src/ygtkzyppview.cc/h: look fix:
+ reserve empty space for online_update installed tab.
+
+ * src/ygtknotebook.c: bug fix: search entry wasn't well aligned
+ under some settings.
+
2009-09-23 Ricardo Cruz <rpmcruz@xxxxxxxxxxxxxxxxxxx>

* src/ygtkzyppview.cc: bug fix: pkg-selector dir links

Modified: trunk/gtk/src/YGPackageSelector.cc
URL:
http://svn.opensuse.org/viewcvs/yast/trunk/gtk/src/YGPackageSelector.cc?rev=58744&r1=58743&r2=58744&view=diff
==============================================================================
--- trunk/gtk/src/YGPackageSelector.cc (original)
+++ trunk/gtk/src/YGPackageSelector.cc Thu Sep 24 12:33:11 2009
@@ -1381,7 +1381,9 @@
view->setRulesHint (true);
}
else {
- if (!m_onlineUpdate || nb == 0)
+ if (m_onlineUpdate && nb > 0)
+ view->appendEmptyColumn (25);
+ else
view->appendCheckColumn (col);
view->appendTextColumn (_("Name"),
ZyppModel::NAME_COLUMN, 160);
if (col == ZyppModel::TO_UPGRADE_COLUMN) {

Modified: trunk/gtk/src/ygtknotebook.c
URL:
http://svn.opensuse.org/viewcvs/yast/trunk/gtk/src/ygtknotebook.c?rev=58744&r1=58743&r2=58744&view=diff
==============================================================================
--- trunk/gtk/src/ygtknotebook.c (original)
+++ trunk/gtk/src/ygtknotebook.c Thu Sep 24 12:33:11 2009
@@ -64,7 +64,8 @@
child_alloc.x = allocation->x;
else
child_alloc.x = allocation->x + (allocation->width -
child_alloc.width);
- child_alloc.y = allocation->y + 3;
+ child_alloc.y = allocation->y +
+ MAX (0, (last_label->allocation.y-allocation->y) +
last_label->allocation.height + 3 - child_req.height);

gtk_widget_size_allocate (ynotebook->corner_widget,
&child_alloc);
}

Modified: trunk/gtk/src/ygtkzyppview.cc
URL:
http://svn.opensuse.org/viewcvs/yast/trunk/gtk/src/ygtkzyppview.cc?rev=58744&r1=58743&r2=58744&view=diff
==============================================================================
--- trunk/gtk/src/ygtkzyppview.cc (original)
+++ trunk/gtk/src/ygtkzyppview.cc Thu Sep 24 12:33:11 2009
@@ -36,7 +36,7 @@
{
std::string prepend, append;
if (as_user && getuid() == 0) {
- char *username = getenv ("USER");
+ char *username = getenv ("USERNAME");
if (username && *username && strcmp (username, "root") != 0) {
prepend.reserve (64);
prepend = "gnomesu -u ";
@@ -912,6 +912,15 @@
gtk_tree_view_append_column (view, column);
}

+ void appendEmptyColumn (int size)
+ {
+ GtkTreeView *view = GTK_TREE_VIEW (m_view);
+ GtkTreeViewColumn *column = gtk_tree_view_column_new ();
+ gtk_tree_view_column_set_sizing (column,
GTK_TREE_VIEW_COLUMN_FIXED);
+ gtk_tree_view_column_set_fixed_width (column, size);
+ gtk_tree_view_append_column (view, column);
+ }
+
void setRulesHint (bool hint)
{ gtk_tree_view_set_rules_hint (GTK_TREE_VIEW (m_view), TRUE); }

@@ -1226,6 +1235,9 @@
void YGtkPackageView::appendTextColumn (const char *header, int col, int size,
bool identAuto)
{ impl->appendTextColumn (header, col, size, identAuto); }

+void YGtkPackageView::appendEmptyColumn (int size)
+{ impl->appendEmptyColumn (size); }
+
void YGtkPackageView::setRulesHint (bool hint)
{ impl->setRulesHint (hint); }


Modified: trunk/gtk/src/ygtkzyppview.h
URL:
http://svn.opensuse.org/viewcvs/yast/trunk/gtk/src/ygtkzyppview.h?rev=58744&r1=58743&r2=58744&view=diff
==============================================================================
--- trunk/gtk/src/ygtkzyppview.h (original)
+++ trunk/gtk/src/ygtkzyppview.h Thu Sep 24 12:33:11 2009
@@ -61,6 +61,7 @@
void appendButtonColumn (const char *header, int col);
void appendIconColumn (const char *header, int col);
void appendTextColumn (const char *header, int col, int size = -1, bool
identAuto = false);
+ void appendEmptyColumn (int size);
// (set all column headers to NULL in order to hide them.)
void setRulesHint (bool hint);
enum Action { NONE_ACTION, INSTALL_ACTION, REMOVE_ACTION, UNDO_ACTION };

--
To unsubscribe, e-mail: yast-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: yast-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages