2001-10-25 Damon Chaplin <damon@ximian.com> * cal-util/cal-recur.c (cal_obj_bysetpos_filter): subtract 1 from any positive BYSETPOS value, since our array is 0-based. * gui/dialogs/recurrence-page.c (simple_recur_to_comp): (recurrence_page_fill_widgets): Outlook (2000) will not accept monthly recurrences like BYDAY=2TU. Instead it uses BYDAY=TU;BYSETPOS=2. So to be compatable with it we now do the same, although we still accept and convert the old format. * cal-client/cal-client.c (cal_client_get_component_as_string): new function to return a complete VCALENDAR string containing a VEVENT or VTODO with all the VTIMEZONEs it uses. * gui/dialogs/comp-editor.c (save_as_ok): use above function so we save the VTIMEZONE data with the VEVENT/VTODO. Fixes bug #????. Also made sure we output "METHOD:PUBLISH" since Outlook (2000) will not import it otherwise. * gui/dialogs/comp-editor.c (page_mapped_cb): (page_unmapped_cb): install/uninstall the GtkAccelGroup for the page. (comp_editor_append_page): connect to the map/unmap signals to install/uninstall the accelerators. (This is all for bug #11609, though of course it doesn't work too well in GTK+ 1.2 anyway.) * gui/dialogs/task-page.c (get_widgets): * gui/dialogs/task-details-page.c (get_widgets): * gui/dialogs/schedule-page.c (get_widgets): * gui/dialogs/recurrence-page.c (get_widgets): * gui/dialogs/meeting-page.c (get_widgets): * gui/dialogs/event-page.c (get_widgets): * gui/dialogs/alarm-page.c (get_widgets): got the GtkAccelGroup from the original window, ref'ed it and placed it in the CompEditorPage struct. * gui/dialogs/comp-editor-page.c (comp_editor_page_destroy): unref any GtkAccelGroup for the page. * gui/dialogs/task-page.glade: changed '_Confidential' to 'Con_fidential' as it clashed with '_Contacts'. It now matches the event editor as well. * gui/dialogs/event-page.glade: * gui/dialogs/task-page.glade: Set CAN_FOCUS to TRUE for the custom EDateEdit widgets, and set them as the accel targets of the labels. svn path=/trunk/; revision=14108
494 lines
12 KiB
XML
494 lines
12 KiB
XML
<?xml version="1.0"?>
|
|
<GTK-Interface>
|
|
|
|
<project>
|
|
<name>task-page</name>
|
|
<program_name>task-page</program_name>
|
|
<directory></directory>
|
|
<source_directory>src</source_directory>
|
|
<pixmaps_directory>pixmaps</pixmaps_directory>
|
|
<language>C</language>
|
|
<gnome_support>True</gnome_support>
|
|
<gettext_support>True</gettext_support>
|
|
</project>
|
|
|
|
<widget>
|
|
<class>GtkWindow</class>
|
|
<name>task-toplevel</name>
|
|
<visible>False</visible>
|
|
<title>window1</title>
|
|
<type>GTK_WINDOW_TOPLEVEL</type>
|
|
<position>GTK_WIN_POS_NONE</position>
|
|
<modal>False</modal>
|
|
<allow_shrink>False</allow_shrink>
|
|
<allow_grow>True</allow_grow>
|
|
<auto_shrink>False</auto_shrink>
|
|
|
|
<widget>
|
|
<class>GtkVBox</class>
|
|
<name>task-page</name>
|
|
<border_width>4</border_width>
|
|
<homogeneous>False</homogeneous>
|
|
<spacing>4</spacing>
|
|
|
|
<widget>
|
|
<class>GtkTable</class>
|
|
<name>table3</name>
|
|
<rows>1</rows>
|
|
<columns>2</columns>
|
|
<homogeneous>False</homogeneous>
|
|
<row_spacing>4</row_spacing>
|
|
<column_spacing>4</column_spacing>
|
|
<child>
|
|
<padding>0</padding>
|
|
<expand>False</expand>
|
|
<fill>True</fill>
|
|
</child>
|
|
|
|
<widget>
|
|
<class>GtkLabel</class>
|
|
<name>label3</name>
|
|
<label>Su_mmary:</label>
|
|
<justify>GTK_JUSTIFY_CENTER</justify>
|
|
<wrap>False</wrap>
|
|
<xalign>0.5</xalign>
|
|
<yalign>0.5</yalign>
|
|
<xpad>0</xpad>
|
|
<ypad>0</ypad>
|
|
<default_focus_target>summary</default_focus_target>
|
|
<child>
|
|
<left_attach>0</left_attach>
|
|
<right_attach>1</right_attach>
|
|
<top_attach>0</top_attach>
|
|
<bottom_attach>1</bottom_attach>
|
|
<xpad>0</xpad>
|
|
<ypad>0</ypad>
|
|
<xexpand>False</xexpand>
|
|
<yexpand>False</yexpand>
|
|
<xshrink>False</xshrink>
|
|
<yshrink>False</yshrink>
|
|
<xfill>False</xfill>
|
|
<yfill>False</yfill>
|
|
</child>
|
|
</widget>
|
|
|
|
<widget>
|
|
<class>GtkEntry</class>
|
|
<name>summary</name>
|
|
<can_focus>True</can_focus>
|
|
<editable>True</editable>
|
|
<text_visible>True</text_visible>
|
|
<text_max_length>0</text_max_length>
|
|
<text></text>
|
|
<child>
|
|
<left_attach>1</left_attach>
|
|
<right_attach>2</right_attach>
|
|
<top_attach>0</top_attach>
|
|
<bottom_attach>1</bottom_attach>
|
|
<xpad>0</xpad>
|
|
<ypad>0</ypad>
|
|
<xexpand>True</xexpand>
|
|
<yexpand>False</yexpand>
|
|
<xshrink>False</xshrink>
|
|
<yshrink>False</yshrink>
|
|
<xfill>True</xfill>
|
|
<yfill>False</yfill>
|
|
</child>
|
|
</widget>
|
|
</widget>
|
|
|
|
<widget>
|
|
<class>GtkFrame</class>
|
|
<name>frame2</name>
|
|
<label>Date & Time</label>
|
|
<label_xalign>0</label_xalign>
|
|
<shadow_type>GTK_SHADOW_ETCHED_IN</shadow_type>
|
|
<child>
|
|
<padding>0</padding>
|
|
<expand>False</expand>
|
|
<fill>True</fill>
|
|
</child>
|
|
|
|
<widget>
|
|
<class>GtkHBox</class>
|
|
<name>hbox4</name>
|
|
<border_width>4</border_width>
|
|
<homogeneous>False</homogeneous>
|
|
<spacing>0</spacing>
|
|
|
|
<widget>
|
|
<class>GtkTable</class>
|
|
<name>table1</name>
|
|
<rows>2</rows>
|
|
<columns>3</columns>
|
|
<homogeneous>False</homogeneous>
|
|
<row_spacing>2</row_spacing>
|
|
<column_spacing>4</column_spacing>
|
|
<child>
|
|
<padding>0</padding>
|
|
<expand>False</expand>
|
|
<fill>True</fill>
|
|
</child>
|
|
|
|
<widget>
|
|
<class>GtkLabel</class>
|
|
<name>label6</name>
|
|
<label>Sta_rt Date:</label>
|
|
<justify>GTK_JUSTIFY_CENTER</justify>
|
|
<wrap>False</wrap>
|
|
<xalign>0</xalign>
|
|
<yalign>0.5</yalign>
|
|
<xpad>0</xpad>
|
|
<ypad>0</ypad>
|
|
<focus_target>start-date</focus_target>
|
|
<child>
|
|
<left_attach>0</left_attach>
|
|
<right_attach>1</right_attach>
|
|
<top_attach>1</top_attach>
|
|
<bottom_attach>2</bottom_attach>
|
|
<xpad>0</xpad>
|
|
<ypad>0</ypad>
|
|
<xexpand>False</xexpand>
|
|
<yexpand>False</yexpand>
|
|
<xshrink>False</xshrink>
|
|
<yshrink>False</yshrink>
|
|
<xfill>True</xfill>
|
|
<yfill>False</yfill>
|
|
</child>
|
|
</widget>
|
|
|
|
<widget>
|
|
<class>GtkLabel</class>
|
|
<name>label5</name>
|
|
<label>_Due Date:</label>
|
|
<justify>GTK_JUSTIFY_CENTER</justify>
|
|
<wrap>False</wrap>
|
|
<xalign>0</xalign>
|
|
<yalign>0.5</yalign>
|
|
<xpad>0</xpad>
|
|
<ypad>0</ypad>
|
|
<focus_target>due-date</focus_target>
|
|
<child>
|
|
<left_attach>0</left_attach>
|
|
<right_attach>1</right_attach>
|
|
<top_attach>0</top_attach>
|
|
<bottom_attach>1</bottom_attach>
|
|
<xpad>0</xpad>
|
|
<ypad>0</ypad>
|
|
<xexpand>False</xexpand>
|
|
<yexpand>False</yexpand>
|
|
<xshrink>False</xshrink>
|
|
<yshrink>False</yshrink>
|
|
<xfill>True</xfill>
|
|
<yfill>False</yfill>
|
|
</child>
|
|
</widget>
|
|
|
|
<widget>
|
|
<class>Custom</class>
|
|
<name>due-date</name>
|
|
<can_focus>True</can_focus>
|
|
<creation_function>task_page_create_date_edit</creation_function>
|
|
<int1>0</int1>
|
|
<int2>0</int2>
|
|
<last_modification_time>Fri, 01 Jun 2001 18:59:52 GMT</last_modification_time>
|
|
<child>
|
|
<left_attach>1</left_attach>
|
|
<right_attach>2</right_attach>
|
|
<top_attach>0</top_attach>
|
|
<bottom_attach>1</bottom_attach>
|
|
<xpad>0</xpad>
|
|
<ypad>0</ypad>
|
|
<xexpand>True</xexpand>
|
|
<yexpand>False</yexpand>
|
|
<xshrink>False</xshrink>
|
|
<yshrink>False</yshrink>
|
|
<xfill>True</xfill>
|
|
<yfill>False</yfill>
|
|
</child>
|
|
</widget>
|
|
|
|
<widget>
|
|
<class>Custom</class>
|
|
<name>start-date</name>
|
|
<can_focus>True</can_focus>
|
|
<creation_function>task_page_create_date_edit</creation_function>
|
|
<int1>0</int1>
|
|
<int2>0</int2>
|
|
<last_modification_time>Fri, 01 Jun 2001 18:59:57 GMT</last_modification_time>
|
|
<child>
|
|
<left_attach>1</left_attach>
|
|
<right_attach>2</right_attach>
|
|
<top_attach>1</top_attach>
|
|
<bottom_attach>2</bottom_attach>
|
|
<xpad>0</xpad>
|
|
<ypad>0</ypad>
|
|
<xexpand>True</xexpand>
|
|
<yexpand>False</yexpand>
|
|
<xshrink>False</xshrink>
|
|
<yshrink>False</yshrink>
|
|
<xfill>True</xfill>
|
|
<yfill>False</yfill>
|
|
</child>
|
|
</widget>
|
|
|
|
<widget>
|
|
<class>Custom</class>
|
|
<name>due-timezone</name>
|
|
<creation_function>make_timezone_entry</creation_function>
|
|
<int1>0</int1>
|
|
<int2>0</int2>
|
|
<last_modification_time>Tue, 19 Jun 2001 04:43:54 GMT</last_modification_time>
|
|
<child>
|
|
<left_attach>2</left_attach>
|
|
<right_attach>3</right_attach>
|
|
<top_attach>0</top_attach>
|
|
<bottom_attach>1</bottom_attach>
|
|
<xpad>0</xpad>
|
|
<ypad>0</ypad>
|
|
<xexpand>True</xexpand>
|
|
<yexpand>False</yexpand>
|
|
<xshrink>False</xshrink>
|
|
<yshrink>False</yshrink>
|
|
<xfill>True</xfill>
|
|
<yfill>True</yfill>
|
|
</child>
|
|
</widget>
|
|
|
|
<widget>
|
|
<class>Custom</class>
|
|
<name>start-timezone</name>
|
|
<creation_function>make_timezone_entry</creation_function>
|
|
<int1>0</int1>
|
|
<int2>0</int2>
|
|
<last_modification_time>Tue, 19 Jun 2001 04:43:46 GMT</last_modification_time>
|
|
<child>
|
|
<left_attach>2</left_attach>
|
|
<right_attach>3</right_attach>
|
|
<top_attach>1</top_attach>
|
|
<bottom_attach>2</bottom_attach>
|
|
<xpad>0</xpad>
|
|
<ypad>0</ypad>
|
|
<xexpand>False</xexpand>
|
|
<yexpand>False</yexpand>
|
|
<xshrink>False</xshrink>
|
|
<yshrink>False</yshrink>
|
|
<xfill>True</xfill>
|
|
<yfill>True</yfill>
|
|
</child>
|
|
</widget>
|
|
</widget>
|
|
</widget>
|
|
</widget>
|
|
|
|
<widget>
|
|
<class>GtkVBox</class>
|
|
<name>vbox1</name>
|
|
<homogeneous>False</homogeneous>
|
|
<spacing>0</spacing>
|
|
<child>
|
|
<padding>0</padding>
|
|
<expand>True</expand>
|
|
<fill>True</fill>
|
|
</child>
|
|
|
|
<widget>
|
|
<class>GtkLabel</class>
|
|
<name>label18</name>
|
|
<label>Description:</label>
|
|
<justify>GTK_JUSTIFY_CENTER</justify>
|
|
<wrap>False</wrap>
|
|
<xalign>0</xalign>
|
|
<yalign>0.5</yalign>
|
|
<xpad>0</xpad>
|
|
<ypad>0</ypad>
|
|
<child>
|
|
<padding>0</padding>
|
|
<expand>False</expand>
|
|
<fill>False</fill>
|
|
</child>
|
|
</widget>
|
|
|
|
<widget>
|
|
<class>GtkScrolledWindow</class>
|
|
<name>scrolledwindow1</name>
|
|
<hscrollbar_policy>GTK_POLICY_NEVER</hscrollbar_policy>
|
|
<vscrollbar_policy>GTK_POLICY_AUTOMATIC</vscrollbar_policy>
|
|
<hupdate_policy>GTK_UPDATE_CONTINUOUS</hupdate_policy>
|
|
<vupdate_policy>GTK_UPDATE_CONTINUOUS</vupdate_policy>
|
|
<child>
|
|
<padding>0</padding>
|
|
<expand>True</expand>
|
|
<fill>True</fill>
|
|
</child>
|
|
|
|
<widget>
|
|
<class>GtkText</class>
|
|
<name>description</name>
|
|
<height>80</height>
|
|
<can_focus>True</can_focus>
|
|
<editable>True</editable>
|
|
<text></text>
|
|
</widget>
|
|
</widget>
|
|
</widget>
|
|
|
|
<widget>
|
|
<class>GtkFrame</class>
|
|
<name>frame24</name>
|
|
<label>Classification</label>
|
|
<label_xalign>0</label_xalign>
|
|
<shadow_type>GTK_SHADOW_ETCHED_IN</shadow_type>
|
|
<child>
|
|
<padding>0</padding>
|
|
<expand>False</expand>
|
|
<fill>True</fill>
|
|
</child>
|
|
|
|
<widget>
|
|
<class>GtkHBox</class>
|
|
<name>hbox6</name>
|
|
<border_width>2</border_width>
|
|
<homogeneous>False</homogeneous>
|
|
<spacing>4</spacing>
|
|
|
|
<widget>
|
|
<class>GtkRadioButton</class>
|
|
<name>classification-public</name>
|
|
<can_focus>True</can_focus>
|
|
<label>Pu_blic</label>
|
|
<active>True</active>
|
|
<draw_indicator>True</draw_indicator>
|
|
<group>classification_radio_group</group>
|
|
<child>
|
|
<padding>0</padding>
|
|
<expand>False</expand>
|
|
<fill>False</fill>
|
|
</child>
|
|
</widget>
|
|
|
|
<widget>
|
|
<class>GtkRadioButton</class>
|
|
<name>classification-private</name>
|
|
<can_focus>True</can_focus>
|
|
<label>Pri_vate</label>
|
|
<active>False</active>
|
|
<draw_indicator>True</draw_indicator>
|
|
<group>classification_radio_group</group>
|
|
<child>
|
|
<padding>0</padding>
|
|
<expand>False</expand>
|
|
<fill>False</fill>
|
|
</child>
|
|
</widget>
|
|
|
|
<widget>
|
|
<class>GtkRadioButton</class>
|
|
<name>classification-confidential</name>
|
|
<can_focus>True</can_focus>
|
|
<label>Con_fidential</label>
|
|
<active>False</active>
|
|
<draw_indicator>True</draw_indicator>
|
|
<group>classification_radio_group</group>
|
|
<child>
|
|
<padding>0</padding>
|
|
<expand>False</expand>
|
|
<fill>False</fill>
|
|
</child>
|
|
</widget>
|
|
</widget>
|
|
</widget>
|
|
|
|
<widget>
|
|
<class>GtkHBox</class>
|
|
<name>hbox2</name>
|
|
<homogeneous>False</homogeneous>
|
|
<spacing>2</spacing>
|
|
<child>
|
|
<padding>0</padding>
|
|
<expand>False</expand>
|
|
<fill>True</fill>
|
|
</child>
|
|
|
|
<widget>
|
|
<class>GtkButton</class>
|
|
<name>contacts-button</name>
|
|
<can_focus>True</can_focus>
|
|
<relief>GTK_RELIEF_NORMAL</relief>
|
|
<child>
|
|
<padding>0</padding>
|
|
<expand>False</expand>
|
|
<fill>False</fill>
|
|
</child>
|
|
|
|
<widget>
|
|
<class>GtkLabel</class>
|
|
<name>label16</name>
|
|
<label>_Contacts...</label>
|
|
<justify>GTK_JUSTIFY_CENTER</justify>
|
|
<wrap>False</wrap>
|
|
<xalign>0.5</xalign>
|
|
<yalign>0.5</yalign>
|
|
<xpad>4</xpad>
|
|
<ypad>0</ypad>
|
|
</widget>
|
|
</widget>
|
|
|
|
<widget>
|
|
<class>GtkEventBox</class>
|
|
<name>contacts-box</name>
|
|
<child>
|
|
<padding>0</padding>
|
|
<expand>True</expand>
|
|
<fill>True</fill>
|
|
</child>
|
|
|
|
<widget>
|
|
<class>Placeholder</class>
|
|
</widget>
|
|
</widget>
|
|
|
|
<widget>
|
|
<class>GtkButton</class>
|
|
<name>categories-button</name>
|
|
<can_focus>True</can_focus>
|
|
<relief>GTK_RELIEF_NORMAL</relief>
|
|
<child>
|
|
<padding>0</padding>
|
|
<expand>False</expand>
|
|
<fill>False</fill>
|
|
</child>
|
|
|
|
<widget>
|
|
<class>GtkLabel</class>
|
|
<name>label17</name>
|
|
<label>Ca_tegories...</label>
|
|
<justify>GTK_JUSTIFY_CENTER</justify>
|
|
<wrap>False</wrap>
|
|
<xalign>0.5</xalign>
|
|
<yalign>0.5</yalign>
|
|
<xpad>4</xpad>
|
|
<ypad>0</ypad>
|
|
</widget>
|
|
</widget>
|
|
|
|
<widget>
|
|
<class>GtkEntry</class>
|
|
<name>categories</name>
|
|
<can_focus>True</can_focus>
|
|
<editable>True</editable>
|
|
<text_visible>True</text_visible>
|
|
<text_max_length>0</text_max_length>
|
|
<text></text>
|
|
<child>
|
|
<padding>0</padding>
|
|
<expand>True</expand>
|
|
<fill>True</fill>
|
|
</child>
|
|
</widget>
|
|
</widget>
|
|
</widget>
|
|
</widget>
|
|
|
|
</GTK-Interface>
|