This is an automated email from the git hooks/post-receive script.
hmmr-guest pushed a commit to branch WIP
in repository aghermann.
commit 3efced94d341d5627e90155cdb274d1c594751dc
Author: Andrei Zavada <hmmr@ra>
Date: Sat Nov 9 00:09:57 2013 +0200
disallow Discard button on system profiles
---
upstream/src/aghermann/ui/dirlevel-storable-adapter.ii | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/upstream/src/aghermann/ui/dirlevel-storable-adapter.ii
b/upstream/src/aghermann/ui/dirlevel-storable-adapter.ii
index 0ad7b71..23df6e8 100644
--- a/upstream/src/aghermann/ui/dirlevel-storable-adapter.ii
+++ b/upstream/src/aghermann/ui/dirlevel-storable-adapter.ii
@@ -142,12 +142,13 @@ set_profile_manage_buttons_visibility()
{
bool have_active = current_profile != profiles.end(),
is_transient = have_active && current_profile->level ==
agh::TExpDirLevel::transient,
- is_modified = have_active && not (*current_profile == Pp2);
+ is_modified = have_active && not (*current_profile == Pp2),
+ is_immutable = have_active && current_profile->level ==
agh::TExpDirLevel::system;
// printf( "active %d %s %d\n", have_active, have_active ?
agh::exp_dir_level_s(current_profile->level) : "-", have_active ? not
(*current_profile == Pp2) : -1);
// printf( "%s\n-vs-\n%s\n", have_active ?
current_profile->serialize().c_str() : "??", Pp2.serialize().c_str());
gtk_widget_set_visible( (GtkWidget*)bXProfileSave, have_active);
gtk_widget_set_visible( (GtkWidget*)bXProfileRevert, have_active and
not is_transient and is_modified);
- gtk_widget_set_visible( (GtkWidget*)bXProfileDiscard, have_active and
not is_transient);
+ gtk_widget_set_visible( (GtkWidget*)bXProfileDiscard, have_active and
not is_transient and not is_immutable);
gtk_widget_set_sensitive( (GtkWidget*)eXProfileList, not is_modified);
}
--
Alioth's /git/debian-med/git-commit-notice on
/srv/git.debian.org/git/debian-med/aghermann.git
_______________________________________________
debian-med-commit mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/debian-med-commit