From: Andrea Zagli Date: Thu, 6 Dec 2012 10:23:25 +0000 (+0100) Subject: Using of images for allow/deny in treeview. X-Git-Tag: v0.0.1~6 X-Git-Url: https://saetta.ns0.it/gitweb?a=commitdiff_plain;h=692a3908fb6ee7e613e37976b13d820378169104;p=zakautho%2Fgui Using of images for allow/deny in treeview. --- diff --git a/data/autoz-gui/gui/autoz-gui.ui b/data/autoz-gui/gui/autoz-gui.ui index 65f3609..6079a98 100644 --- a/data/autoz-gui/gui/autoz-gui.ui +++ b/data/autoz-gui/gui/autoz-gui.ui @@ -48,7 +48,7 @@ - + @@ -436,13 +436,16 @@ + autosize Allow/Deny + True True + 0.5 3 - + - 3 + 3 diff --git a/src/authorizations.c b/src/authorizations.c index 74df47f..aadec65 100644 --- a/src/authorizations.c +++ b/src/authorizations.c @@ -208,7 +208,7 @@ authorizations_load (Authorizations *authorizations) COL_ID, g_value_get_int (gda_data_model_get_value_at (dm, 0, row, NULL)), COL_ROLE, gda_value_stringify (gda_data_model_get_value_at (dm, 1, row, NULL)), COL_RESOURCE, gda_value_stringify (gda_data_model_get_value_at (dm, 2, row, NULL)), - COL_TYPE, gda_value_stringify (gda_data_model_get_value_at (dm, 3, row, NULL)), + COL_TYPE, g_value_get_int (gda_data_model_get_value_at (dm, 3, row, NULL)) == 1 ? "gtk-yes" : "gtk-no", -1); }