GtkDialog *DenyDialog;
gchar *bla;
+ /* FIXME:
+ * all calls to wizard_missing_notification lack the parent window.
+ */
+
switch (cp)
{
- case 0:
- if (strlen(gtk_entry_get_text(GTK_ENTRY(glade_xml_get_widget(glade_xml, "AWMailboxnameEntry"))))==0)
- {
- /* FIXME:
- * all calls to wizard_missing_notification lack the parent window.
- */
- wizard_missing_notification(NULL, "Please enter mailbox name");
- return FALSE;
- }
+ case 0:
+ /* Only needed if the "mailbox name" field is used in the first page of the wizard.
+ *if (strlen(gtk_entry_get_text(GTK_ENTRY(glade_xml_get_widget(glade_xml, "AWMailboxnameEntry"))))==0)
+ *{
+ * wizard_missing_notification(NULL, "Please enter mailbox name");
+ * return FALSE;
+ *}
+ */
bla=gtk_combo_box_get_active_text(GTK_COMBO_BOX(glade_xml_get_widget(glade_xml, "AWMailboxtypeComboBox")));
if (bla==NULL)
{
wizard_missing_notification(NULL, "Please select mailbox type");
return FALSE;
- }
+ }
return TRUE;
- break;
-
+ break;
+ case 1:
+ if (strlen(gtk_entry_get_text(GTK_ENTRY(glade_xml_get_widget(glade_xml, "AWUserNameEntry"))))==0)
+ {
+ wizard_missing_notification(NULL, "Please enter user name");
+ return FALSE;
+ }
+ if (strlen(gtk_entry_get_text(GTK_ENTRY(glade_xml_get_widget(glade_xml, "AWEMailAddressEntry"))))==0)
+ {
+ wizard_missing_notification(NULL, "Please enter the E-Mail address");
+ return FALSE;
+ }
+ return TRUE;
+ break;
}
return FALSE;
<packing>
<property name="left_attach">0</property>
<property name="right_attach">1</property>
- <property name="top_attach">1</property>
- <property name="bottom_attach">2</property>
- <property name="x_options">fill</property>
+ <property name="top_attach">0</property>
+ <property name="bottom_attach">1</property>
</packing>
</child>
<property name="column_spacing">0</property>
<child>
- <widget class="GtkLabel" id="label16">
+ <widget class="GtkLabel" id="AWRealNameLabel">
<property name="visible">True</property>
<property name="label" translatable="yes" context="yes">Name:</property>
<property name="use_underline">False</property>
</child>
<child>
- <widget class="GtkLabel" id="label17">
+ <widget class="GtkLabel" id="AWUserNameLabel">
<property name="visible">True</property>
<property name="label" translatable="yes" context="yes">User name:</property>
<property name="use_underline">False</property>
</child>
<child>
- <widget class="GtkLabel" id="label19">
+ <widget class="GtkLabel" id="AWPasswordLabel">
<property name="visible">True</property>
<property name="label" translatable="yes" context="yes">Password:</property>
<property name="use_underline">False</property>
</child>
<child>
- <widget class="GtkLabel" id="label20">
+ <widget class="GtkLabel" id="AWEMailAddressLabel">
<property name="visible">True</property>
<property name="label" translatable="yes" context="yes">E-mail address:</property>
<property name="use_underline">False</property>
</child>
<child>
- <widget class="GtkEntry" id="entry5">
+ <widget class="GtkEntry" id="AWRealNameEntry">
<property name="visible">True</property>
<property name="editable">True</property>
<property name="visibility">True</property>
</child>
<child>
- <widget class="GtkComboBoxEntry" id="comboboxentry2">
+ <widget class="GtkEntry" id="AWUserNameEntry">
<property name="visible">True</property>
- <property name="add_tearoffs">False</property>
+ <property name="editable">True</property>
+ <property name="visibility">True</property>
+ <property name="max_length">0</property>
+ <property name="text" translatable="yes"></property>
<property name="has_frame">True</property>
- <property name="focus_on_click">True</property>
+ <property name="invisible_char">*</property>
+ <property name="activates_default">False</property>
</widget>
<packing>
<property name="left_attach">1</property>
<property name="right_attach">2</property>
<property name="top_attach">1</property>
<property name="bottom_attach">2</property>
- <property name="x_options">fill</property>
- <property name="y_options">fill</property>
</packing>
</child>
<child>
- <widget class="GtkEntry" id="entry6">
+ <widget class="GtkEntry" id="AWPasswordEntry">
<property name="visible">True</property>
<property name="editable">True</property>
<property name="visibility">False</property>
</child>
<child>
- <widget class="GtkEntry" id="entry7">
+ <widget class="GtkEntry" id="AWEMailAddressEntry">
<property name="visible">True</property>
<property name="editable">True</property>
<property name="visibility">True</property>