Mailinglist Archive: yast-commit (129 mails)

< Previous Next >
[yast-commit] r62973 - in /trunk/gtk: ChangeLog src/pkg/ygtkpkglistview.cc src/pkg/ygtkpkglistview.h src/pkg/ygtkpkgvestigialdialog.cc
  • From: rpmcruz@xxxxxxxxxxxxxxxxx
  • Date: Wed, 08 Dec 2010 16:22:34 -0000
  • Message-id: <20101208162234.8BFB9324A0@xxxxxxxxxxxxxxxxx>
Author: rpmcruz
Date: Wed Dec 8 17:22:33 2010
New Revision: 62973

URL: http://svn.opensuse.org/viewcvs/yast?rev=62973&view=rev
Log:
* src/ygtkpkgvestigialdialog.cc: fixed remove-all
button. Fixed progress bar's progress. Refresh more
frequenltly. Smaller progress bar.

* src/ygtkpkglistview.h/cc: new method: getList().

Modified:
trunk/gtk/ChangeLog
trunk/gtk/src/pkg/ygtkpkglistview.cc
trunk/gtk/src/pkg/ygtkpkglistview.h
trunk/gtk/src/pkg/ygtkpkgvestigialdialog.cc

Modified: trunk/gtk/ChangeLog
URL:
http://svn.opensuse.org/viewcvs/yast/trunk/gtk/ChangeLog?rev=62973&r1=62972&r2=62973&view=diff
==============================================================================
--- trunk/gtk/ChangeLog (original)
+++ trunk/gtk/ChangeLog Wed Dec 8 17:22:33 2010
@@ -1,3 +1,11 @@
+2010-12-08 Ricardo Cruz <rpmcruz@xxxxxxxxxxxxxxxxxxx>
+
+ * src/ygtkpkgvestigialdialog.cc: fixed remove-all
+ button. Fixed progress bar's progress. Refresh more
+ frequenltly. Smaller progress bar.
+
+ * src/ygtkpkglistview.h/cc: new method: getList().
+
2010-12-05 Ricardo Cruz <rpmcruz@xxxxxxxxxxxxxxxxxxx>

* src/ygtkpkgvestigialdialog.h/cc: now functional.

Modified: trunk/gtk/src/pkg/ygtkpkglistview.cc
URL:
http://svn.opensuse.org/viewcvs/yast/trunk/gtk/src/pkg/ygtkpkglistview.cc?rev=62973&r1=62972&r2=62973&view=diff
==============================================================================
--- trunk/gtk/src/pkg/ygtkpkglistview.cc (original)
+++ trunk/gtk/src/pkg/ygtkpkglistview.cc Wed Dec 8 17:22:33 2010
@@ -874,6 +874,9 @@
void YGtkPkgListView::setListener (YGtkPkgListView::Listener *listener)
{ impl->listener = listener; }

+Ypp::List YGtkPkgListView::getList()
+{ return impl->list; }
+
Ypp::List YGtkPkgListView::getSelected()
{
GtkTreeModel *model;

Modified: trunk/gtk/src/pkg/ygtkpkglistview.h
URL:
http://svn.opensuse.org/viewcvs/yast/trunk/gtk/src/pkg/ygtkpkglistview.h?rev=62973&r1=62972&r2=62973&view=diff
==============================================================================
--- trunk/gtk/src/pkg/ygtkpkglistview.h (original)
+++ trunk/gtk/src/pkg/ygtkpkglistview.h Wed Dec 8 17:22:33 2010
@@ -35,6 +35,8 @@
void addImageColumn (const char *header, int property, bool
onlyManualModified = false);
void addButtonColumn (const char *header, int property);

+ Ypp::List getList();
+
struct Listener {
virtual void selectionChanged() = 0;
};

Modified: trunk/gtk/src/pkg/ygtkpkgvestigialdialog.cc
URL:
http://svn.opensuse.org/viewcvs/yast/trunk/gtk/src/pkg/ygtkpkgvestigialdialog.cc?rev=62973&r1=62972&r2=62973&view=diff
==============================================================================
--- trunk/gtk/src/pkg/ygtkpkgvestigialdialog.cc (original)
+++ trunk/gtk/src/pkg/ygtkpkgvestigialdialog.cc Wed Dec 8 17:22:33 2010
@@ -84,8 +84,7 @@

void remove_all()
{
- Ypp::List selected (view->getSelected());
- selected.remove();
+ view->getList().remove();
}

static void response_cb (GtkDialog *dialog, gint response, Impl *pThis)
@@ -132,7 +131,7 @@
// 1. get list of packages installed as dependencies
ZyppVestigialParser parser;
const std::set <std::string> &deps = parser.m_dependencies;
- impl->set_progress (.5);
+ impl->set_progress (.1);
// 2. map string names to zypp objects and check whether they are still
necessary
int size = deps.size(), i = 0;
std::list <ZyppSelectable> unneeded;
@@ -150,11 +149,12 @@
unneeded.push_back (zsel);
}

- if ((i % 10) == 0)
- impl->set_progress (.5 + ((i / (gdouble) size) * .85));
+ if ((i % 2) == 0)
+ impl->set_progress (.1 + ((i / (gdouble) size) * .80));
i++;
}
// 3. filter those installed by a container
+ impl->set_progress (.90);
Ypp::LangQuery langQuery;
size = langQuery.guessSize(); i = 0;
while (langQuery.hasNext()) {
@@ -197,7 +197,7 @@
impl = new Impl();
GtkWidget *action_area = gtk_dialog_get_action_area (GTK_DIALOG
(dialog));
impl->progressbar = gtk_progress_bar_new();
- gtk_widget_set_size_request (impl->progressbar, -1, 0);
+ gtk_widget_set_size_request (impl->progressbar, 0, 0);
gtk_container_add (GTK_CONTAINER (action_area), impl->progressbar);

gtk_dialog_add_button (GTK_DIALOG (dialog), GTK_STOCK_JUMP_TO, 1);

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

< Previous Next >
This Thread
  • No further messages