* src/maemo/modest-msg-edit-window.c:
authorJose Dapena Paz <jdapena@igalia.com>
Thu, 31 May 2007 14:51:37 +0000 (14:51 +0000)
committerJose Dapena Paz <jdapena@igalia.com>
Thu, 31 May 2007 14:51:37 +0000 (14:51 +0000)
        * Select font dialog was not destroyed on cancel. This made the app unusable after
          cancelling the dialog. I moved the widget destroy code to make the dialog work
          on Ok and Cancel actions.

pmo-trunk-r2011

src/maemo/modest-msg-edit-window.c

index c5124cb..7088eed 100644 (file)
@@ -2000,12 +2000,11 @@ modest_msg_edit_window_select_font (ModestMsgEditWindow *window)
                                font_size, DEFAULT_FONT_SIZE);
                        fmt.cs.font_size = TRUE;
                }
-               gtk_widget_destroy (dialog);
-       
-               gtk_widget_grab_focus(GTK_WIDGET(priv->msg_body));
                wp_text_buffer_set_format(WP_TEXT_BUFFER(priv->text_buffer), &fmt);
        }
-
+       gtk_widget_destroy (dialog);
+       
+       gtk_widget_grab_focus(GTK_WIDGET(priv->msg_body));
 }
 
 void