From 61f711d2548931f75eac2dd0e3a1e56d31e39b7e Mon Sep 17 00:00:00 2001 From: Not Zed Date: Mon, 2 Feb 2004 06:28:46 +0000 Subject: god knows what else this'll break. 2004-02-02 Not Zed ** See bug #53559. * em-folder-tree.c (folder_tree_new): set CAN_FOCUS flag on the folder tree content widget. * em-folder-selector.c (em_folder_selector_construct): Don't wrap the folder tree in a scrolled window. Its already in one ????. (em_folder_selector_construct): dont set can_focus on the folder tree. svn path=/trunk/; revision=24563 --- mail/em-folder-selector.c | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) (limited to 'mail/em-folder-selector.c') diff --git a/mail/em-folder-selector.c b/mail/em-folder-selector.c index 843ed018cf..64f0b05da8 100644 --- a/mail/em-folder-selector.c +++ b/mail/em-folder-selector.c @@ -178,7 +178,6 @@ folder_selected_cb (EMFolderTree *emft, const char *path, const char *uri, EMFol void em_folder_selector_construct (EMFolderSelector *emfs, EMFolderTree *emft, guint32 flags, const char *title, const char *text) { - GtkWidget *scrolled_window; GtkWidget *label; gtk_window_set_default_size (GTK_WINDOW (emfs), 350, 300); @@ -205,16 +204,7 @@ em_folder_selector_construct (EMFolderSelector *emfs, EMFolderTree *emft, guint3 gtk_widget_show ((GtkWidget *) emft); g_signal_connect (emfs->emft, "folder-selected", G_CALLBACK (folder_selected_cb), emfs); - - scrolled_window = gtk_scrolled_window_new (NULL, NULL); - gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (scrolled_window), GTK_SHADOW_IN); - gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolled_window), - GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC); - gtk_widget_show (scrolled_window); - - gtk_container_add (GTK_CONTAINER (scrolled_window), (GtkWidget *) emft); - - gtk_box_pack_end (GTK_BOX (GTK_DIALOG (emfs)->vbox), scrolled_window, TRUE, TRUE, 6); + gtk_box_pack_end (GTK_BOX (GTK_DIALOG (emfs)->vbox), (GtkWidget *)emft, TRUE, TRUE, 6); if (text != NULL) { label = gtk_label_new (text); @@ -224,7 +214,6 @@ em_folder_selector_construct (EMFolderSelector *emfs, EMFolderTree *emft, guint3 gtk_box_pack_end (GTK_BOX (GTK_DIALOG (emfs)->vbox), label, FALSE, TRUE, 6); } - GTK_WIDGET_SET_FLAGS ((GtkWidget *) emfs->emft, GTK_CAN_FOCUS); gtk_widget_grab_focus ((GtkWidget *) emfs->emft); } -- cgit