diff options
author | Michael Meeks <michael.meeks@novell.com> | 2010-03-26 18:10:06 +0800 |
---|---|---|
committer | Michael Meeks <michael.meeks@novell.com> | 2010-03-29 16:51:50 +0800 |
commit | 0b61248ed66f1993e22441371930f635d254d14c (patch) | |
tree | 7eb5c5191713e1ad29db99b7e4361bbba3e9e6d2 /addressbook/gui/contact-editor/e-contact-editor.c | |
parent | 8d86849064ac285c93e78b87113b40d3d08420b4 (diff) | |
download | gsoc2013-evolution-0b61248ed66f1993e22441371930f635d254d14c.tar gsoc2013-evolution-0b61248ed66f1993e22441371930f635d254d14c.tar.gz gsoc2013-evolution-0b61248ed66f1993e22441371930f635d254d14c.tar.bz2 gsoc2013-evolution-0b61248ed66f1993e22441371930f635d254d14c.tar.lz gsoc2013-evolution-0b61248ed66f1993e22441371930f635d254d14c.tar.xz gsoc2013-evolution-0b61248ed66f1993e22441371930f635d254d14c.tar.zst gsoc2013-evolution-0b61248ed66f1993e22441371930f635d254d14c.zip |
Add conditionally enabled expanders for 'Other' address and 'Misc'
personal items, to fit on a 600 pixel high screen.
Diffstat (limited to 'addressbook/gui/contact-editor/e-contact-editor.c')
-rw-r--r-- | addressbook/gui/contact-editor/e-contact-editor.c | 25 |
1 files changed, 20 insertions, 5 deletions
diff --git a/addressbook/gui/contact-editor/e-contact-editor.c b/addressbook/gui/contact-editor/e-contact-editor.c index 61302854a8..a1c14c2ab2 100644 --- a/addressbook/gui/contact-editor/e-contact-editor.c +++ b/addressbook/gui/contact-editor/e-contact-editor.c @@ -1794,6 +1794,15 @@ sensitize_im (EContactEditor *editor) } static void +init_personal (EContactEditor *editor) +{ + gtk_expander_set_expanded ( + GTK_EXPANDER (e_builder_get_widget (editor->builder, + "expander-personal-misc")), + !editor->compress_ui); +} + +static void init_address_textview (EContactEditor *editor, gint record) { gchar *textview_name; @@ -1840,6 +1849,11 @@ init_address (EContactEditor *editor) for (i = 0; i < ADDRESS_SLOTS; i++) init_address_record (editor, i); + + gtk_expander_set_expanded ( + GTK_EXPANDER (e_builder_get_widget (editor->builder, + "expander-address-other")), + !editor->compress_ui); } static void @@ -2641,11 +2655,12 @@ sensitize_all (EContactEditor *editor) static void init_all (EContactEditor *editor) { - init_simple (editor); - init_email (editor); - init_phone (editor); - init_im (editor); - init_address (editor); + init_simple (editor); + init_email (editor); + init_phone (editor); + init_im (editor); + init_personal (editor); + init_address (editor); } static void |