Author: rpmcruz
Date: Thu Dec 9 00:25:26 2010
New Revision: 62974
URL: http://svn.opensuse.org/viewcvs/yast?rev=62974&view=rev
Log:
* src/ygtktreeview.c: bug fix: now showing menu
entries when pressing an item. Reported by Atri.
* src/pkg/ygtkpkgfilterview.cc: use same height for
the "All packages" as is used by the categories.
Modified:
trunk/gtk/ChangeLog
trunk/gtk/src/pkg/ygtkpkgfilterview.cc
trunk/gtk/src/pkg/ygtkpkgvestigialdialog.cc
trunk/gtk/src/ygtktreeview.c
Modified: trunk/gtk/ChangeLog
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/ChangeLog?rev=62974&r1=62973&r2=62974&view=diff
==============================================================================
--- trunk/gtk/ChangeLog (original)
+++ trunk/gtk/ChangeLog Thu Dec 9 00:25:26 2010
@@ -1,5 +1,13 @@
2010-12-08 Ricardo Cruz
+ * src/ygtktreeview.c: bug fix: now showing menu
+ entries when pressing an item. Reported by Atri.
+
+ * src/pkg/ygtkpkgfilterview.cc: use same height for
+ the "All packages" as is used by the categories.
+
+2010-12-08 Ricardo Cruz
+
* src/ygtkpkgvestigialdialog.cc: fixed remove-all
button. Fixed progress bar's progress. Refresh more
frequenltly. Smaller progress bar.
Modified: trunk/gtk/src/pkg/ygtkpkgfilterview.cc
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/src/pkg/ygtkpkgfilterview.cc?rev=62974&r1=62973&r2=62974&view=diff
==============================================================================
--- trunk/gtk/src/pkg/ygtkpkgfilterview.cc (original)
+++ trunk/gtk/src/pkg/ygtkpkgfilterview.cc Thu Dec 9 00:25:26 2010
@@ -115,9 +115,15 @@
// we use cell-render-pixbuf's "pixbuf" rather than "icon-name" so we
// can use a fixed size
GdkPixbuf *pixbuf = 0;
- if (icon)
- pixbuf = gtk_icon_theme_load_icon (gtk_icon_theme_get_default(),
- icon, 32, GtkIconLookupFlags (0), NULL);
+ if (icon) {
+ if (!strcmp (icon, "empty")) {
+ pixbuf = gdk_pixbuf_new (GDK_COLORSPACE_RGB, TRUE, 8, 32, 32);
+ gdk_pixbuf_fill (pixbuf, 0xffffff00);
+ }
+ else
+ pixbuf = gtk_icon_theme_load_icon (gtk_icon_theme_get_default(),
+ icon, 32, GtkIconLookupFlags (0), NULL);
+ }
int weight = PANGO_WEIGHT_NORMAL;
if (firstRowIsAll() && gtk_tree_model_iter_n_children (impl->model, NULL) == 0)
@@ -313,7 +319,7 @@
for (int i = 0; i < YPKG_GROUP_UNKNOWN; i++)
groups.insert (PKGroup ((YPkgGroupEnum) i));
- addRow (NULL, _("All packages"), true, 0);
+ addRow ("empty", _("All packages"), true, 0);
for (std::set <PKGroup>::const_iterator it = groups.begin();
it != groups.end(); it++)
addRow (it->icon, it->name, true, GINT_TO_POINTER (((int)it->id)+1));
Modified: trunk/gtk/src/pkg/ygtkpkgvestigialdialog.cc
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/src/pkg/ygtkpkgvestigialdialog.cc?rev=62974&r1=62973&r2=62974&view=diff
==============================================================================
--- trunk/gtk/src/pkg/ygtkpkgvestigialdialog.cc (original)
+++ trunk/gtk/src/pkg/ygtkpkgvestigialdialog.cc Thu Dec 9 00:25:26 2010
@@ -182,6 +182,7 @@
gtk_widget_hide (impl->progressbar);
gdk_window_set_cursor (impl->dialog->window, NULL);
gtk_dialog_set_response_sensitive (GTK_DIALOG (impl->dialog), 2, unneeded.size());
+ gtk_window_present (GTK_WINDOW (impl->dialog));
return FALSE;
}
Modified: trunk/gtk/src/ygtktreeview.c
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/src/ygtktreeview.c?rev=62974&r1=62973&r2=62974&view=diff
==============================================================================
--- trunk/gtk/src/ygtktreeview.c (original)
+++ trunk/gtk/src/ygtktreeview.c Thu Dec 9 00:25:26 2010
@@ -61,8 +61,8 @@
GtkTreeView *view = GTK_TREE_VIEW (widget);
GtkTreePath *path;
gboolean outreach;
- outreach = gtk_tree_view_get_path_at_pos (view, event->x, event->y, &path, NULL, NULL, NULL);
- if (outreach) { // select row if it is not
+ outreach = !gtk_tree_view_get_path_at_pos (view, event->x, event->y, &path, NULL, NULL, NULL);
+ if (!outreach) { // select row if it is not
GtkTreeSelection *selection = gtk_tree_view_get_selection (view);
GtkTreeModel *model = gtk_tree_view_get_model (view);
GtkTreeIter iter;
--
To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org
For additional commands, e-mail: yast-commit+help@opensuse.org