aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@gnome.org>2003-11-04 18:14:31 +0800
committerMarco Pesenti Gritti <marco@src.gnome.org>2003-11-04 18:14:31 +0800
commitddaaf5bd5e7bf588131be271d2c12a825c6bd833 (patch)
tree5190be65959bac5bd32f6669e674a22045825659
parent4162e3c933ba20d40da66fae65f7188044d5c867 (diff)
downloadgsoc2013-epiphany-ddaaf5bd5e7bf588131be271d2c12a825c6bd833.tar.gz
gsoc2013-epiphany-ddaaf5bd5e7bf588131be271d2c12a825c6bd833.tar.zst
gsoc2013-epiphany-ddaaf5bd5e7bf588131be271d2c12a825c6bd833.zip
Fix sensitivity of Paste. Still not set for native entries, I cant really
2003-11-04 Marco Pesenti Gritti <marco@gnome.org> * src/ephy-window.c: (edit_menu_show_cb): Fix sensitivity of Paste. Still not set for native entries, I cant really see a way to do it without waiting and so making the change visible which sucks.
-rw-r--r--ChangeLog8
-rw-r--r--src/ephy-window.c7
2 files changed, 14 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index a29361050..c6aeeed27 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,13 @@
2003-11-04 Marco Pesenti Gritti <marco@gnome.org>
+ * src/ephy-window.c: (edit_menu_show_cb):
+
+ Fix sensitivity of Paste. Still not set for native
+ entries, I cant really see a way to do it without waiting and so
+ making the change visible which sucks.
+
+2003-11-04 Marco Pesenti Gritti <marco@gnome.org>
+
* src/ephy-window.c: (edit_menu_show_cb), (edit_menu_hide_cb),
(init_menu_updaters), (setup_window):
diff --git a/src/ephy-window.c b/src/ephy-window.c
index 4f3dfbeda..793495f49 100644
--- a/src/ephy-window.c
+++ b/src/ephy-window.c
@@ -581,7 +581,7 @@ edit_menu_show_cb (GtkWidget *menu,
GtkWidget *widget = gtk_window_get_focus (GTK_WINDOW (window));
GtkActionGroup *action_group;
GtkAction *action;
- gboolean can_copy, can_cut, can_undo, can_redo;
+ gboolean can_copy, can_cut, can_undo, can_redo, can_paste;
if (GTK_IS_EDITABLE (widget))
{
@@ -592,6 +592,7 @@ edit_menu_show_cb (GtkWidget *menu,
can_copy = has_selection;
can_cut = has_selection;
+ can_paste = TRUE;
can_undo = FALSE;
can_redo = FALSE;
}
@@ -607,6 +608,8 @@ edit_menu_show_cb (GtkWidget *menu,
ephy_command_manager_get_command_state
(EPHY_COMMAND_MANAGER (embed), "cmd_cut", &can_cut);
ephy_command_manager_get_command_state
+ (EPHY_COMMAND_MANAGER (embed), "cmd_paste", &can_paste);
+ ephy_command_manager_get_command_state
(EPHY_COMMAND_MANAGER (embed), "cmd_undo", &can_undo);
ephy_command_manager_get_command_state
(EPHY_COMMAND_MANAGER (embed), "cmd_redo", &can_redo);
@@ -618,6 +621,8 @@ edit_menu_show_cb (GtkWidget *menu,
g_object_set (action, "sensitive", can_copy, NULL);
action = gtk_action_group_get_action (action_group, "EditCut");
g_object_set (action, "sensitive", can_cut, NULL);
+ action = gtk_action_group_get_action (action_group, "EditPaste");
+ g_object_set (action, "sensitive", can_paste, NULL);
action = gtk_action_group_get_action (action_group, "EditUndo");
g_object_set (action, "sensitive", can_undo, NULL);
action = gtk_action_group_get_action (action_group, "EditRedo");