kuuko pushed a commit to branch master. http://git.enlightenment.org/misc/polkit-efl.git/commit/?id=a6f4f5d266785cc098af7ef2c46f9e0b334da5ec
commit a6f4f5d266785cc098af7ef2c46f9e0b334da5ec Author: Kai Huuhko <kai.huu...@gmail.com> Date: Wed Jun 4 08:00:29 2014 +0300 Section dialog init with comments --- polkit-efl-authentication-agent-1 | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/polkit-efl-authentication-agent-1 b/polkit-efl-authentication-agent-1 index d542883..6cec634 100755 --- a/polkit-efl-authentication-agent-1 +++ b/polkit-efl-authentication-agent-1 @@ -417,6 +417,7 @@ class AuthenticationDialog(Window): if os.path.exists(td): Theme.default_get().extension_add(td) + # === MAIN LAYOUT === layout = self.layout = Layout( self, size_hint_weight=EXPAND_BOTH, theme=("layout", "polkit-auth", "base") @@ -484,6 +485,7 @@ class AuthenticationDialog(Window): "edje,change,file", "edje", self.resend_signals ) + # === PASSWORD ENTRY === pw_entry = self.pw_entry = PasswordEntry(layout) layout.content_set("polkit.swallow.password", pw_entry) @@ -492,6 +494,7 @@ class AuthenticationDialog(Window): _("Select Authentication ID") ) + # === AUTH ID SELECTOR === name_sel = Hoversel( self, size_hint_align=FILL_HORIZ, text=names[0][0] ) @@ -507,6 +510,7 @@ class AuthenticationDialog(Window): layout.content_set("polkit.swallow.users", name_sel) + # === BUTTON BOX === bt_box = self.bt_box = Box( layout, size_hint_align=FILL_HORIZ, horizontal=True, focus_allow=False @@ -545,6 +549,7 @@ class AuthenticationDialog(Window): layout.content_set("polkit.swallow.buttons", bt_box) + # === KEYBOARD HANDLER === def key_handler(obj, src, ev_type, event, *args, **kwargs): if not ev_type == EVAS_CALLBACK_KEY_UP: return @@ -556,6 +561,7 @@ class AuthenticationDialog(Window): cancel_cb(obj) layout.elm_event_callback_add(key_handler) + # === ICON === app_ic = Icon(layout) if icon_name: --