Add support for disabling middle click paste

Adds a gtk-enable-primary-paste setting that is backed by
and X setting, and make GtkEntry and GtkTextView respect it.

https://bugzilla.gnome.org/show_bug.cgi?id=665243
This commit is contained in:
Bastien Nocera
2011-11-30 20:46:55 +01:00
committed by Matthias Clasen
parent 88c63903a5
commit c1f01eb929
4 changed files with 55 additions and 6 deletions

View File

@ -81,7 +81,9 @@ static const char gdk_settings_names[] =
"Gtk/AutoMnemonics\0" "gtk-auto-mnemonics\0"
"Gtk/VisibleFocus\0" "gtk-visible-focus\0"
"Gtk/ShellShowsAppMenu\0" "gtk-shell-shows-app-menu\0"
"Gtk/ShellShowsMenubar\0" "gtk-shell-shows-menubar\0";
"Gtk/ShellShowsMenubar\0" "gtk-shell-shows-menubar\0"
"Gtk/EnablePrimaryPaste\0" "gtk-enable-primary-paste\0";
static const struct
@ -137,5 +139,6 @@ static const struct
{ 1730, 1748 },
{ 1767, 1784 },
{ 1802, 1824 },
{ 1849, 1871 }
{ 1849, 1871 },
{ 1895, 1918 }
};