diff options
author | Chris Toshok <toshok@ximian.com> | 2001-06-09 05:36:58 +0800 |
---|---|---|
committer | Chris Toshok <toshok@src.gnome.org> | 2001-06-09 05:36:58 +0800 |
commit | 01b6f4ee32b0aeb16699af276e47618c1f776378 (patch) | |
tree | f3da0b1a14a5f161349b74a6a5b770a04649c355 /addressbook/contact-editor | |
parent | d09d4962997e9056652815aab81f49311a6a59a8 (diff) | |
download | gsoc2013-evolution-01b6f4ee32b0aeb16699af276e47618c1f776378.tar gsoc2013-evolution-01b6f4ee32b0aeb16699af276e47618c1f776378.tar.gz gsoc2013-evolution-01b6f4ee32b0aeb16699af276e47618c1f776378.tar.bz2 gsoc2013-evolution-01b6f4ee32b0aeb16699af276e47618c1f776378.tar.lz gsoc2013-evolution-01b6f4ee32b0aeb16699af276e47618c1f776378.tar.xz gsoc2013-evolution-01b6f4ee32b0aeb16699af276e47618c1f776378.tar.zst gsoc2013-evolution-01b6f4ee32b0aeb16699af276e47618c1f776378.zip |
remove the gtk_widget_show call... (e_contact_editor_show): and put it
2001-06-08 Chris Toshok <toshok@ximian.com>
* contact-editor/e-contact-editor.c (e_contact_editor_new): remove
the gtk_widget_show call...
(e_contact_editor_show): and put it here.
* contact-editor/e-contact-editor.h: add prototype for
e_contact_editor_show.
* gui/widgets/e-minicard.c (e_minicard_event): call
e_addressbook_show_contact_editor.
(card_modified_cb): call e_addressbook_error_dialog if status !=
SUCCESS.
* gui/widgets/e-minicard-view.c (e_minicard_view_event): call
e_addressbook_show_contact_editor. also, use card_modified_cb as
the commit_card callback.
* gui/widgets/e-addressbook-view.c (table_double_click): clean
this area up alot, call e_addressbook_show_contact_editor.
(card_deleted_cb): call e_addressbook_error_dialog.
* gui/widgets/e-addressbook-table-adapter.c
(card_modified_cb): new function, call e_addressbook_error_dialog
if the status != SUCCESS.
(addressbook_set_value_at): use card_modified_cb as the callback
for e_book_commit_card.
* gui/widgets/Makefile.am (libeminicard_a_SOURCES): add
e-addressbook-util.[ch].
* gui/component/addressbook.c (new_contact_cb): use
e_addressbook_show_contact_editor here.
svn path=/trunk/; revision=10164
Diffstat (limited to 'addressbook/contact-editor')
-rw-r--r-- | addressbook/contact-editor/e-contact-editor.c | 14 | ||||
-rw-r--r-- | addressbook/contact-editor/e-contact-editor.h | 1 |
2 files changed, 14 insertions, 1 deletions
diff --git a/addressbook/contact-editor/e-contact-editor.c b/addressbook/contact-editor/e-contact-editor.c index 7c427ef6c7..664b442303 100644 --- a/addressbook/contact-editor/e-contact-editor.c +++ b/addressbook/contact-editor/e-contact-editor.c @@ -1066,7 +1066,6 @@ e_contact_editor_new (ECard *card, "is_read_only", is_read_only, NULL); - gtk_widget_show (ce->app); return ce; } @@ -2129,6 +2128,19 @@ e_contact_editor_raise (EContactEditor *editor) gdk_window_raise (GTK_WIDGET (editor->app)->window); } +/** + * e_contact_editor_show: + * @ce: The %EContactEditor object. + * + * Shows the dialog associated with this %EContactEditor object. + */ +void +e_contact_editor_show (EContactEditor *ce) +{ + gtk_widget_show (ce->app); +} + + GtkWidget * e_contact_editor_create_date(gchar *name, gchar *string1, gchar *string2, diff --git a/addressbook/contact-editor/e-contact-editor.h b/addressbook/contact-editor/e-contact-editor.h index bc54dd02b0..09de660681 100644 --- a/addressbook/contact-editor/e-contact-editor.h +++ b/addressbook/contact-editor/e-contact-editor.h @@ -111,6 +111,7 @@ EContactEditor *e_contact_editor_new (ECard *card, EList *writable_fields, gboolean is_read_only); GtkType e_contact_editor_get_type (void); +void e_contact_editor_show (EContactEditor *editor); void e_contact_editor_raise (EContactEditor *editor); |