From 5cbb876604b359b367e4bd76ff2bb20eefbca27b Mon Sep 17 00:00:00 2001 From: William Jon McCann Date: Tue, 21 Sep 2004 19:16:22 +0000 Subject: Quiet debug messages. 2004-09-21 William Jon McCann * gui/component/component-factory.c (factory): Quiet debug messages. * gui/widgets/e-addressbook-view.c (eab_view_new): Remove unnecessary label widget placeholder. Make vertical scrollbar policy automatic. Use gtk_paned_add2 instead of gtk_container_add. * gui/component/apps_evolution_addressbook.schemas.in.in: Add missing show_preview schema. Add missing long descriptions. svn path=/trunk/; revision=27325 --- addressbook/ChangeLog | 12 ++++++++++++ .../component/apps_evolution_addressbook.schemas.in.in | 18 +++++++++++++++++- addressbook/gui/component/component-factory.c | 4 +++- addressbook/gui/widgets/e-addressbook-view.c | 8 ++------ 4 files changed, 34 insertions(+), 8 deletions(-) diff --git a/addressbook/ChangeLog b/addressbook/ChangeLog index 0839ed0d34..191c5866f0 100644 --- a/addressbook/ChangeLog +++ b/addressbook/ChangeLog @@ -1,3 +1,15 @@ +2004-09-21 William Jon McCann + + * gui/component/component-factory.c (factory): Quiet debug messages. + + * gui/widgets/e-addressbook-view.c (eab_view_new): Remove + unnecessary label widget placeholder. Make vertical scrollbar + policy automatic. Use gtk_paned_add2 instead of + gtk_container_add. + + * gui/component/apps_evolution_addressbook.schemas.in.in: Add + missing show_preview schema. Add missing long descriptions. + 2004-09-13 Rodney Dawes * gui/contact-editor/e-contact-editor.c (show_help_cb): diff --git a/addressbook/gui/component/apps_evolution_addressbook.schemas.in.in b/addressbook/gui/component/apps_evolution_addressbook.schemas.in.in index d885f545ba..1f835d9414 100644 --- a/addressbook/gui/component/apps_evolution_addressbook.schemas.in.in +++ b/addressbook/gui/component/apps_evolution_addressbook.schemas.in.in @@ -10,7 +10,8 @@ string - EFolderList xml for the list of completion uris + EFolderList XML for the list of completion URIs + EFolderList XML for the list of completion URIs. @@ -22,6 +23,7 @@ 3 The number of characters that must be typed before evolution will attempt to autocomplete + The number of characters that must be typed before evolution will attempt to autocomplete. @@ -35,6 +37,7 @@ URI for the folder last used in the select names dialog + URI for the folder last used in the select names dialog. @@ -47,6 +50,19 @@ int Position of the vertical pane in main view + Position of the vertical pane in main view. + + + + + /schemas/apps/evolution/addressbook/display/show_preview + /apps/evolution/addressbook/display/show_preview + evolution-addressbook + bool + true + + Show the "Preview" pane + Show the "Preview" pane. diff --git a/addressbook/gui/component/component-factory.c b/addressbook/gui/component/component-factory.c index b42322440a..382722785e 100644 --- a/addressbook/gui/component/component-factory.c +++ b/addressbook/gui/component/component-factory.c @@ -46,13 +46,15 @@ #define COMPLETION_CONFIG_CONTROL_ID "OAFIID:GNOME_Evolution_Addressbook_Autocompletion_ConfigControl:" BASE_VERSION #define CERTIFICATE_MANAGER_CONFIG_CONTROL_ID "OAFIID:GNOME_Evolution_SMime_CertificateManager_ConfigControl:" BASE_VERSION +#define d(x) + static BonoboObject * factory (BonoboGenericFactory *factory, const char *component_id, void *closure) { - printf ("asked to activate component_id `%s'\n", component_id); + d(printf ("asked to activate component_id `%s'\n", component_id)); if (strcmp (component_id, VCARD_CONTROL_ID) == 0) return BONOBO_OBJECT (eab_vcard_control_new ()); diff --git a/addressbook/gui/widgets/e-addressbook-view.c b/addressbook/gui/widgets/e-addressbook-view.c index 236b53f16f..518daefd10 100644 --- a/addressbook/gui/widgets/e-addressbook-view.c +++ b/addressbook/gui/widgets/e-addressbook-view.c @@ -480,16 +480,12 @@ eab_view_new (void) g_signal_connect_swapped (eav->paned, "button_release_event", G_CALLBACK (get_paned_position), eav); - eav->widget = gtk_label_new ("empty label here"); - gtk_container_add (GTK_CONTAINER (eav->paned), eav->widget); - gtk_widget_show (eav->widget); - eav->contact_display = eab_contact_display_new (); eav->contact_display_window = gtk_scrolled_window_new (NULL, NULL); - gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (eav->contact_display_window), GTK_POLICY_AUTOMATIC, GTK_POLICY_ALWAYS); + gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (eav->contact_display_window), GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC); gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (eav->contact_display_window), GTK_SHADOW_IN); gtk_container_add (GTK_CONTAINER (eav->contact_display_window), eav->contact_display); - gtk_container_add (GTK_CONTAINER (eav->paned), eav->contact_display_window); + gtk_paned_add2 (GTK_PANED (eav->paned), eav->contact_display_window); gtk_widget_show (eav->contact_display); gtk_widget_show (eav->contact_display_window); gtk_widget_show (eav->paned); -- cgit