Re: [evolution-patches] patch for #64683 (calendar)
- From: JP Rosevear <jpr novell com>
- To: Rodrigo Moya <rodrigo novell com>
- Cc: Evolution Patches <evolution-patches lists ximian com>
- Subject: Re: [evolution-patches] patch for #64683 (calendar)
- Date: Mon, 27 Sep 2004 09:28:38 -0400
After to talking to jrb a bit I have the attached patch which leaves a
bit of an ugly space but removes the two scrollbars. In reality we
should probably just have the free/busy drawn as a custom cell renderer
(I filed a bug for 2.1 on this). jrb had a more complicated way that
might remove the scrollbar but I'm not sure it would work with our
strange canvas/treeview setup.
-JP
--
JP Rosevear <jpr novell com>
Novell, Inc.
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution/calendar/ChangeLog,v
retrieving revision 1.2500.2.14
diff -u -p -r1.2500.2.14 ChangeLog
--- ChangeLog 24 Sep 2004 13:52:41 -0000 1.2500.2.14
+++ ChangeLog 27 Sep 2004 13:24:57 -0000
@@ -1,3 +1,12 @@
+2004-09-27 JP Rosevear <jpr novell com>
+
+ Fixes #64683
+
+ * gui/e-meeting-time-sel.c (e_meeting_time_selector_construct):
+ pack the list view into a scrolled window
+ (e_meeting_time_selector_style_set): account for the shadow size
+ of the list view
+
2004-09-24 JP Rosevear <jpr novell com>
Fixes #66344
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 27 Sep 2004 13:24:57 -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,20 @@ 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_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 ();
@@ -913,7 +921,7 @@ e_meeting_time_selector_style_set (GtkWi
*/
- 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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]