Cleanup set-password dialog
authorLuc Pionchon <luc.pionchon@nokia.com>
Thu, 16 Mar 2006 13:41:59 +0000 (13:41 +0000)
committerLuc Pionchon <luc.pionchon@nokia.com>
Thu, 16 Mar 2006 13:41:59 +0000 (13:41 +0000)
commit3973d1c4912356e5fedfe7be34731bae58162986
tree5b73aaa4ab964b058a2593f982ec0649b0992524
parent38274fdd93212d1313e2345553ed276e9bced73b
Cleanup set-password dialog

* hildon-widgets/hildon-set-password-dialog.[ch]
        (hildon_set_password_dialog_set_domain): gchar * param is const
        (hildon_set_password_dialog_new_with_default): likewise.

        * hildon-widgets/hildon-set-password-dialog.c

        (hildon_set_password_set_property): setting 'modify-protection'
        now creates the UI

        (hildon_set_password_get_property): fixed broken 'domain' (missing
        break statement!) and 'modify-protection' (was a null operation)
        properties; code simplified.

        (hildon_set_password_dialog_constructor),
        (create_contents),
        (hildon_set_password_dialog_class_init),
        (hildon_set_password_dialog_init):
        hildon_set_password_dialog_constructor removed as weird and
        obsolete and replaced with new function create_contents; fixed
        leaking group variable; removed some unused, outdated code that
        was already commented out.

        (hildon_set_password_response_change),
        (hildon_set_password_response_set): GtkWindow *parent arguments
        changed to gpointer unused; cleaned up unnecessary strcmp's

        (hildon_checkbox_toggled): fixed typo in function name (checbox ->
        checkbox). gpointer renamed to be more descriptive; Code simplified

        (hildon_set_password_dialog_get_type): empty function argument
        list replaced with void keyword.

        (hildon_set_password_dialog_new),
        (hildon_set_password_dialow_new_with_default): simplified by
        having the simpler constructor call the more complex one, not vice
        versa; moved callback connects to create_contents since they
        depend on the status of 'modify-protection' property

        (hildon_set_password_dialog_get_password): type check added
        (hildon_set_password_dialog_get_protected): likewise
        (hildon_set_password_dialog_set_domain): likewise
ChangeLog
hildon-widgets/hildon-set-password-dialog.c
hildon-widgets/hildon-set-password-dialog.h