diff options
author | Chris Toshok <toshok@ximian.com> | 2004-02-27 00:39:35 +0800 |
---|---|---|
committer | Chris Toshok <toshok@src.gnome.org> | 2004-02-27 00:39:35 +0800 |
commit | 74abd9591145248fb1cf65c7270739e109eefec9 (patch) | |
tree | 9d24c5f2ddaf0fcb4ca947271d96497ffc09faec /addressbook/gui/contact-editor/e-contact-editor-im.c | |
parent | 27e55ce5ec82ce7378759f738621183ac2b7efb0 (diff) | |
download | gsoc2013-evolution-74abd9591145248fb1cf65c7270739e109eefec9.tar gsoc2013-evolution-74abd9591145248fb1cf65c7270739e109eefec9.tar.gz gsoc2013-evolution-74abd9591145248fb1cf65c7270739e109eefec9.tar.bz2 gsoc2013-evolution-74abd9591145248fb1cf65c7270739e109eefec9.tar.lz gsoc2013-evolution-74abd9591145248fb1cf65c7270739e109eefec9.tar.xz gsoc2013-evolution-74abd9591145248fb1cf65c7270739e109eefec9.tar.zst gsoc2013-evolution-74abd9591145248fb1cf65c7270739e109eefec9.zip |
set the location label/option menu to visible.
2004-02-26 Chris Toshok <toshok@ximian.com>
* gui/contact-editor/im.glade: set the location label/option menu
to visible.
* gui/contact-editor/e-contact-editor.c (add_im_clicked): build up
the vcard attributes manually so we can set the TYPE= parameter to
the location the user specifies.
(edit_im_clicked): same. Also, use COLUMN_IM_LOCATION_TYPE, which
is not localized to pass the location to the editor.
(remove_im_clicked): reindent.
(im_treeview_drag_data_get_cb): same.
(im_treeview_drag_data_rcv_cb): same.
(setup_im_treeview): add another column for the (non-localized)
location type, and reindent.
(add_im_field): use the new attribute api for EContact so we can
get the location of each account, and set things appropriately on
the store.
* gui/contact-editor/e-contact-editor-im.c
(e_contact_editor_im_class_init): reindent.
(e_contact_editor_im_new): same.
(fill_in_info): same.
svn path=/trunk/; revision=24886
Diffstat (limited to 'addressbook/gui/contact-editor/e-contact-editor-im.c')
-rw-r--r-- | addressbook/gui/contact-editor/e-contact-editor-im.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/addressbook/gui/contact-editor/e-contact-editor-im.c b/addressbook/gui/contact-editor/e-contact-editor-im.c index a086d959e9..d7e98ce909 100644 --- a/addressbook/gui/contact-editor/e-contact-editor-im.c +++ b/addressbook/gui/contact-editor/e-contact-editor-im.c @@ -124,17 +124,17 @@ e_contact_editor_im_class_init (EContactEditorImClass *klass) g_object_class_install_property (object_class, PROP_LOCATION, g_param_spec_string ("location", - _("Location"), - /*_( */"XXX blurb" /*)*/, - "HOME", - G_PARAM_READWRITE)); + _("Location"), + /*_( */"XXX blurb" /*)*/, + "HOME", + G_PARAM_READWRITE)); g_object_class_install_property (object_class, PROP_USERNAME, g_param_spec_string ("username", - _("Username"), - /*_( */"XXX blurb" /*)*/, - NULL, - G_PARAM_READWRITE)); + _("Username"), + /*_( */"XXX blurb" /*)*/, + NULL, + G_PARAM_READWRITE)); g_object_class_install_property (object_class, PROP_EDITABLE, g_param_spec_boolean ("editable", @@ -327,8 +327,8 @@ e_contact_editor_im_new (EContactField service, const char *location, const char GtkWidget *widget = g_object_new (E_TYPE_CONTACT_EDITOR_IM, NULL); g_object_set (widget, "service", GINT_TO_POINTER(service), - "location", location, - "username", username, + "location", location, + "username", username, NULL); return widget; } @@ -460,8 +460,8 @@ fill_in_info(EContactEditorIm *editor) if (optmenu != NULL) gtk_option_menu_set_history(GTK_OPTION_MENU(optmenu), - (editor->location == NULL ? 2 : - !strcmp(editor->location, "WORK") ? 1 : 0)); + (editor->location == NULL ? 2 : + !strcmp(editor->location, "WORK") ? 1 : 0)); } static char * |