[epiphany/downloads] e-d-w: move the Cancel item up
- From: Diego Escalante Urrelo <diegoe src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany/downloads] e-d-w: move the Cancel item up
- Date: Thu, 3 Mar 2011 17:17:55 +0000 (UTC)
commit 4514e1b61ae93690d01de22cd48afcd448d0ec02
Author: Diego Escalante Urrelo <descalante igalia com>
Date: Thu Mar 3 12:17:16 2011 -0500
e-d-w: move the Cancel item up
Put the Cancel item of the download menu somewhere else where it's harder to
hit by mistake.
lib/widgets/ephy-download-widget.c | 15 ++++++---------
1 files changed, 6 insertions(+), 9 deletions(-)
---
diff --git a/lib/widgets/ephy-download-widget.c b/lib/widgets/ephy-download-widget.c
index c0e745b..cf1935b 100644
--- a/lib/widgets/ephy-download-widget.c
+++ b/lib/widgets/ephy-download-widget.c
@@ -395,6 +395,12 @@ download_menu_clicked_cb (GtkWidget *button,
gtk_menu_shell_append (GTK_MENU_SHELL (menu), item);
g_free (basename);
+ item = gtk_menu_item_new_with_label (_("Cancel"));
+ gtk_menu_shell_append (GTK_MENU_SHELL (menu), item);
+ gtk_widget_set_sensitive (item, !finished);
+ g_signal_connect (item, "activate",
+ G_CALLBACK (cancel_activate_cb), widget);
+
item = gtk_separator_menu_item_new ();
gtk_menu_shell_append (GTK_MENU_SHELL (menu), item);
@@ -410,15 +416,6 @@ download_menu_clicked_cb (GtkWidget *button,
g_signal_connect (item, "activate",
G_CALLBACK (folder_activate_cb), widget);
- item = gtk_separator_menu_item_new ();
- gtk_menu_shell_append (GTK_MENU_SHELL (menu), item);
-
- item = gtk_menu_item_new_with_label (_("Cancel"));
- gtk_menu_shell_append (GTK_MENU_SHELL (menu), item);
- gtk_widget_set_sensitive (item, !finished);
- g_signal_connect (item, "activate",
- G_CALLBACK (cancel_activate_cb), widget);
-
gtk_widget_show_all (menu);
gtk_menu_attach_to_widget (GTK_MENU (menu), button, NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]