Mailinglist Archive: yast-commit (2114 mails)

< Previous Next >
[yast-commit] r58646 - in /trunk/gtk: ChangeLog src/YGPackageSelector.cc
  • From: rpmcruz@xxxxxxxxxxxxxxxx
  • Date: Mon, 14 Sep 2009 18:12:53 -0000
  • Message-id: <E1MnG2o-0006T3-1w@xxxxxxxxxxxxxxxx>
Author: rpmcruz
Date: Mon Sep 14 20:12:53 2009
New Revision: 58646

URL: http://svn.opensuse.org/viewcvs/yast?rev=58646&view=rev
Log:
* src/YGPackageSelector.cc: disable install tab when
searching for files.

Modified:
trunk/gtk/ChangeLog
trunk/gtk/src/YGPackageSelector.cc

Modified: trunk/gtk/ChangeLog
URL:
http://svn.opensuse.org/viewcvs/yast/trunk/gtk/ChangeLog?rev=58646&r1=58645&r2=58646&view=diff
==============================================================================
--- trunk/gtk/ChangeLog (original)
+++ trunk/gtk/ChangeLog Mon Sep 14 20:12:53 2009
@@ -1,3 +1,8 @@
+2009-09-13 Ricardo Cruz <rpmcruz@xxxxxxxxxxxxxxxxxxx>
+
+ * src/YGPackageSelector.cc: disable install tab when
+ searching for files.
+
2009-09-14 Katarina Machalkova <kmachalkova@xxxxxxx>
* src/YGUI.cc: initialize Gtk stuff in ctor if we're running
without threads. This enables standalone libyui, where

Modified: trunk/gtk/src/YGPackageSelector.cc
URL:
http://svn.opensuse.org/viewcvs/yast/trunk/gtk/src/YGPackageSelector.cc?rev=58646&r1=58645&r2=58646&view=diff
==============================================================================
--- trunk/gtk/src/YGPackageSelector.cc (original)
+++ trunk/gtk/src/YGPackageSelector.cc Mon Sep 14 20:12:53 2009
@@ -1210,13 +1210,11 @@
for (int i = 0; i < 4; i++)
enablePage (i, true);
}
- if (m_combo->availablePackagesOnly()) {
- enablePage (1, false);
- if (!m_onlineUpdate)
- enablePage (2, false, 0);
+ if (availablePackagesOnly()) {
+ enablePage (m_onlineUpdate ? 1 : 2, false, 0);
m_disabledTab = true;
}
- else if (m_combo->installedPackagesOnly()) {
+ else if (installedPackagesOnly()) {
int new_page = m_onlineUpdate ? 1 : 2;
enablePage (0, false, new_page);
m_disabledTab = true;
@@ -1329,6 +1327,16 @@
gtk_widget_show (GTK_WIDGET (m_details));
}

+ inline bool availablePackagesOnly()
+ { return m_combo->availablePackagesOnly(); }
+
+ inline bool installedPackagesOnly()
+ {
+ if (m_find && m_find->installedPackagesOnly())
+ return true;
+ return m_combo->installedPackagesOnly();
+ }
+
// utilities
void appendPage (int nb, const char *text, const char *stock)
{

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

< Previous Next >
This Thread
  • No further messages