* Fix to the way we add the action buttons of this dialog.
Now they're added directly to the action area button box of
the dialog, so that their position is the expected one
both in diablo and fremantle (NB#85453).
pmo-trunk-r5501
gtk_dialog_response (GTK_DIALOG (self), GTK_RESPONSE_OK);
}
gtk_dialog_response (GTK_DIALOG (self), GTK_RESPONSE_OK);
}
-static GtkWidget*
-button_box_new (ModestAccountViewWindow *self)
+static void
+setup_button_box (ModestAccountViewWindow *self, GtkButtonBox *box)
{
ModestAccountViewWindowPrivate *priv = MODEST_ACCOUNT_VIEW_WINDOW_GET_PRIVATE(self);
{
ModestAccountViewWindowPrivate *priv = MODEST_ACCOUNT_VIEW_WINDOW_GET_PRIVATE(self);
- GtkWidget *button_box = gtk_hbutton_box_new ();
- gtk_button_box_set_spacing (GTK_BUTTON_BOX (button_box), 6);
- gtk_button_box_set_layout (GTK_BUTTON_BOX (button_box),
+ gtk_button_box_set_spacing (GTK_BUTTON_BOX (box), 6);
+ gtk_button_box_set_layout (GTK_BUTTON_BOX (box),
GTK_BUTTONBOX_START);
priv->new_button = gtk_button_new_from_stock(_("mcen_bd_new"));
GTK_BUTTONBOX_START);
priv->new_button = gtk_button_new_from_stock(_("mcen_bd_new"));
G_CALLBACK(on_close_button_clicked),
self);
G_CALLBACK(on_close_button_clicked),
self);
- gtk_box_pack_start (GTK_BOX(button_box), priv->new_button, FALSE, FALSE,2);
- gtk_box_pack_start (GTK_BOX(button_box), priv->edit_button, FALSE, FALSE,2);
- gtk_box_pack_start (GTK_BOX(button_box), priv->delete_button, FALSE, FALSE,2);
- gtk_box_pack_start (GTK_BOX(button_box), priv->close_button, FALSE, FALSE,2);
+ gtk_box_pack_start (GTK_BOX(box), priv->new_button, FALSE, FALSE,2);
+ gtk_box_pack_start (GTK_BOX(box), priv->edit_button, FALSE, FALSE,2);
+ gtk_box_pack_start (GTK_BOX(box), priv->delete_button, FALSE, FALSE,2);
+ gtk_box_pack_start (GTK_BOX(box), priv->close_button, FALSE, FALSE,2);
/* Should has been created by window_vbox_new */
if (priv->account_view) {
/* Should has been created by window_vbox_new */
if (priv->account_view) {
- gtk_widget_show_all (button_box);
- return button_box;
+ gtk_widget_show_all (GTK_WIDGET (box));
window_vbox_new (MODEST_ACCOUNT_VIEW_WINDOW (self)),
TRUE, TRUE, 2);
window_vbox_new (MODEST_ACCOUNT_VIEW_WINDOW (self)),
TRUE, TRUE, 2);
- gtk_box_pack_start (GTK_BOX((GTK_DIALOG (self)->action_area)),
- button_box_new (MODEST_ACCOUNT_VIEW_WINDOW (self)),
- TRUE, TRUE, 2);
+ setup_button_box (MODEST_ACCOUNT_VIEW_WINDOW (self), GTK_BUTTON_BOX (GTK_DIALOG (self)->action_area));
gtk_window_set_title (GTK_WINDOW (self), _("mcen_ti_emailsetup_accounts"));
gtk_window_set_title (GTK_WINDOW (self), _("mcen_ti_emailsetup_accounts"));