aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/e-meeting-time-sel.c
diff options
context:
space:
mode:
authorRodrigo Moya <rodrigo@novell.com>2004-09-30 00:45:52 +0800
committerRodrigo Moya <rodrigo@src.gnome.org>2004-09-30 00:45:52 +0800
commit08d34b31d98a06e7ad9571e1f74f0c43a23cee63 (patch)
tree5aab00d4c52f3dd5ab41ee9b9f3fc38d7407f3f2 /calendar/gui/e-meeting-time-sel.c
parent66aabaf55d75deadd0545023752d810873031c2c (diff)
downloadgsoc2013-evolution-08d34b31d98a06e7ad9571e1f74f0c43a23cee63.tar
gsoc2013-evolution-08d34b31d98a06e7ad9571e1f74f0c43a23cee63.tar.gz
gsoc2013-evolution-08d34b31d98a06e7ad9571e1f74f0c43a23cee63.tar.bz2
gsoc2013-evolution-08d34b31d98a06e7ad9571e1f74f0c43a23cee63.tar.lz
gsoc2013-evolution-08d34b31d98a06e7ad9571e1f74f0c43a23cee63.tar.xz
gsoc2013-evolution-08d34b31d98a06e7ad9571e1f74f0c43a23cee63.tar.zst
gsoc2013-evolution-08d34b31d98a06e7ad9571e1f74f0c43a23cee63.zip
Fixes #64683
2004-09-29 Rodrigo Moya <rodrigo@novell.com> Fixes #64683 * gui/e-meeting-time-sel.c (e_meeting_time_selector_construct): create a scrolled window for the attendees list, and synchronize it with the scrolling in the F/B area. svn path=/trunk/; revision=27425
Diffstat (limited to 'calendar/gui/e-meeting-time-sel.c')
-rw-r--r--calendar/gui/e-meeting-time-sel.c16
1 files changed, 13 insertions, 3 deletions
diff --git a/calendar/gui/e-meeting-time-sel.c b/calendar/gui/e-meeting-time-sel.c
index c068890f37..5335fca5d3 100644
--- a/calendar/gui/e-meeting-time-sel.c
+++ b/calendar/gui/e-meeting-time-sel.c
@@ -266,7 +266,7 @@ void
e_meeting_time_selector_construct (EMeetingTimeSelector * mts, EMeetingStore *ems)
{
char *filename;
- GtkWidget *hbox, *vbox, *separator, *label, *table;
+ GtkWidget *hbox, *vbox, *separator, *label, *table, *sw;
GtkWidget *alignment, *child_hbox, *arrow, *menuitem;
GSList *group;
GdkVisual *visual;
@@ -332,12 +332,20 @@ e_meeting_time_selector_construct (EMeetingTimeSelector * mts, EMeetingStore *em
e_meeting_list_view_column_set_visible (mts->list_view, "RSVP", FALSE);
gtk_widget_show (GTK_WIDGET (mts->list_view));
+
+ sw = gtk_scrolled_window_new (NULL, NULL);
+ gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (sw), GTK_POLICY_NEVER, GTK_POLICY_AUTOMATIC);
+ gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (sw), GTK_SHADOW_IN);
+ gtk_widget_set_child_visible (GTK_SCROLLED_WINDOW (sw)->vscrollbar, FALSE);
+ gtk_widget_show (sw);
+ gtk_container_add (GTK_CONTAINER (sw), GTK_WIDGET (mts->list_view));
+
#if 0
/* FIXME: do we need sorting here */
g_signal_connect (real_table->sort_info, "sort_info_changed", G_CALLBACK (sort_info_changed_cb), mts);
#endif
- gtk_box_pack_start (GTK_BOX (mts->attendees_vbox), GTK_WIDGET (mts->list_view), TRUE, TRUE, 6);
+ gtk_box_pack_start (GTK_BOX (mts->attendees_vbox), GTK_WIDGET (sw), TRUE, TRUE, 6);
/* The free/busy information */
mts->display_top = gnome_canvas_new ();
@@ -365,6 +373,8 @@ e_meeting_time_selector_construct (EMeetingTimeSelector * mts, EMeetingStore *em
g_signal_connect (mts->display_main, "size_allocate",
G_CALLBACK (e_meeting_time_selector_on_canvas_size_allocate), mts);
+ gtk_scrolled_window_set_vadjustment (GTK_SCROLLED_WINDOW (sw), GTK_LAYOUT (mts->display_main)->vadjustment);
+
mts->hscrollbar = gtk_hscrollbar_new (GTK_LAYOUT (mts->display_main)->hadjustment);
GTK_LAYOUT (mts->display_main)->hadjustment->step_increment = mts->col_width;
gtk_table_attach (GTK_TABLE (mts), mts->hscrollbar,
@@ -913,7 +923,7 @@ e_meeting_time_selector_style_set (GtkWidget *widget,
*/
- gtk_widget_set_usize (mts->attendees_vbox_spacer, 1, mts->row_height * 2 - 4);
+ gtk_widget_set_usize (mts->attendees_vbox_spacer, 1, mts->row_height * 2 - 6);
GTK_LAYOUT (mts->display_main)->hadjustment->step_increment = mts->col_width;
GTK_LAYOUT (mts->display_main)->vadjustment->step_increment = mts->row_height;