[gnote] Fix deprecations in toc
- From: Aurimas Černius <aurimasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnote] Fix deprecations in toc
- Date: Sun, 23 May 2021 18:35:46 +0000 (UTC)
commit ecd8bab78d8682377f66f0a615b93abe4ef44f3e
Author: Aurimas Černius <aurisc4 gmail com>
Date: Sun May 23 21:32:20 2021 +0300
Fix deprecations in toc
src/plugins/tableofcontents/tableofcontentsnoteaddin.cpp | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/plugins/tableofcontents/tableofcontentsnoteaddin.cpp
b/src/plugins/tableofcontents/tableofcontentsnoteaddin.cpp
index 1022b8a8..7e9bb885 100644
--- a/src/plugins/tableofcontents/tableofcontentsnoteaddin.cpp
+++ b/src/plugins/tableofcontents/tableofcontentsnoteaddin.cpp
@@ -65,7 +65,8 @@ Gtk::MenuItem *new_toc_menu_item ()
Gtk::MenuItem * menu_item = manage(new Gtk::MenuItem);
Gtk::AccelLabel *acclabel = manage(new Gtk::AccelLabel(_("Table of Contents")));
- acclabel->set_alignment (Gtk::ALIGN_START);
+ acclabel->set_halign(Gtk::ALIGN_START);
+ acclabel->set_valign(Gtk::ALIGN_START);
/* I don't have gtkmm-3.6, but I have gtk-3.6 */
/* TO UNCOMMENT *///acclabel->set_accel (GDK_KEY_1, Gdk::CONTROL_MASK | Gdk::MOD1_MASK);
/* TO DELETE */gtk_accel_label_set_accel (acclabel->gobj (),GDK_KEY_1, GdkModifierType
(GDK_CONTROL_MASK | GDK_MOD1_MASK));
@@ -371,7 +372,7 @@ void TableofcontentsNoteAddin::on_toc_popup_activated()
populate_toc_menu(m_toc_menu, false);
m_toc_menu_built = true;
}
- m_toc_menu->popup(0, 0);
+ m_toc_menu->popup_at_pointer(nullptr);
}
void TableofcontentsNoteAddin::on_toc_help_activated()
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]