
* e-msg-composer-attachment.glade: Replace the disposition option menu with a checkbox. * e-msg-composer-select-file.c (e_msg_composer_select_file_attachment): New function to select a file to attach. Adds a "suggest inline disposition" checkbox. * e-msg-composer-attachment.c (e_msg_composer_attachment_new): Add a disposition argument rather than always defaulting to "attachment". (struct _DialogData, ok_cb, e_msg_composer_attachment_edit): Update for optionmenu->checkbox change for disposition. * e-msg-composer-attachment-bar.c (add_from_file): Add a disposition argument. (add_from_user): Use e_msg_composer_select_file_attachment, pass chosen disposition to add_from_file. (e_msg_composer_attachment_bar_attach): Pass "attachment" to add_from_file for the disposition. svn path=/trunk/; revision=10200
281 lines
6.6 KiB
XML
281 lines
6.6 KiB
XML
<?xml version="1.0"?>
|
|
<GTK-Interface>
|
|
|
|
<project>
|
|
<name>e-msg-composer-attachment</name>
|
|
<program_name>e-msg-composer-attachment</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>
|
|
<output_main_file>False</output_main_file>
|
|
</project>
|
|
|
|
<widget>
|
|
<class>GnomeDialog</class>
|
|
<name>dialog</name>
|
|
<title>Attachment properties</title>
|
|
<type>GTK_WINDOW_TOPLEVEL</type>
|
|
<position>GTK_WIN_POS_NONE</position>
|
|
<modal>False</modal>
|
|
<allow_shrink>False</allow_shrink>
|
|
<allow_grow>False</allow_grow>
|
|
<auto_shrink>False</auto_shrink>
|
|
<auto_close>False</auto_close>
|
|
<hide_on_close>False</hide_on_close>
|
|
|
|
<widget>
|
|
<class>GtkVBox</class>
|
|
<child_name>GnomeDialog:vbox</child_name>
|
|
<name>dialog-vbox1</name>
|
|
<homogeneous>False</homogeneous>
|
|
<spacing>8</spacing>
|
|
<child>
|
|
<padding>4</padding>
|
|
<expand>True</expand>
|
|
<fill>True</fill>
|
|
</child>
|
|
|
|
<widget>
|
|
<class>GtkHButtonBox</class>
|
|
<child_name>GnomeDialog:action_area</child_name>
|
|
<name>dialog-action_area1</name>
|
|
<layout_style>GTK_BUTTONBOX_END</layout_style>
|
|
<spacing>8</spacing>
|
|
<child_min_width>85</child_min_width>
|
|
<child_min_height>27</child_min_height>
|
|
<child_ipad_x>7</child_ipad_x>
|
|
<child_ipad_y>0</child_ipad_y>
|
|
<child>
|
|
<padding>0</padding>
|
|
<expand>False</expand>
|
|
<fill>True</fill>
|
|
<pack>GTK_PACK_END</pack>
|
|
</child>
|
|
|
|
<widget>
|
|
<class>GtkButton</class>
|
|
<name>ok_button</name>
|
|
<can_default>True</can_default>
|
|
<has_default>True</has_default>
|
|
<can_focus>True</can_focus>
|
|
<stock_button>GNOME_STOCK_BUTTON_OK</stock_button>
|
|
</widget>
|
|
|
|
<widget>
|
|
<class>GtkButton</class>
|
|
<name>close_button</name>
|
|
<can_default>True</can_default>
|
|
<can_focus>True</can_focus>
|
|
<stock_button>GNOME_STOCK_BUTTON_CANCEL</stock_button>
|
|
</widget>
|
|
</widget>
|
|
|
|
<widget>
|
|
<class>GtkTable</class>
|
|
<name>table1</name>
|
|
<rows>4</rows>
|
|
<columns>2</columns>
|
|
<homogeneous>False</homogeneous>
|
|
<row_spacing>10</row_spacing>
|
|
<column_spacing>5</column_spacing>
|
|
<child>
|
|
<padding>0</padding>
|
|
<expand>True</expand>
|
|
<fill>True</fill>
|
|
</child>
|
|
|
|
<widget>
|
|
<class>GtkEntry</class>
|
|
<name>description_entry</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>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>GtkHBox</class>
|
|
<name>hbox3</name>
|
|
<homogeneous>False</homogeneous>
|
|
<spacing>10</spacing>
|
|
<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>True</yexpand>
|
|
<xshrink>True</xshrink>
|
|
<yshrink>True</yshrink>
|
|
<xfill>True</xfill>
|
|
<yfill>True</yfill>
|
|
</child>
|
|
|
|
<widget>
|
|
<class>GtkEntry</class>
|
|
<name>file_name_entry</name>
|
|
<width>290</width>
|
|
<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>
|
|
<class>GtkEntry</class>
|
|
<name>mime_type_entry</name>
|
|
<sensitive>False</sensitive>
|
|
<can_focus>True</can_focus>
|
|
<editable>False</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>2</top_attach>
|
|
<bottom_attach>3</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>GtkLabel</class>
|
|
<name>mime_label</name>
|
|
<label>MIME type:</label>
|
|
<justify>GTK_JUSTIFY_LEFT</justify>
|
|
<wrap>False</wrap>
|
|
<xalign>1</xalign>
|
|
<yalign>0.5</yalign>
|
|
<xpad>0</xpad>
|
|
<ypad>0</ypad>
|
|
<child>
|
|
<left_attach>0</left_attach>
|
|
<right_attach>1</right_attach>
|
|
<top_attach>2</top_attach>
|
|
<bottom_attach>3</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>description_label</name>
|
|
<label>Description:</label>
|
|
<justify>GTK_JUSTIFY_CENTER</justify>
|
|
<wrap>False</wrap>
|
|
<xalign>1</xalign>
|
|
<yalign>0.5</yalign>
|
|
<xpad>0</xpad>
|
|
<ypad>0</ypad>
|
|
<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>filename_label</name>
|
|
<label>File name:</label>
|
|
<justify>GTK_JUSTIFY_CENTER</justify>
|
|
<wrap>False</wrap>
|
|
<xalign>1</xalign>
|
|
<yalign>0.5</yalign>
|
|
<xpad>0</xpad>
|
|
<ypad>0</ypad>
|
|
<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>GtkCheckButton</class>
|
|
<name>disposition_checkbox</name>
|
|
<can_focus>True</can_focus>
|
|
<label>Suggest automatic display of attachment</label>
|
|
<active>False</active>
|
|
<draw_indicator>True</draw_indicator>
|
|
<child>
|
|
<left_attach>0</left_attach>
|
|
<right_attach>2</right_attach>
|
|
<top_attach>3</top_attach>
|
|
<bottom_attach>4</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>
|
|
</widget>
|
|
</widget>
|
|
|
|
</GTK-Interface>
|