diff options
author | Matteo Bernardini <ponce@slackbuilds.org> | 2012-12-18 21:08:08 -0500 |
---|---|---|
committer | dsomero <xgizzmo@slackbuilds.org> | 2012-12-23 09:16:47 -0500 |
commit | 23b8c687d9c1de82297556d7a82f81555fe9f6a7 (patch) | |
tree | 16a44d58b35f7b1c8c2e3116a6bc5db2383b4fb9 /libraries/libfm/patches/0017-Fix-disabled-name-cannot-be-copied-to-clipboard-make.patch | |
parent | 4d841526538160b1ee1bc6eea1defecd06184f6a (diff) | |
download | slackbuilds-23b8c687d9c1de82297556d7a82f81555fe9f6a7.tar.gz |
libraries/libfm: Apply patches from upstream.
Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'libraries/libfm/patches/0017-Fix-disabled-name-cannot-be-copied-to-clipboard-make.patch')
-rw-r--r-- | libraries/libfm/patches/0017-Fix-disabled-name-cannot-be-copied-to-clipboard-make.patch | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/libraries/libfm/patches/0017-Fix-disabled-name-cannot-be-copied-to-clipboard-make.patch b/libraries/libfm/patches/0017-Fix-disabled-name-cannot-be-copied-to-clipboard-make.patch new file mode 100644 index 0000000000..1b63f37e17 --- /dev/null +++ b/libraries/libfm/patches/0017-Fix-disabled-name-cannot-be-copied-to-clipboard-make.patch @@ -0,0 +1,29 @@ +From e1029d5ebf0fb1ea49cd4a26eb6f444f703d6e63 Mon Sep 17 00:00:00 2001 +From: Andriy Grytsenko <andrej@rep.kiev.ua> +Date: Tue, 20 Nov 2012 02:31:18 +0200 +Subject: [PATCH 17/22] Fix: disabled name cannot be copied to clipboard, make + it unfocusable instead. + +Set name insensitive is good in visual but we cannot 'Select All'+'Copy' +on it. Therefore make it unfocusable and ineditable instead. +--- + src/gtk/fm-file-properties.c | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +diff --git a/src/gtk/fm-file-properties.c b/src/gtk/fm-file-properties.c +index a87b546..39b402b 100644 +--- a/src/gtk/fm-file-properties.c ++++ b/src/gtk/fm-file-properties.c +@@ -794,7 +794,8 @@ static void update_ui(FmFilePropData* data) + strftime(buf, sizeof(buf), "%x %R", &tm); + gtk_label_set_text(data->atime, buf); + /* FIXME: changing file name isn't implemented yet, disable entry */ +- gtk_widget_set_sensitive(GTK_WIDGET(data->name), FALSE); ++ gtk_widget_set_can_focus(GTK_WIDGET(data->name), FALSE); ++ gtk_editable_set_editable(GTK_EDITABLE(data->name), FALSE); + } + else + { +-- +1.8.0.1 + |