[evolution-patches] patch for #64683 (calendar)
- From: Rodrigo Moya <rodrigo novell com>
- To: Evolution Patches <evolution-patches lists ximian com>
- Cc: JP Rosevear <jpr novell com>
- Subject: [evolution-patches] patch for #64683 (calendar)
- Date: Fri, 24 Sep 2004 02:18:05 +0200
--
Rodrigo Moya <rodrigo novell com>
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution/calendar/ChangeLog,v
retrieving revision 1.2500.2.6
diff -u -p -r1.2500.2.6 ChangeLog
--- ChangeLog 20 Sep 2004 07:58:39 -0000 1.2500.2.6
+++ ChangeLog 24 Sep 2004 00:17:01 -0000
@@ -1,3 +1,11 @@
+2004-09-23 Rodrigo Moya <rodrigo novell com>
+
+ Fixes #64683
+
+ * gui/e-meeting-time-sel.c (e_meeting_time_selector_construct): create
+ a scrolled window and put the attendee list on it. Then use the canvas'
+ vertical adjustment to synchronize it with the F/B area scrolling.
+
2004-09-20 Tony Tsui <ttsui9 gmail com>
Fixes #66174
Index: gui/e-meeting-time-sel.c
===================================================================
RCS file: /cvs/gnome/evolution/calendar/gui/e-meeting-time-sel.c,v
retrieving revision 1.62
diff -u -p -r1.62 e-meeting-time-sel.c
--- gui/e-meeting-time-sel.c 22 Jul 2004 18:11:24 -0000 1.62
+++ gui/e-meeting-time-sel.c 24 Sep 2004 00:17:02 -0000
@@ -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,18 @@ e_meeting_time_selector_construct (EMeet
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_AUTOMATIC, GTK_POLICY_AUTOMATIC);
+ gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (sw), GTK_SHADOW_IN);
+ 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 ();
@@ -364,6 +370,8 @@ e_meeting_time_selector_construct (EMeet
G_CALLBACK (e_meeting_time_selector_on_canvas_realized), mts);
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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]