aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook
diff options
context:
space:
mode:
Diffstat (limited to 'addressbook')
-rw-r--r--addressbook/ChangeLog5
-rw-r--r--addressbook/gui/component/autocompletion-config.c13
2 files changed, 17 insertions, 1 deletions
diff --git a/addressbook/ChangeLog b/addressbook/ChangeLog
index eb9596ccdf..76fe653bc8 100644
--- a/addressbook/ChangeLog
+++ b/addressbook/ChangeLog
@@ -1,3 +1,8 @@
+2003-12-17 Rodney Dawes <dobey@ximian.com>
+
+ * gui/component/autocompletion-config.c:
+ (autocompletion_config_control_new): Embed Tree in GtkScrolledWindow
+
2003-12-16 Hans Petter Jansson <hpj@ximian.com>
* gui/contact-editor/e-contact-editor.c (contact_added_cb): Update
diff --git a/addressbook/gui/component/autocompletion-config.c b/addressbook/gui/component/autocompletion-config.c
index 05898f6688..db9904ec7a 100644
--- a/addressbook/gui/component/autocompletion-config.c
+++ b/addressbook/gui/component/autocompletion-config.c
@@ -34,6 +34,7 @@
#include "e-source-selector.h"
#include <libedataserver/e-source-list.h>
#include <libgnome/gnome-i18n.h>
+#include <gtk/gtkscrolledwindow.h>
#include <gtk/gtkwidget.h>
#include <gtk/gtksignal.h>
@@ -118,6 +119,7 @@ autocompletion_config_control_new (void)
{
AutocompletionConfig *ac;
CORBA_Environment ev;
+ GtkWidget *scrolledwin;
ac = g_new0 (AutocompletionConfig, 1);
@@ -128,13 +130,22 @@ autocompletion_config_control_new (void)
update it in the control? what about our local changes? */
/* g_signal_connect (ac->source_list, "changed", G_CALLBACK (source_list_changed), ac); */
+ scrolledwin = gtk_scrolled_window_new (NULL, NULL);
+ gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolledwin),
+ GTK_POLICY_AUTOMATIC,
+ GTK_POLICY_AUTOMATIC);
+ gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (scrolledwin),
+ GTK_SHADOW_IN);
+
ac->control_widget = e_source_selector_new (ac->source_list);
+ gtk_container_add (GTK_CONTAINER (scrolledwin), ac->control_widget);
initialize_selection (ac);
gtk_widget_show (ac->control_widget);
+ gtk_widget_show (scrolledwin);
- ac->config_control = evolution_config_control_new (ac->control_widget);
+ ac->config_control = evolution_config_control_new (scrolledwin);
g_signal_connect (ac->control_widget, "selection_changed",
G_CALLBACK (source_selection_changed), ac);