aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRodney Dawes <dobey@ximian.com>2003-12-18 02:36:03 +0800
committerRodney Dawes <dobey@src.gnome.org>2003-12-18 02:36:03 +0800
commite6d897628ea525ad11a4bedcc6fcd9c89ee429ee (patch)
tree27014cf43ae55aefe822b5bce059595fd1f1187d
parent9a624c83b1ae7055aeafd23607380aa332adfa4a (diff)
downloadgsoc2013-evolution-e6d897628ea525ad11a4bedcc6fcd9c89ee429ee.tar
gsoc2013-evolution-e6d897628ea525ad11a4bedcc6fcd9c89ee429ee.tar.gz
gsoc2013-evolution-e6d897628ea525ad11a4bedcc6fcd9c89ee429ee.tar.bz2
gsoc2013-evolution-e6d897628ea525ad11a4bedcc6fcd9c89ee429ee.tar.lz
gsoc2013-evolution-e6d897628ea525ad11a4bedcc6fcd9c89ee429ee.tar.xz
gsoc2013-evolution-e6d897628ea525ad11a4bedcc6fcd9c89ee429ee.tar.zst
gsoc2013-evolution-e6d897628ea525ad11a4bedcc6fcd9c89ee429ee.zip
Embed Tree in GtkScrolledWindow
2003-12-17 Rodney Dawes <dobey@ximian.com> * gui/component/autocompletion-config.c: (autocompletion_config_control_new): Embed Tree in GtkScrolledWindow svn path=/trunk/; revision=23970
-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);