summaryrefslogtreecommitdiff
path: root/libraries/libfm/patches/0016-Fix-file-owner-group-should-be-properly-disabled-in-.patch
diff options
context:
space:
mode:
authorMatteo Bernardini <ponce@slackbuilds.org>2012-12-18 21:08:08 -0500
committerdsomero <xgizzmo@slackbuilds.org>2012-12-23 09:16:47 -0500
commit23b8c687d9c1de82297556d7a82f81555fe9f6a7 (patch)
tree16a44d58b35f7b1c8c2e3116a6bc5db2383b4fb9 /libraries/libfm/patches/0016-Fix-file-owner-group-should-be-properly-disabled-in-.patch
parent4d841526538160b1ee1bc6eea1defecd06184f6a (diff)
downloadslackbuilds-23b8c687d9c1de82297556d7a82f81555fe9f6a7.tar.gz
libraries/libfm: Apply patches from upstream.
Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'libraries/libfm/patches/0016-Fix-file-owner-group-should-be-properly-disabled-in-.patch')
-rw-r--r--libraries/libfm/patches/0016-Fix-file-owner-group-should-be-properly-disabled-in-.patch34
1 files changed, 34 insertions, 0 deletions
diff --git a/libraries/libfm/patches/0016-Fix-file-owner-group-should-be-properly-disabled-in-.patch b/libraries/libfm/patches/0016-Fix-file-owner-group-should-be-properly-disabled-in-.patch
new file mode 100644
index 0000000000..34a1b3041e
--- /dev/null
+++ b/libraries/libfm/patches/0016-Fix-file-owner-group-should-be-properly-disabled-in-.patch
@@ -0,0 +1,34 @@
+From 7b83548b43e2af014873655c850f580b16d24d57 Mon Sep 17 00:00:00 2001
+From: Andriy Grytsenko <andrej@rep.kiev.ua>
+Date: Mon, 19 Nov 2012 23:33:40 +0200
+Subject: [PATCH 16/22] Fix: file owner/group should be properly disabled in
+ dialog.
+
+Currently if owner and group cannot be changed by user those fields
+are enabled for set cursor but content is unchangeable. That may
+be questioned by users and considered as bug, it also visually not
+distinguishable from changeable case.
+The commit properly disables those fields completely so user will
+see it cannot be changed and cannot set keyboard focus there.
+---
+ src/gtk/fm-file-properties.c | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/src/gtk/fm-file-properties.c b/src/gtk/fm-file-properties.c
+index 3d79cdf..a87b546 100644
+--- a/src/gtk/fm-file-properties.c
++++ b/src/gtk/fm-file-properties.c
+@@ -591,8 +591,8 @@ static void update_permissions(FmFilePropData* data)
+ /* on local filesystems, only root can do chown. */
+ if( data->all_native && geteuid() != 0 )
+ {
+- gtk_editable_set_editable(GTK_EDITABLE(data->owner), FALSE);
+- gtk_editable_set_editable(GTK_EDITABLE(data->group), FALSE);
++ gtk_widget_set_sensitive(GTK_WIDGET(data->owner), FALSE);
++ gtk_widget_set_sensitive(GTK_WIDGET(data->group), FALSE);
+ }
+
+ /* read access chooser */
+--
+1.8.0.1
+