[glom] Cut menu: Prevent cutting from non-editable GtkTextViews.
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glom] Cut menu: Prevent cutting from non-editable GtkTextViews.
- Date: Fri, 30 Dec 2011 08:50:41 +0000 (UTC)
commit b9350d3fc779f2a99f61c360f15ef0cca10f894c
Author: Murray Cumming <murrayc murrayc com>
Date: Fri Dec 30 09:50:36 2011 +0100
Cut menu: Prevent cutting from non-editable GtkTextViews.
* glom/bakery/app_withdoc_gtk.cc: on_menu_edit_cut_activate():
Pass the extra parameter to cut_clipboard().
ChangeLog | 7 +++++++
glom/bakery/app_withdoc_gtk.cc | 2 +-
2 files changed, 8 insertions(+), 1 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 2425da5..6eda327 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
2011-12-30 Murray Cumming <murrayc murrayc com>
+ Cut menu: Prevent cutting from non-editable GtkTextViews.
+
+ * glom/bakery/app_withdoc_gtk.cc: on_menu_edit_cut_activate():
+ Pass the extra parameter to cut_clipboard().
+
+2011-12-30 Murray Cumming <murrayc murrayc com>
+
Details: Really make non-editable multiline text fields non-editable.
* glom/mode_data/datawidget/textview.[h|cc]: Override set_read_only(),
diff --git a/glom/bakery/app_withdoc_gtk.cc b/glom/bakery/app_withdoc_gtk.cc
index ccdb85e..741c951 100644
--- a/glom/bakery/app_withdoc_gtk.cc
+++ b/glom/bakery/app_withdoc_gtk.cc
@@ -619,7 +619,7 @@ void App_WithDoc_Gtk::on_menu_edit_cut_activate()
{
Glib::RefPtr<Gtk::Clipboard> clipboard =
Gtk::Clipboard::get_for_display(get_display());
- buffer->cut_clipboard(clipboard);
+ buffer->cut_clipboard(clipboard, textview->get_editable());
}
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]