diff options
author | Rodney Dawes <dobey@ximian.com> | 2003-12-18 02:36:03 +0800 |
---|---|---|
committer | Rodney Dawes <dobey@src.gnome.org> | 2003-12-18 02:36:03 +0800 |
commit | e6d897628ea525ad11a4bedcc6fcd9c89ee429ee (patch) | |
tree | 27014cf43ae55aefe822b5bce059595fd1f1187d /addressbook/gui | |
parent | 9a624c83b1ae7055aeafd23607380aa332adfa4a (diff) | |
download | gsoc2013-evolution-e6d897628ea525ad11a4bedcc6fcd9c89ee429ee.tar.gz 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
Diffstat (limited to 'addressbook/gui')
-rw-r--r-- | addressbook/gui/component/autocompletion-config.c | 13 |
1 files changed, 12 insertions, 1 deletions
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); |