diff options
author | fiaxh <git@lightrise.org> | 2022-05-14 14:45:59 +0200 |
---|---|---|
committer | fiaxh <git@lightrise.org> | 2022-07-27 20:34:20 +0200 |
commit | f44cbe02c17df1f02ad49c63cd784fec0ea02d85 (patch) | |
tree | 4cab9b5f84d88769d19b0698e24b318f50b6144e /main/src/ui/application.vala | |
parent | 2b3ce5fc95c63ed7d54e207db0585c8b8bbcd603 (diff) | |
download | dino-f44cbe02c17df1f02ad49c63cd784fec0ea02d85.tar.gz dino-f44cbe02c17df1f02ad49c63cd784fec0ea02d85.zip |
Improve Gtk4 port
Diffstat (limited to 'main/src/ui/application.vala')
-rw-r--r-- | main/src/ui/application.vala | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/main/src/ui/application.vala b/main/src/ui/application.vala index f83e403b..2167145b 100644 --- a/main/src/ui/application.vala +++ b/main/src/ui/application.vala @@ -203,11 +203,6 @@ public class Dino.Ui.Application : Gtk.Application, Dino.Application { Builder builder = new Builder.from_resource("/im/dino/Dino/shortcuts.ui"); ShortcutsWindow dialog = (ShortcutsWindow) builder.get_object("shortcuts-window"); if (!use_csd()) { - // Hack to prevent CRITICAL in Gtk when trying to destroy non-existant headerbar - Widget shortcuts_hack = dialog.get_titlebar(); -// dialog.destroy.connect_after(() => { -// shortcuts_hack = null; -// }); dialog.set_titlebar(null); } dialog.title = _("Keyboard Shortcuts"); @@ -292,12 +287,6 @@ public class Dino.Ui.Application : Gtk.Application, Dino.Application { dialog.copyright = "Copyright © 2016-2022 - Dino Team"; dialog.license_type = License.GPL_3_0; -// dialog.response.connect((response_id) => { -// if (response_id == Gtk.ResponseType.CANCEL || response_id == Gtk.ResponseType.DELETE_EVENT) { -// dialog.destroy(); -// } -// }); - if (!use_csd()) { dialog.set_titlebar(null); } @@ -308,7 +297,7 @@ public class Dino.Ui.Application : Gtk.Application, Dino.Application { Dialog dialog = new Dialog.with_buttons(_("Join Channel"), window, Gtk.DialogFlags.MODAL | Gtk.DialogFlags.USE_HEADER_BAR, _("Join"), ResponseType.OK, _("Cancel"), ResponseType.CANCEL); dialog.modal = true; Button ok_button = dialog.get_widget_for_response(ResponseType.OK) as Button; - ok_button.get_style_context().add_class("suggested-action"); + ok_button.add_css_class("suggested-action"); ConferenceDetailsFragment conference_fragment = new ConferenceDetailsFragment(stream_interactor) { ok_button=ok_button }; conference_fragment.jid = jid; if (account != null) { |