Mailinglist Archive: yast-commit (590 mails)

< Previous Next >
[yast-commit] r61660 - in /trunk/gtk: ChangeLog src/pkg/ygtkpkghistorydialog.cc
  • From: rpmcruz@xxxxxxxxxxxxxxxx
  • Date: Sun, 11 Apr 2010 13:27:12 -0000
  • Message-id: <E1O0xBw-0007QF-6D@xxxxxxxxxxxxxxxx>
Author: rpmcruz
Date: Sun Apr 11 15:27:11 2010
New Revision: 61660

URL: http://svn.opensuse.org/viewcvs/yast?rev=61660&view=rev
Log:
* src/pkg/ygtkpkghistorydialog.cc: set go-to entry
insensitive if nothing is selected.

Modified:
trunk/gtk/ChangeLog
trunk/gtk/src/pkg/ygtkpkghistorydialog.cc

Modified: trunk/gtk/ChangeLog
URL:
http://svn.opensuse.org/viewcvs/yast/trunk/gtk/ChangeLog?rev=61660&r1=61659&r2=61660&view=diff
==============================================================================
--- trunk/gtk/ChangeLog (original)
+++ trunk/gtk/ChangeLog Sun Apr 11 15:27:11 2010
@@ -1,5 +1,10 @@
2010-04-11 Ricardo Cruz <rpmcruz@xxxxxxxxxxxxxxxxxxx>

+ * src/pkg/ygtkpkghistorydialog.cc: set go-to entry
+ insensitive if nothing is selected.
+
+2010-04-11 Ricardo Cruz <rpmcruz@xxxxxxxxxxxxxxxxxxx>
+
* src/pkg/ygtkpkghistorydialog.cc: added go-to entry
to context-menu.


Modified: trunk/gtk/src/pkg/ygtkpkghistorydialog.cc
URL:
http://svn.opensuse.org/viewcvs/yast/trunk/gtk/src/pkg/ygtkpkghistorydialog.cc?rev=61660&r1=61659&r2=61660&view=diff
==============================================================================
--- trunk/gtk/src/pkg/ygtkpkghistorydialog.cc (original)
+++ trunk/gtk/src/pkg/ygtkpkghistorydialog.cc Sun Apr 11 15:27:11 2010
@@ -487,7 +487,11 @@
{
GtkWidget *menu = gtk_menu_new();
if (!outreach) {
+ GtkTreeSelection *selection = gtk_tree_view_get_selection
(GTK_TREE_VIEW (view));
+ bool selected = gtk_tree_selection_get_selected (selection,
NULL, NULL);
+
GtkWidget *item = gtk_image_menu_item_new_from_stock
(GTK_STOCK_JUMP_TO, NULL);
+ gtk_widget_set_sensitive (item, selected);
gtk_menu_shell_append (GTK_MENU_SHELL (menu), item);
g_signal_connect (G_OBJECT (item), "activate", G_CALLBACK
(goto_activate_cb), view);
}

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

< Previous Next >
This Thread
  • No further messages