source-dialog: resize dialog according to the mode
This commit is contained in:
committed by
Erick Pérez Castellanos
parent
07ac22de47
commit
8e025c5f20
@@ -225,9 +225,14 @@ gcal_source_dialog_set_mode (GcalSourceDialog *dialog,
|
|||||||
|
|
||||||
if (!edit_mode)
|
if (!edit_mode)
|
||||||
{
|
{
|
||||||
|
gtk_window_resize (GTK_WINDOW (dialog), 550, 500);
|
||||||
gtk_header_bar_set_title (GTK_HEADER_BAR (priv->headerbar), _("Add Calendar"));
|
gtk_header_bar_set_title (GTK_HEADER_BAR (priv->headerbar), _("Add Calendar"));
|
||||||
gtk_header_bar_set_subtitle (GTK_HEADER_BAR (priv->headerbar), "");
|
gtk_header_bar_set_subtitle (GTK_HEADER_BAR (priv->headerbar), "");
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
gtk_window_resize (GTK_WINDOW (dialog), 550, 250);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user