[gnote] Update export to GTG after popover changes



commit bf8b8ced9362e4ab45f4846e80a7d63feeac1748
Author: Aurimas Černius <aurisc4 gmail com>
Date:   Sun Mar 31 17:58:37 2019 +0300

    Update export to GTG after popover changes

 src/addins/exporttogtg/exporttogtg.desktop.in.in | 2 +-
 src/addins/exporttogtg/exporttogtgnoteaddin.cpp  | 6 +++---
 src/addins/exporttogtg/exporttogtgnoteaddin.hpp  | 4 ++--
 3 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/src/addins/exporttogtg/exporttogtg.desktop.in.in 
b/src/addins/exporttogtg/exporttogtg.desktop.in.in
index 271e6678..f2dcd5e8 100644
--- a/src/addins/exporttogtg/exporttogtg.desktop.in.in
+++ b/src/addins/exporttogtg/exporttogtg.desktop.in.in
@@ -4,7 +4,7 @@ _Name=Export to Getting Things GNOME
 _Description=Exports individual notes as Getting Things GNOME tasks
 _Authors=Aurimas Černius
 Category=Tools
-Version=0.2
+Version=0.3
 DefaultEnabled=false
 Module=libexporttogtg
 LibgnoteRelease=@LIBGNOTE_RELEASE@
diff --git a/src/addins/exporttogtg/exporttogtgnoteaddin.cpp b/src/addins/exporttogtg/exporttogtgnoteaddin.cpp
index e6a98e17..08fb8c2e 100644
--- a/src/addins/exporttogtg/exporttogtgnoteaddin.cpp
+++ b/src/addins/exporttogtg/exporttogtgnoteaddin.cpp
@@ -1,7 +1,7 @@
 /*
  * gnote
  *
- * Copyright (C) 2013-2014,2016-2017 Aurimas Cernius
+ * Copyright (C) 2013-2014,2016-2017,2019 Aurimas Cernius
  *
  * This program is free software: you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -72,11 +72,11 @@ void ExportToGTGNoteAddin::on_note_opened()
 }
 
 
-std::map<int, Gtk::Widget*> ExportToGTGNoteAddin::get_actions_popover_widgets() const
+std::vector<gnote::PopoverWidget> ExportToGTGNoteAddin::get_actions_popover_widgets() const
 {
   auto widgets = NoteAddin::get_actions_popover_widgets();
   auto button = gnote::utils::create_popover_button("win.exporttogtg-export", _("Export to Getting Things 
GNOME"));
-  gnote::utils::add_item_to_ordered_map(widgets, gnote::EXPORT_TO_GTG_ORDER, button);
+  widgets.push_back(gnote::PopoverWidget::create_for_note(gnote::EXPORT_TO_GTG_ORDER, button));
   return widgets;
 }
 
diff --git a/src/addins/exporttogtg/exporttogtgnoteaddin.hpp b/src/addins/exporttogtg/exporttogtgnoteaddin.hpp
index d623253f..16bc0029 100644
--- a/src/addins/exporttogtg/exporttogtgnoteaddin.hpp
+++ b/src/addins/exporttogtg/exporttogtgnoteaddin.hpp
@@ -1,7 +1,7 @@
 /*
  * gnote
  *
- * Copyright (C) 2013,2016 Aurimas Cernius
+ * Copyright (C) 2013,2016,2019 Aurimas Cernius
  *
  * This program is free software: you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -56,7 +56,7 @@ public:
   virtual void initialize() override;
   virtual void shutdown() override;
   virtual void on_note_opened() override;
-  virtual std::map<int, Gtk::Widget*> get_actions_popover_widgets() const override;
+  virtual std::vector<gnote::PopoverWidget> get_actions_popover_widgets() const override;
 private:
   void export_button_clicked(const Glib::VariantBase&);
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]