[Midnightbsd-cvs] mports [23494] trunk/deskutils/gnote: update patchset
laffer1 at midnightbsd.org
laffer1 at midnightbsd.org
Fri May 11 08:27:44 EDT 2018
Revision: 23494
http://svnweb.midnightbsd.org/mports/?rev=23494
Author: laffer1
Date: 2018-05-11 08:27:43 -0400 (Fri, 11 May 2018)
Log Message:
-----------
update patchset
Modified Paths:
--------------
trunk/deskutils/gnote/Makefile
Added Paths:
-----------
trunk/deskutils/gnote/files/patch-src_actionmanager.cpp
trunk/deskutils/gnote/files/patch-src_addins_exporttogtg_exporttogtgnoteaddin.cpp
trunk/deskutils/gnote/files/patch-src_addins_printnotes_printnotesnoteaddin.cpp
trunk/deskutils/gnote/files/patch-src_addins_statistics_statisticsapplicationaddin.cpp
trunk/deskutils/gnote/files/patch-src_addins_todo_todonoteaddin.cpp
trunk/deskutils/gnote/files/patch-src_dbus_searchprovider.cpp
trunk/deskutils/gnote/files/patch-src_gnome__keyring_ring.cpp
trunk/deskutils/gnote/files/patch-src_note.hpp
trunk/deskutils/gnote/files/patch-src_notebuffer.cpp
trunk/deskutils/gnote/files/patch-src_notetag.cpp
trunk/deskutils/gnote/files/patch-src_notewindow.cpp
trunk/deskutils/gnote/files/patch-src_remotecontrolproxy.cpp
trunk/deskutils/gnote/files/patch-src_searchnoteswidget.cpp
trunk/deskutils/gnote/files/patch-src_synchronization_gnotesyncclient.cpp
Removed Paths:
-------------
trunk/deskutils/gnote/files/patch-src_gnome-keyring_ring.cpp
Modified: trunk/deskutils/gnote/Makefile
===================================================================
--- trunk/deskutils/gnote/Makefile 2018-05-11 12:22:48 UTC (rev 23493)
+++ trunk/deskutils/gnote/Makefile 2018-05-11 12:27:43 UTC (rev 23494)
@@ -4,6 +4,7 @@
PORTNAME= gnote
PORTVERSION= 3.18.1
+PORTREVISION= 1
CATEGORIES= deskutils gnome
MASTER_SITES= GNOME
Added: trunk/deskutils/gnote/files/patch-src_actionmanager.cpp
===================================================================
--- trunk/deskutils/gnote/files/patch-src_actionmanager.cpp (rev 0)
+++ trunk/deskutils/gnote/files/patch-src_actionmanager.cpp 2018-05-11 12:27:43 UTC (rev 23494)
@@ -0,0 +1,23 @@
+--- src/actionmanager.cpp.orig 2015-11-28 15:45:18 UTC
++++ src/actionmanager.cpp
+@@ -177,17 +177,17 @@ namespace gnote {
+
+ int pos = 0;
+ Glib::RefPtr<Gio::Menu> section = make_app_menu_section(APP_ACTION_NEW);
+- if(section != 0) {
++ if(section) {
+ menu->insert_section(pos++, section);
+ }
+
+ section = make_app_menu_section(APP_ACTION_MANAGE);
+- if(section != 0) {
++ if(section) {
+ menu->insert_section(pos++, section);
+ }
+
+ section = make_app_menu_section(APP_ACTION_LAST);
+- if(section != 0) {
++ if(section) {
+ menu->insert_section(pos++, section);
+ }
+
Property changes on: trunk/deskutils/gnote/files/patch-src_actionmanager.cpp
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/deskutils/gnote/files/patch-src_addins_exporttogtg_exporttogtgnoteaddin.cpp
===================================================================
--- trunk/deskutils/gnote/files/patch-src_addins_exporttogtg_exporttogtgnoteaddin.cpp (rev 0)
+++ trunk/deskutils/gnote/files/patch-src_addins_exporttogtg_exporttogtgnoteaddin.cpp 2018-05-11 12:27:43 UTC (rev 23494)
@@ -0,0 +1,24 @@
+--- src/addins/exporttogtg/exporttogtgnoteaddin.cpp.orig 2015-11-28 15:44:34 UTC
++++ src/addins/exporttogtg/exporttogtgnoteaddin.cpp
+@@ -79,10 +79,10 @@ void ExportToGTGNoteAddin::on_note_opene
+ void ExportToGTGNoteAddin::export_button_clicked()
+ {
+ try {
+- if (s_gtg_interface == 0) {
++ if (!s_gtg_interface) {
+ Glib::RefPtr<Gio::DBus::NodeInfo> node_info = Gio::DBus::NodeInfo::create_for_xml(GTG_INTERFACE);
+ s_gtg_interface = node_info->lookup_interface("org.gnome.GTG");
+- if(s_gtg_interface == 0) {
++ if(!s_gtg_interface) {
+ ERR_OUT(_("GTG XML loaded, but interface not found"));
+ return;
+ }
+@@ -96,7 +96,7 @@ void ExportToGTGNoteAddin::export_button
+ try {
+ Glib::RefPtr<Gio::DBus::Proxy> proxy = Gio::DBus::Proxy::create_for_bus_sync(
+ Gio::DBus::BUS_TYPE_SESSION, "org.gnome.GTG", "/org/gnome/GTG", "org.gnome.GTG", s_gtg_interface);
+- if(proxy == 0) {
++ if(!proxy) {
+ ERR_OUT(_("Failed to create D-Bus proxy for GTG"));
+ return;
+ }
Property changes on: trunk/deskutils/gnote/files/patch-src_addins_exporttogtg_exporttogtgnoteaddin.cpp
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/deskutils/gnote/files/patch-src_addins_printnotes_printnotesnoteaddin.cpp
===================================================================
--- trunk/deskutils/gnote/files/patch-src_addins_printnotes_printnotesnoteaddin.cpp (rev 0)
+++ trunk/deskutils/gnote/files/patch-src_addins_printnotes_printnotesnoteaddin.cpp 2018-05-11 12:27:43 UTC (rev 23494)
@@ -0,0 +1,11 @@
+--- src/addins/printnotes/printnotesnoteaddin.cpp.orig 2015-11-28 15:44:34 UTC
++++ src/addins/printnotes/printnotesnoteaddin.cpp
+@@ -277,7 +277,7 @@ namespace printnotes {
+ }
+
+ gnote::DepthNoteTag::Ptr depth = get_buffer()->find_depth_tag(p_start);
+- if(depth != 0) {
++ if(depth) {
+ indentation += ((int) (dpiX / 3)) * depth->get_depth();
+ }
+ layout->set_width(pango_units_from_double((int)context->get_width() -
Property changes on: trunk/deskutils/gnote/files/patch-src_addins_printnotes_printnotesnoteaddin.cpp
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/deskutils/gnote/files/patch-src_addins_statistics_statisticsapplicationaddin.cpp
===================================================================
--- trunk/deskutils/gnote/files/patch-src_addins_statistics_statisticsapplicationaddin.cpp (rev 0)
+++ trunk/deskutils/gnote/files/patch-src_addins_statistics_statisticsapplicationaddin.cpp 2018-05-11 12:27:43 UTC (rev 23494)
@@ -0,0 +1,11 @@
+--- src/addins/statistics/statisticsapplicationaddin.cpp.orig 2015-11-28 15:44:34 UTC
++++ src/addins/statistics/statisticsapplicationaddin.cpp
+@@ -44,7 +44,7 @@ void StatisticsApplicationAddin::initial
+ {
+ if(!m_initialized) {
+ m_initialized = true;
+- if(m_action == 0) {
++ if(!m_action) {
+ m_action = Gtk::Action::create();
+ m_action->set_name("ShowStatistics");
+ m_action->set_label(_("Show Statistics"));
Property changes on: trunk/deskutils/gnote/files/patch-src_addins_statistics_statisticsapplicationaddin.cpp
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/deskutils/gnote/files/patch-src_addins_todo_todonoteaddin.cpp
===================================================================
--- trunk/deskutils/gnote/files/patch-src_addins_todo_todonoteaddin.cpp (rev 0)
+++ trunk/deskutils/gnote/files/patch-src_addins_todo_todonoteaddin.cpp 2018-05-11 12:27:43 UTC (rev 23494)
@@ -0,0 +1,11 @@
+--- src/addins/todo/todonoteaddin.cpp.orig 2015-11-28 15:44:34 UTC
++++ src/addins/todo/todonoteaddin.cpp
+@@ -42,7 +42,7 @@ TodoModule::TodoModule()
+ void Todo::initialize()
+ {
+ FOREACH(const std::string & s, s_todo_patterns) {
+- if(get_note()->get_tag_table()->lookup(s) == 0) {
++ if(!get_note()->get_tag_table()->lookup(s)) {
+ Glib::RefPtr<Gtk::TextTag> tag = Gtk::TextTag::create(s);
+ tag->property_foreground() = "#0080f0";
+ tag->property_weight() = PANGO_WEIGHT_BOLD;
Property changes on: trunk/deskutils/gnote/files/patch-src_addins_todo_todonoteaddin.cpp
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/deskutils/gnote/files/patch-src_dbus_searchprovider.cpp
===================================================================
--- trunk/deskutils/gnote/files/patch-src_dbus_searchprovider.cpp (rev 0)
+++ trunk/deskutils/gnote/files/patch-src_dbus_searchprovider.cpp 2018-05-11 12:27:43 UTC (rev 23494)
@@ -0,0 +1,11 @@
+--- src/dbus/searchprovider.cpp.orig 2015-11-28 15:44:34 UTC
++++ src/dbus/searchprovider.cpp
+@@ -228,7 +228,7 @@ Glib::VariantContainerBase SearchProvide
+
+ gchar *SearchProvider::get_icon()
+ {
+- if(m_note_icon == 0) {
++ if(!m_note_icon) {
+ Gtk::IconInfo info = gnote::IconManager::obj().lookup_icon(gnote::IconManager::NOTE, 48);
+ m_note_icon = Gio::Icon::create(info.get_filename());
+ }
Property changes on: trunk/deskutils/gnote/files/patch-src_dbus_searchprovider.cpp
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Deleted: trunk/deskutils/gnote/files/patch-src_gnome-keyring_ring.cpp
===================================================================
--- trunk/deskutils/gnote/files/patch-src_gnome-keyring_ring.cpp 2018-05-11 12:22:48 UTC (rev 23493)
+++ trunk/deskutils/gnote/files/patch-src_gnome-keyring_ring.cpp 2018-05-11 12:27:43 UTC (rev 23494)
@@ -1,10 +0,0 @@
---- src/gnome_keyring/ring.cpp.orig 2013-10-30 16:54:52.000000000 +0100
-+++ src/gnome_keyring/ring.cpp 2013-10-30 16:56:09.000000000 +0100
-@@ -20,6 +20,7 @@
-
-
- #include <cstring>
-+#include <cstdlib>
-
- #include "keyringexception.hpp"
- #include "ring.hpp"
Added: trunk/deskutils/gnote/files/patch-src_gnome__keyring_ring.cpp
===================================================================
--- trunk/deskutils/gnote/files/patch-src_gnome__keyring_ring.cpp (rev 0)
+++ trunk/deskutils/gnote/files/patch-src_gnome__keyring_ring.cpp 2018-05-11 12:27:43 UTC (rev 23494)
@@ -0,0 +1,10 @@
+--- src/gnome_keyring/ring.cpp.orig 2015-11-28 15:44:34 UTC
++++ src/gnome_keyring/ring.cpp
+@@ -20,6 +20,7 @@
+
+
+ #include <cstring>
++#include <cstdlib>
+
+ #include "keyringexception.hpp"
+ #include "ring.hpp"
Property changes on: trunk/deskutils/gnote/files/patch-src_gnome__keyring_ring.cpp
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/deskutils/gnote/files/patch-src_note.hpp
===================================================================
--- trunk/deskutils/gnote/files/patch-src_note.hpp (rev 0)
+++ trunk/deskutils/gnote/files/patch-src_note.hpp 2018-05-11 12:27:43 UTC (rev 23494)
@@ -0,0 +1,20 @@
+--- src/note.hpp.orig 2015-11-28 15:44:34 UTC
++++ src/note.hpp
+@@ -124,7 +124,7 @@ public:
+ const Glib::RefPtr<NoteTagTable> & get_tag_table();
+ bool has_buffer() const
+ {
+- return m_buffer;
++ return (bool)m_buffer;
+ }
+ const Glib::RefPtr<NoteBuffer> & get_buffer();
+ bool has_window() const
+@@ -139,7 +139,7 @@ public:
+ bool is_special() const;
+ bool is_loaded() const
+ {
+- return (m_buffer);
++ return (bool)m_buffer;
+ }
+ bool is_opened() const
+ {
Property changes on: trunk/deskutils/gnote/files/patch-src_note.hpp
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/deskutils/gnote/files/patch-src_notebuffer.cpp
===================================================================
--- trunk/deskutils/gnote/files/patch-src_notebuffer.cpp (rev 0)
+++ trunk/deskutils/gnote/files/patch-src_notebuffer.cpp 2018-05-11 12:27:43 UTC (rev 23494)
@@ -0,0 +1,29 @@
+--- src/notebuffer.cpp.orig 2015-11-28 15:44:34 UTC
++++ src/notebuffer.cpp
+@@ -248,7 +248,7 @@ namespace gnote {
+
+ Glib::RefPtr<Gtk::TextTag> depth = find_depth_tag(iter);
+
+- return depth;
++ return (bool)depth;
+ }
+
+
+@@ -1341,7 +1341,7 @@ namespace gnote {
+ if (iter.get_line() < buffer->get_line_count() - 1) {
+ Gtk::TextIter next_line = buffer->get_iter_at_line(iter.get_line()+1);
+ next_line_has_depth =
+- NoteBuffer::Ptr::cast_static(buffer)->find_depth_tag (next_line);
++ (bool)NoteBuffer::Ptr::cast_static(buffer)->find_depth_tag (next_line);
+ }
+
+ bool at_empty_line = iter.ends_line () && iter.starts_line ();
+@@ -1576,7 +1576,7 @@ namespace gnote {
+ NoteBuffer::Ptr note_buffer = NoteBuffer::Ptr::cast_dynamic(buffer);
+ // Do not insert bullet if it's already there
+ // this happens when using double identation in bullet list
+- if(note_buffer->find_depth_tag(apply_start) == 0) {
++ if(!note_buffer->find_depth_tag(apply_start)) {
+ note_buffer->insert_bullet (apply_start, depth_tag->get_depth(), depth_tag->get_direction());
+ buffer->remove_all_tags (apply_start, apply_start);
+ offset += 2;
Property changes on: trunk/deskutils/gnote/files/patch-src_notebuffer.cpp
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/deskutils/gnote/files/patch-src_notetag.cpp
===================================================================
--- trunk/deskutils/gnote/files/patch-src_notetag.cpp (rev 0)
+++ trunk/deskutils/gnote/files/patch-src_notetag.cpp 2018-05-11 12:27:43 UTC (rev 23494)
@@ -0,0 +1,11 @@
+--- src/notetag.cpp.orig 2015-11-28 15:44:34 UTC
++++ src/notetag.cpp
+@@ -523,7 +523,7 @@ namespace gnote {
+
+ bool NoteTagTable::tag_has_depth(const Glib::RefPtr<Gtk::TextBuffer::Tag> & tag)
+ {
+- return DepthNoteTag::Ptr::cast_dynamic(tag);
++ return (bool)DepthNoteTag::Ptr::cast_dynamic(tag);
+ }
+
+
Property changes on: trunk/deskutils/gnote/files/patch-src_notetag.cpp
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/deskutils/gnote/files/patch-src_notewindow.cpp
===================================================================
--- trunk/deskutils/gnote/files/patch-src_notewindow.cpp (rev 0)
+++ trunk/deskutils/gnote/files/patch-src_notewindow.cpp 2018-05-11 12:27:43 UTC (rev 23494)
@@ -0,0 +1,29 @@
+--- src/notewindow.cpp.orig 2015-11-28 15:44:34 UTC
++++ src/notewindow.cpp
+@@ -186,7 +186,7 @@ namespace gnote {
+ return;
+ }
+ remove_accel_group(*parent);
+- if(parent->get_window() != 0
++ if(parent->get_window()
+ && (parent->get_window()->get_state() & Gdk::WINDOW_STATE_MAXIMIZED) == 0) {
+ int cur_width, cur_height;
+ parent->get_size(cur_width, cur_height);
+@@ -316,7 +316,7 @@ namespace gnote {
+ }
+ m_widget_actions[order] = action;
+ m_signal_actions_changed();
+- if(Glib::RefPtr<NonModifyingNoteAction>::cast_dynamic(action) == 0) {
++ if(!Glib::RefPtr<NonModifyingNoteAction>::cast_dynamic(action)) {
+ action->set_sensitive(m_enabled);
+ }
+ }
+@@ -619,7 +619,7 @@ namespace gnote {
+ m_global_keys->enabled(m_enabled);
+ FOREACH(const Glib::RefPtr<Gtk::Action> & action, get_widget_actions()) {
+ // A list includes empty actions to mark separators, non-modifying actions are always enabled
+- if(action != 0 && Glib::RefPtr<NonModifyingNoteAction>::cast_dynamic(action) == 0) {
++ if(action && !Glib::RefPtr<NonModifyingNoteAction>::cast_dynamic(action)) {
+ action->set_sensitive(enable);
+ }
+ }
Property changes on: trunk/deskutils/gnote/files/patch-src_notewindow.cpp
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/deskutils/gnote/files/patch-src_remotecontrolproxy.cpp
===================================================================
--- trunk/deskutils/gnote/files/patch-src_remotecontrolproxy.cpp (rev 0)
+++ trunk/deskutils/gnote/files/patch-src_remotecontrolproxy.cpp 2018-05-11 12:27:43 UTC (rev 23494)
@@ -0,0 +1,11 @@
+--- src/remotecontrolproxy.cpp.orig 2015-11-28 15:44:34 UTC
++++ src/remotecontrolproxy.cpp
+@@ -35,7 +35,7 @@ namespace {
+ void load_interface_from_file(const char *filename, const char *interface_name,
+ Glib::RefPtr<Gio::DBus::InterfaceInfo> & interface)
+ {
+- if(interface != 0) {
++ if(interface) {
+ return;
+ }
+ std::ifstream fin(filename);
Property changes on: trunk/deskutils/gnote/files/patch-src_remotecontrolproxy.cpp
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/deskutils/gnote/files/patch-src_searchnoteswidget.cpp
===================================================================
--- trunk/deskutils/gnote/files/patch-src_searchnoteswidget.cpp (rev 0)
+++ trunk/deskutils/gnote/files/patch-src_searchnoteswidget.cpp 2018-05-11 12:27:43 UTC (rev 23494)
@@ -0,0 +1,11 @@
+--- src/searchnoteswidget.cpp.orig 2015-11-28 15:44:34 UTC
++++ src/searchnoteswidget.cpp
+@@ -1520,7 +1520,7 @@ void SearchNotesWidget::parse_sorting_se
+ void SearchNotesWidget::on_rename_notebook()
+ {
+ Glib::RefPtr<Gtk::TreeSelection> selection = m_notebooksTree->get_selection();
+- if(selection == 0) {
++ if(!selection) {
+ return;
+ }
+ std::vector<Gtk::TreeModel::Path> selected_row = selection->get_selected_rows();
Property changes on: trunk/deskutils/gnote/files/patch-src_searchnoteswidget.cpp
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/deskutils/gnote/files/patch-src_synchronization_gnotesyncclient.cpp
===================================================================
--- trunk/deskutils/gnote/files/patch-src_synchronization_gnotesyncclient.cpp (rev 0)
+++ trunk/deskutils/gnote/files/patch-src_synchronization_gnotesyncclient.cpp 2018-05-11 12:27:43 UTC (rev 23494)
@@ -0,0 +1,11 @@
+--- src/synchronization/gnotesyncclient.cpp.orig 2015-11-28 15:44:34 UTC
++++ src/synchronization/gnotesyncclient.cpp
+@@ -54,7 +54,7 @@ namespace sync {
+ {
+ m_local_manifest_file_path = Glib::build_filename(IGnote::conf_dir(), LOCAL_MANIFEST_FILE_NAME);
+ Glib::RefPtr<Gio::File> manifest = Gio::File::create_for_path(m_local_manifest_file_path);
+- if(manifest != 0) {
++ if(manifest) {
+ m_file_watcher = manifest->monitor_file();
+ m_file_watcher->signal_changed()
+ .connect(sigc::mem_fun(*this, &GnoteSyncClient::on_changed));
Property changes on: trunk/deskutils/gnote/files/patch-src_synchronization_gnotesyncclient.cpp
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
More information about the Midnightbsd-cvs
mailing list