[gnote] Update export to HTML after popover changes



commit 0bf78da75e96d0dc92e4b0ed3ccc2c9d83e45d95
Author: Aurimas Černius <aurisc4 gmail com>
Date:   Sun Mar 31 18:00:41 2019 +0300

    Update export to HTML after popover changes

 src/addins/exporttohtml/exporttohtml.desktop.in.in | 2 +-
 src/addins/exporttohtml/exporttohtmlnoteaddin.cpp  | 6 +++---
 src/addins/exporttohtml/exporttohtmlnoteaddin.hpp  | 4 ++--
 3 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/src/addins/exporttohtml/exporttohtml.desktop.in.in 
b/src/addins/exporttohtml/exporttohtml.desktop.in.in
index cf74dfe5..f77f1988 100644
--- a/src/addins/exporttohtml/exporttohtml.desktop.in.in
+++ b/src/addins/exporttohtml/exporttohtml.desktop.in.in
@@ -4,7 +4,7 @@ _Name=Export to HTML
 _Description=Exports individual notes to HTML.
 _Authors=Hubert Figuiere and the Tomboy Project
 Category=Tools
-Version=0.5
+Version=0.6
 DefaultEnabled=false
 Module=libexporttohtml
 LibgnoteRelease=@LIBGNOTE_RELEASE@
diff --git a/src/addins/exporttohtml/exporttohtmlnoteaddin.cpp 
b/src/addins/exporttohtml/exporttohtmlnoteaddin.cpp
index eadbf5f8..944ef97e 100644
--- a/src/addins/exporttohtml/exporttohtmlnoteaddin.cpp
+++ b/src/addins/exporttohtml/exporttohtmlnoteaddin.cpp
@@ -1,7 +1,7 @@
 /*
  * gnote
  *
- * Copyright (C) 2010-2013,2016-2017 Aurimas Cernius
+ * Copyright (C) 2010-2013,2016-2017,2019 Aurimas Cernius
  * Copyright (C) 2009 Hubert Figuiere
  *
  * This program is free software: you can redistribute it and/or modify
@@ -75,11 +75,11 @@ void ExportToHtmlNoteAddin::on_note_opened()
 }
 
 
-std::map<int, Gtk::Widget*> ExportToHtmlNoteAddin::get_actions_popover_widgets() const
+std::vector<gnote::PopoverWidget> ExportToHtmlNoteAddin::get_actions_popover_widgets() const
 {
   auto widgets = NoteAddin::get_actions_popover_widgets();
   auto button = gnote::utils::create_popover_button("win.exporttohtml-export", _("Export to HTML…"));
-  gnote::utils::add_item_to_ordered_map(widgets, gnote::EXPORT_TO_HTML_ORDER, button);
+  widgets.push_back(gnote::PopoverWidget::create_for_note(gnote::EXPORT_TO_HTML_ORDER, button));
   return widgets;
 }
 
diff --git a/src/addins/exporttohtml/exporttohtmlnoteaddin.hpp 
b/src/addins/exporttohtml/exporttohtmlnoteaddin.hpp
index 71c539d6..19cd0fc9 100644
--- a/src/addins/exporttohtml/exporttohtmlnoteaddin.hpp
+++ b/src/addins/exporttohtml/exporttohtmlnoteaddin.hpp
@@ -1,7 +1,7 @@
 /*
  * gnote
  *
- * Copyright (C) 2010,2013,2016 Aurimas Cernius
+ * Copyright (C) 2010,2013,2016,2019 Aurimas Cernius
  * Copyright (C) 2009 Hubert Figuiere
  *
  * This program is free software: you can redistribute it and/or modify
@@ -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:
   sharp::XslTransform & get_note_xsl();
   void export_button_clicked(const Glib::VariantBase&);


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