-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MainWindow: Update About dialog to use latest GNOME style
- Loading branch information
1 parent
936bd9d
commit 51647a7
Showing
1 changed file
with
5 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,13 +21,13 @@ public class Plausible.MainWindow : Adw.ApplicationWindow { | |
icon_name: APP_ID, | ||
resizable: true, | ||
title: App.NAME, | ||
width_request: 300 | ||
width_request: 360 | ||
); | ||
add_action_entries (ACTION_ENTRIES, this); | ||
} | ||
|
||
construct { | ||
var sites_button = new Gtk.Button.with_label ("_Sites") { | ||
var sites_button = new Gtk.Button.with_label ("Sites") { | ||
valign = Gtk.Align.CENTER | ||
}; | ||
sites_button.add_css_class ("back-button"); | ||
|
@@ -280,8 +280,8 @@ public class Plausible.MainWindow : Adw.ApplicationWindow { | |
} | ||
|
||
private void on_about_activate () { | ||
var about_window = new Adw.AboutWindow () { | ||
transient_for = this, | ||
var about_window = new Adw.AboutDialog () { | ||
// transient_for = this, | ||
|
||
application_icon = APP_ID, | ||
application_name = _("%s for Plausible").printf (App.NAME), | ||
|
@@ -318,6 +318,6 @@ Email: [email protected] | |
""" | ||
); | ||
|
||
about_window.present (); | ||
about_window.present (this); | ||
} | ||
} |