From 15d0a45627b0a11e785da5712a803a45fa8ed50e Mon Sep 17 00:00:00 2001 From: ouwou <26526779+ouwou@users.noreply.github.com> Date: Mon, 12 Apr 2021 03:00:31 -0400 Subject: center dialogs and fix warning --- windows/guildsettings/emojispane.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'windows/guildsettings/emojispane.cpp') diff --git a/windows/guildsettings/emojispane.cpp b/windows/guildsettings/emojispane.cpp index 178b533..ff1d27f 100644 --- a/windows/guildsettings/emojispane.cpp +++ b/windows/guildsettings/emojispane.cpp @@ -178,6 +178,7 @@ void GuildSettingsEmojisPane::OnEditName(Snowflake id, const std::string &name) const auto cb = [this](bool success) { if (!success) { Gtk::MessageDialog dlg("Failed to set emoji name", false, Gtk::MESSAGE_ERROR, Gtk::BUTTONS_OK); + dlg.set_position(Gtk::WIN_POS_CENTER); dlg.run(); } }; @@ -200,6 +201,7 @@ void GuildSettingsEmojisPane::OnMenuDelete() { const auto cb = [this](bool success) { if (!success) { Gtk::MessageDialog dlg("Failed to delete emoji", false, Gtk::MESSAGE_ERROR, Gtk::BUTTONS_OK); + dlg.set_position(Gtk::WIN_POS_CENTER); dlg.run(); } }; -- cgit v1.2.3