From: Friedrich Beckmann Date: Wed, 8 Jul 2020 11:49:42 +0000 (+0200) Subject: gui: cut from editable to clipboard when cell is focused X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=475baffca930c4bdbd9db52139e30eb1c8e8604c;p=pspp gui: cut from editable to clipboard when cell is focused When a cell is focused, then the cut operation must operate on the selection in the cell editable and not on the complete cell, i.e. the store content. --- diff --git a/src/ui/gui/psppire-data-window.c b/src/ui/gui/psppire-data-window.c index 438779675b..5b5343c693 100644 --- a/src/ui/gui/psppire-data-window.c +++ b/src/ui/gui/psppire-data-window.c @@ -1073,6 +1073,11 @@ on_cut (PsppireDataWindow *dw) SswSheet *sheet = SSW_SHEET (dw->data_editor->data_sheet); SswRange sel = *sheet->selection; +#if (SSW_SHEET_API_VERSION >= 1) + if ((ssw_sheet_get_api_version() >= 1) && ssw_sheet_try_cut (sheet)) + return; +#endif + GtkClipboard *clip = gtk_clipboard_get_for_display (gtk_widget_get_display (GTK_WIDGET (dw)), GDK_SELECTION_CLIPBOARD);