diff options
author | Chris Toshok <toshok@ximian.com> | 2002-11-27 10:10:21 +0800 |
---|---|---|
committer | Chris Toshok <toshok@src.gnome.org> | 2002-11-27 10:10:21 +0800 |
commit | 83a54e15a95b22f91b5ef68a2687a7af9f9d1b43 (patch) | |
tree | b4eba3bbdfaa138636b8c58514f6b36577eba0ad /addressbook/gui/component/select-names/e-select-names-manager.c | |
parent | 1c0c2cc2f45e462abcaf2fd9dc2e5542c722ea49 (diff) | |
download | gsoc2013-evolution-83a54e15a95b22f91b5ef68a2687a7af9f9d1b43.tar gsoc2013-evolution-83a54e15a95b22f91b5ef68a2687a7af9f9d1b43.tar.gz gsoc2013-evolution-83a54e15a95b22f91b5ef68a2687a7af9f9d1b43.tar.bz2 gsoc2013-evolution-83a54e15a95b22f91b5ef68a2687a7af9f9d1b43.tar.lz gsoc2013-evolution-83a54e15a95b22f91b5ef68a2687a7af9f9d1b43.tar.xz gsoc2013-evolution-83a54e15a95b22f91b5ef68a2687a7af9f9d1b43.tar.zst gsoc2013-evolution-83a54e15a95b22f91b5ef68a2687a7af9f9d1b43.zip |
use new schema for completion/uris. (uris_listener): same.
2002-11-26 Chris Toshok <toshok@ximian.com>
* gui/component/select-names/e-select-names-manager.c
(read_completion_books_from_db): use new schema for
completion/uris.
(uris_listener): same.
* gui/component/select-names/e-select-names.h: Convert to
GtkDialog from GnomeDialog.
* gui/component/select-names/e-select-names.c: Convert to
GtkDialog from GnomeDialog.
(folder_selected): use new schema for last_used_uri.
(e_select_names_init): same.
(e_select_names_set_default): use pango markup to set
bold/not-bold.
(e_select_names_add_section): don't bother creating an EEntry, we
can use pango and a normal label. This also keeps us from
wrapping "contacts ->" at the '-'.
* gui/component/apps_evolution_addressbook.schemas: new file.
* gui/component/Makefile.am: add the schema stuff.
svn path=/trunk/; revision=18939
Diffstat (limited to 'addressbook/gui/component/select-names/e-select-names-manager.c')
-rw-r--r-- | addressbook/gui/component/select-names/e-select-names-manager.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/addressbook/gui/component/select-names/e-select-names-manager.c b/addressbook/gui/component/select-names/e-select-names-manager.c index 80a1cffbda..c994bc1c3c 100644 --- a/addressbook/gui/component/select-names/e-select-names-manager.c +++ b/addressbook/gui/component/select-names/e-select-names-manager.c @@ -411,7 +411,7 @@ read_completion_books_from_db (ESelectNamesManager *manager, EConfigListener *db { char *val; - val = e_config_listener_get_string (db, "/apps/Evolution/Addressbook/Completion/uris"); + val = e_config_listener_get_string (db, "/apps/evolution/addressbook/completion/uris"); if (val) { g_free (manager->cached_folder_list); @@ -428,10 +428,10 @@ uris_listener (EConfigListener *db, const char *key, char *val; /* return if it's not the key we're interested in */ - if (!strcmp (key, "/apps/Evolution/Addressbook/Completion/uris")) + if (!strcmp (key, "/apps/evolution/addressbook/completion/uris")) return; - val = e_config_listener_get_string (db, "/apps/Evolution/Addressbook/Completion/uris"); + val = e_config_listener_get_string (db, "/apps/evolution/addressbook/completion/uris"); if (val) { if (!manager->cached_folder_list || strcmp (val, manager->cached_folder_list)) { @@ -556,17 +556,17 @@ e_select_names_manager_create_entry (ESelectNamesManager *manager, const char *i } static void -e_select_names_clicked(ESelectNames *dialog, gint button, ESelectNamesManager *manager) +e_select_names_response(ESelectNames *dialog, gint response_id, ESelectNamesManager *manager) { - gnome_dialog_close(GNOME_DIALOG(dialog)); + gtk_widget_destroy (GTK_DIALOG (dialog)); - switch(button) { - case 0: + switch(response_id) { + case GTK_RESPONSE_OK: e_select_names_manager_discard_saved_models (manager); g_signal_emit (manager, e_select_names_manager_signals[OK], 0); break; - case 1: + case GTK_RESPONSE_CANCEL: e_select_names_manager_revert_to_saved_models (manager); g_signal_emit (manager, e_select_names_manager_signals[CANCEL], 0); break; @@ -608,9 +608,9 @@ e_select_names_manager_activate_dialog (ESelectNamesManager *manager, e_select_names_set_default (manager->names, id); g_signal_connect(manager->names, - "clicked", - G_CALLBACK(e_select_names_clicked), - manager); + "response", + G_CALLBACK(e_select_names_response), + manager); g_object_weak_ref (G_OBJECT (manager->names), clear_widget, &manager->names); |