Mailinglist Archive: yast-commit (590 mails)

< Previous Next >
[yast-commit] r61655 - in /trunk/gtk: ChangeLog src/pkg/ygtkpkghistorydialog.cc
  • From: rpmcruz@xxxxxxxxxxxxxxxx
  • Date: Sun, 11 Apr 2010 12:52:21 -0000
  • Message-id: <E1O0weD-0007DD-PG@xxxxxxxxxxxxxxxx>
Author: rpmcruz
Date: Sun Apr 11 14:52:21 2010
New Revision: 61655

URL: http://svn.opensuse.org/viewcvs/yast?rev=61655&view=rev
Log:
* src/pkg/ygtkpkghistorydialog.cc: added go-to entry
to context-menu.

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=61655&r1=61654&r2=61655&view=diff
==============================================================================
--- trunk/gtk/ChangeLog (original)
+++ trunk/gtk/ChangeLog Sun Apr 11 14:52:21 2010
@@ -1,5 +1,10 @@
2010-04-11 Ricardo Cruz <rpmcruz@xxxxxxxxxxxxxxxxxxx>

+ * src/pkg/ygtkpkghistorydialog.cc: added go-to entry
+ to context-menu.
+
+2010-04-11 Ricardo Cruz <rpmcruz@xxxxxxxxxxxxxxxxxxx>
+
* src/YGTable.cc: reverted Arabic treatment.

* src/YGTable.cc: fixed crash when right-clicking on

Modified: trunk/gtk/src/pkg/ygtkpkghistorydialog.cc
URL:
http://svn.opensuse.org/viewcvs/yast/trunk/gtk/src/pkg/ygtkpkghistorydialog.cc?rev=61655&r1=61654&r2=61655&view=diff
==============================================================================
--- trunk/gtk/src/pkg/ygtkpkghistorydialog.cc (original)
+++ trunk/gtk/src/pkg/ygtkpkghistorydialog.cc Sun Apr 11 14:52:21 2010
@@ -480,9 +480,19 @@
return FALSE;
}

+static void goto_activate_cb (GtkMenuItem *item, GtkTreeView *view)
+{ goto_clicked (view); }
+
static void right_click_cb (YGtkTreeView *view, gboolean outreach)
{
- GtkWidget *menu = ygtk_tree_view_append_show_columns_item (view, NULL);
+ GtkWidget *menu = gtk_menu_new();
+ if (!outreach) {
+ GtkWidget *item = gtk_image_menu_item_new_from_stock
(GTK_STOCK_JUMP_TO, NULL);
+ gtk_menu_shell_append (GTK_MENU_SHELL (menu), item);
+ g_signal_connect (G_OBJECT (item), "activate", G_CALLBACK
(goto_activate_cb), view);
+ }
+
+ ygtk_tree_view_append_show_columns_item (view, menu);
ygtk_tree_view_popup_menu (view, menu);
}


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

< Previous Next >
This Thread
  • No further messages