diff options
author | ouwou <26526779+ouwou@users.noreply.github.com> | 2021-04-12 03:00:31 -0400 |
---|---|---|
committer | ouwou <26526779+ouwou@users.noreply.github.com> | 2021-04-12 03:00:31 -0400 |
commit | 15d0a45627b0a11e785da5712a803a45fa8ed50e (patch) | |
tree | 3606427ba9e5c1fae44ecd6ee8db3990f577ad78 /windows/guildsettings/emojispane.cpp | |
parent | bf9b053d365344476b13e837f0b9da28cf8220f9 (diff) | |
download | abaddon-portaudio-15d0a45627b0a11e785da5712a803a45fa8ed50e.tar.gz abaddon-portaudio-15d0a45627b0a11e785da5712a803a45fa8ed50e.zip |
center dialogs and fix warning
Diffstat (limited to 'windows/guildsettings/emojispane.cpp')
-rw-r--r-- | windows/guildsettings/emojispane.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
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(); } }; |