2007-06-02 Armin Burgmeier <armin@openismus.com>
authorArmin Burgmeier <armin@openismus.com>
Sat, 2 Jun 2007 14:16:54 +0000 (14:16 +0000)
committerArmin Burgmeier <armin@openismus.com>
Sat, 2 Jun 2007 14:16:54 +0000 (14:16 +0000)
* src/maemo/modest-connection-specific-smtp-window.c: Add an
introductory note to the connection specific smtp servers dialog, as
section 8.12 of the email UI specification requires. This fixes
projects.maemo.org bug NB#59212.

pmo-trunk-r2044

ChangeLog2
src/maemo/modest-connection-specific-smtp-window.c

index f16dd22..368d07e 100644 (file)
@@ -1,3 +1,10 @@
+2007-06-02  Armin Burgmeier  <armin@openismus.com>
+
+       * src/maemo/modest-connection-specific-smtp-window.c: Add an
+       introductory note to the connection specific smtp servers dialog, as
+       section 8.12 of the email UI specification requires. This fixes
+       projects.maemo.org bug NB#59212.
+
 2007-06-01  Murray Cumming  <murrayc@murrayc.com>
 
        * src/maemo/modest-account-view-window.c: (on_edit_button_clicked):
index bb6cf9b..c64490c 100644 (file)
@@ -295,7 +295,7 @@ modest_connection_specific_smtp_window_init (ModestConnectionSpecificSmtpWindow
 
        /* Specify a default size, because the GtkTreeView's default requested size  
         * is not big enough: */
-       gtk_window_set_default_size (GTK_WINDOW (self), 500, 200);
+       gtk_window_set_default_size (GTK_WINDOW (self), 500, 300);
        
        /* This seems to be necessary to make the window show at the front with decoration.
         * If we use property type=GTK_WINDOW_TOPLEVEL instead of the default GTK_WINDOW_POPUP+decoration, 
@@ -344,6 +344,14 @@ modest_connection_specific_smtp_window_init (ModestConnectionSpecificSmtpWindow
        /* The application must call modest_connection_specific_smtp_window_fill_with_connections(). */
        
        GtkWidget *vbox = gtk_vbox_new (FALSE, MODEST_MARGIN_DEFAULT);
+
+  /* Introductory note: */
+  GtkWidget *label = gtk_label_new(_("mcen_ia_optionalsmtp_note"));
+  gtk_label_set_line_wrap (GTK_LABEL (label), TRUE);
+  /* So that it is shown without being truncated: */
+  gtk_label_set_max_width_chars (GTK_LABEL (label), 40);
+  gtk_widget_show (label);
+  gtk_box_pack_start (GTK_BOX (vbox), label, FALSE, FALSE, MODEST_MARGIN_HALF);
        
        /* Put the treeview in a scrolled window and add it to the box: */
        GtkWidget *scrolled_window = gtk_scrolled_window_new (NULL, NULL);