windowManager: Cleanup dialog a bit

This doesn't have to be a prompt-dialog, so remove the css class, also
the MessageDialogContent doesn't need the x and y_expand properties, so
remove those, too.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/942
This commit is contained in:
Jonas Dreßler 2019-12-08 13:10:16 +01:00 committed by Florian Müllner
parent ddeb2fa05d
commit 20895c7791

View File

@ -45,7 +45,7 @@ const WINDOW_DIMMER_EFFECT_NAME = "gnome-shell-window-dimmer";
var DisplayChangeDialog = GObject.registerClass( var DisplayChangeDialog = GObject.registerClass(
class DisplayChangeDialog extends ModalDialog.ModalDialog { class DisplayChangeDialog extends ModalDialog.ModalDialog {
_init(wm) { _init(wm) {
super._init({ styleClass: 'prompt-dialog' }); super._init();
this._wm = wm; this._wm = wm;
@ -54,12 +54,7 @@ class DisplayChangeDialog extends ModalDialog.ModalDialog {
let title = _("Do you want to keep these display settings?"); let title = _("Do you want to keep these display settings?");
let description = this._formatCountDown(); let description = this._formatCountDown();
this._content = new Dialog.MessageDialogContent({ this._content = new Dialog.MessageDialogContent({ title, description });
title, description,
x_expand: true,
y_expand: true,
});
this.contentLayout.add_child(this._content); this.contentLayout.add_child(this._content);
/* Translators: this and the following message should be limited in length, /* Translators: this and the following message should be limited in length,