aboutsummaryrefslogtreecommitdiff
path: root/src/stardict-view.c
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2022-09-03 17:19:12 +0200
committerPřemysl Eric Janouch <p@janouch.name>2022-09-03 17:19:12 +0200
commit49072f9d01504dcd1670811b80d6b11bb8c6e1a9 (patch)
tree754c89ffb51553e4e6620776e129e927cbc17bc1 /src/stardict-view.c
parentb0f1d3d6ea1b380e628958bd1b17ccb2c789ec2d (diff)
downloadtdv-49072f9d01504dcd1670811b80d6b11bb8c6e1a9.tar.gz
tdv-49072f9d01504dcd1670811b80d6b11bb8c6e1a9.tar.xz
tdv-49072f9d01504dcd1670811b80d6b11bb8c6e1a9.zip
sdgui: fix context menu item sensitivity
Diffstat (limited to 'src/stardict-view.c')
-rw-r--r--src/stardict-view.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/stardict-view.c b/src/stardict-view.c
index 32d7259..cc7935b 100644
--- a/src/stardict-view.c
+++ b/src/stardict-view.c
@@ -729,7 +729,7 @@ make_context_menu (StardictView *self)
{
GtkWidget *copy = gtk_menu_item_new_with_mnemonic ("_Copy");
gtk_widget_set_sensitive (copy,
- self->selection_begin < self->selection_end);
+ self->selection_begin != self->selection_end);
g_signal_connect_data (copy, "activate",
G_CALLBACK (on_copy_activate), g_object_ref (self),
(GClosureNotify) g_object_unref, 0);