Haven't quite figured this one out yet, since GTK+ is not familiar
territory for me. However, I found the code snippet that operates the
button: it's the "apply_recursive_clicked" function in nautilus-
properties-window.c. The for loop in lines 4344-4371 may be the trouble
spot, but I'm not sure:
/* Advanced mode and execute checkbox: */
for (l = window->details->permission_buttons; l != NULL; l = l->next) {
button = l->data;
if (gtk_toggle_button_get_inconsistent (GTK_TOGGLE_BUTTON
(button))) {
continue;
}
active = gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON
(button));
p = GPOINTER_TO_INT (g_object_get_data (G_OBJECT (button),
"permission"));
is_folder = GPOINTER_TO_INT (g_object_get_data (G_OBJECT
(button),
"is-folder"));
is_special = GPOINTER_TO_INT (g_object_get_data (G_OBJECT
(button),
"is-special"));
if (is_folder || is_special) {
dir_permission_mask |= p;
if (active) {
dir_permission |= p;
}
}
if (!is_folder || is_special) {
file_permission_mask |= p;
if (active) {
file_permission |= p;
}
}
}
You can see where is_folder and is_special (which are gboolean
variables) are assigned variables, integers are being passed into a
boolean variable. I'm seeing similar lines of code in other parts of
this file, but I'm not sure if this is correct or not.
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/822993
Title:
Applying Permissions to enclosed files in Nautilus' Folder Properties
window doesn't work
To manage notifications about this bug go to:
https://bugs.launchpad.net/nautilus/+bug/822993/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs