2000-07-05 Chris Toshok <toshok@helixcode.com> * gui/component/addressbook.c (new_server_cb): call e_ldap_storage_add_server call. * gui/component/ldap-server-dialog.glade: add name row. * gui/component/e-ldap-server-dialog.h: remove the ELDAPServer type. * gui/component/e-ldap-server-dialog.c (extract_server_info): add support for the name-entry. * gui/component/e-ldap-server-dialog.c (fill_in_server_info): same. * gui/component/e-ldap-storage.h: add ELDAPServer type, and add prototypes for e_ldap_storage_add_server and e_ldap_storage_remove_server. * gui/component/e-ldap-storage.c (e_ldap_storage_add_server): new function, add it to our hash table, add a shell folder, and save out the metadata. (ldap_server_foreach): add the ldap server info under a "contactserver" node. (setup_ldap_storage): create our hashtable. svn path=/trunk/; revision=3895
401 lines
9.5 KiB
XML
401 lines
9.5 KiB
XML
<?xml version="1.0"?>
|
|
<GTK-Interface>
|
|
|
|
<project>
|
|
<name>newserver</name>
|
|
<program_name>newserver</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>
|
|
<output_translatable_strings>True</output_translatable_strings>
|
|
<translatable_strings_file>ldap-server-dialog.glade.h</translatable_strings_file>
|
|
</project>
|
|
|
|
<widget>
|
|
<class>GnomeDialog</class>
|
|
<name>ldap-server-dialog</name>
|
|
<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>button1</name>
|
|
<can_default>True</can_default>
|
|
<can_focus>True</can_focus>
|
|
<stock_button>GNOME_STOCK_BUTTON_OK</stock_button>
|
|
</widget>
|
|
|
|
<widget>
|
|
<class>GtkButton</class>
|
|
<name>button3</name>
|
|
<can_default>True</can_default>
|
|
<can_focus>True</can_focus>
|
|
<stock_button>GNOME_STOCK_BUTTON_CANCEL</stock_button>
|
|
</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>GtkTable</class>
|
|
<name>table2</name>
|
|
<rows>5</rows>
|
|
<columns>2</columns>
|
|
<homogeneous>False</homogeneous>
|
|
<row_spacing>0</row_spacing>
|
|
<column_spacing>0</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>GtkEntry</class>
|
|
<name>server-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>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>GtkEntry</class>
|
|
<name>port-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>3</top_attach>
|
|
<bottom_attach>4</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>GtkEntry</class>
|
|
<name>root-dn-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>4</top_attach>
|
|
<bottom_attach>5</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>GtkAlignment</class>
|
|
<name>alignment1</name>
|
|
<xalign>0.5</xalign>
|
|
<yalign>0.5</yalign>
|
|
<xscale>1</xscale>
|
|
<yscale>1</yscale>
|
|
<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>True</xexpand>
|
|
<yexpand>False</yexpand>
|
|
<xshrink>False</xshrink>
|
|
<yshrink>False</yshrink>
|
|
<xfill>True</xfill>
|
|
<yfill>True</yfill>
|
|
</child>
|
|
|
|
<widget>
|
|
<class>GtkLabel</class>
|
|
<name>label1</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>
|
|
</widget>
|
|
</widget>
|
|
|
|
<widget>
|
|
<class>GtkAlignment</class>
|
|
<name>alignment2</name>
|
|
<xalign>0.5</xalign>
|
|
<yalign>0.5</yalign>
|
|
<xscale>1</xscale>
|
|
<yscale>1</yscale>
|
|
<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>True</yfill>
|
|
</child>
|
|
|
|
<widget>
|
|
<class>GtkLabel</class>
|
|
<name>label2</name>
|
|
<label>LDAP Server:</label>
|
|
<justify>GTK_JUSTIFY_CENTER</justify>
|
|
<wrap>False</wrap>
|
|
<xalign>0</xalign>
|
|
<yalign>0.5</yalign>
|
|
<xpad>0</xpad>
|
|
<ypad>0</ypad>
|
|
</widget>
|
|
</widget>
|
|
|
|
<widget>
|
|
<class>GtkAlignment</class>
|
|
<name>alignment3</name>
|
|
<xalign>0.5</xalign>
|
|
<yalign>0.5</yalign>
|
|
<xscale>1</xscale>
|
|
<yscale>1</yscale>
|
|
<child>
|
|
<left_attach>0</left_attach>
|
|
<right_attach>1</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>True</yfill>
|
|
</child>
|
|
|
|
<widget>
|
|
<class>GtkLabel</class>
|
|
<name>label3</name>
|
|
<label>Port Number:</label>
|
|
<justify>GTK_JUSTIFY_CENTER</justify>
|
|
<wrap>False</wrap>
|
|
<xalign>0</xalign>
|
|
<yalign>0.5</yalign>
|
|
<xpad>0</xpad>
|
|
<ypad>0</ypad>
|
|
</widget>
|
|
</widget>
|
|
|
|
<widget>
|
|
<class>GtkAlignment</class>
|
|
<name>alignment4</name>
|
|
<xalign>0.5</xalign>
|
|
<yalign>0.5</yalign>
|
|
<xscale>1</xscale>
|
|
<yscale>1</yscale>
|
|
<child>
|
|
<left_attach>0</left_attach>
|
|
<right_attach>1</right_attach>
|
|
<top_attach>4</top_attach>
|
|
<bottom_attach>5</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>
|
|
<class>GtkLabel</class>
|
|
<name>label4</name>
|
|
<label>Root DN:</label>
|
|
<justify>GTK_JUSTIFY_CENTER</justify>
|
|
<wrap>False</wrap>
|
|
<xalign>0</xalign>
|
|
<yalign>0.5</yalign>
|
|
<xpad>0</xpad>
|
|
<ypad>0</ypad>
|
|
</widget>
|
|
</widget>
|
|
|
|
<widget>
|
|
<class>GtkEntry</class>
|
|
<name>name-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>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>GtkAlignment</class>
|
|
<name>alignment5</name>
|
|
<xalign>0</xalign>
|
|
<yalign>0.5</yalign>
|
|
<xscale>1</xscale>
|
|
<yscale>1</yscale>
|
|
<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>True</yfill>
|
|
</child>
|
|
|
|
<widget>
|
|
<class>GtkLabel</class>
|
|
<name>label5</name>
|
|
<label>Name:</label>
|
|
<justify>GTK_JUSTIFY_CENTER</justify>
|
|
<wrap>False</wrap>
|
|
<xalign>0</xalign>
|
|
<yalign>0.5</yalign>
|
|
<xpad>0</xpad>
|
|
<ypad>0</ypad>
|
|
</widget>
|
|
</widget>
|
|
</widget>
|
|
</widget>
|
|
</widget>
|
|
</widget>
|
|
|
|
</GTK-Interface>
|