diff options
author | Marco Pesenti Gritti <marco@gnome.org> | 2003-11-04 18:14:31 +0800 |
---|---|---|
committer | Marco Pesenti Gritti <marco@src.gnome.org> | 2003-11-04 18:14:31 +0800 |
commit | ddaaf5bd5e7bf588131be271d2c12a825c6bd833 (patch) | |
tree | 5190be65959bac5bd32f6669e674a22045825659 /src/ephy-window.c | |
parent | 4162e3c933ba20d40da66fae65f7188044d5c867 (diff) | |
download | gsoc2013-epiphany-ddaaf5bd5e7bf588131be271d2c12a825c6bd833.tar gsoc2013-epiphany-ddaaf5bd5e7bf588131be271d2c12a825c6bd833.tar.gz gsoc2013-epiphany-ddaaf5bd5e7bf588131be271d2c12a825c6bd833.tar.bz2 gsoc2013-epiphany-ddaaf5bd5e7bf588131be271d2c12a825c6bd833.tar.lz gsoc2013-epiphany-ddaaf5bd5e7bf588131be271d2c12a825c6bd833.tar.xz 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.
Diffstat (limited to 'src/ephy-window.c')
-rw-r--r-- | src/ephy-window.c | 7 |
1 files changed, 6 insertions, 1 deletions
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"); |