paperbox r150 - in trunk: . src
- From: markoa svn gnome org
- To: svn-commits-list gnome org
- Subject: paperbox r150 - in trunk: . src
- Date: Thu, 1 May 2008 18:10:36 +0100 (BST)
Author: markoa
Date: Thu May 1 17:10:36 2008
New Revision: 150
URL: http://svn.gnome.org/viewvc/paperbox?rev=150&view=rev
Log:
Make TagCloudModel inherit from sigc::trackable
Modified:
trunk/ChangeLog
trunk/src/tag-cloud-model.cc
trunk/src/tag-cloud-model.hh
Modified: trunk/src/tag-cloud-model.cc
==============================================================================
--- trunk/src/tag-cloud-model.cc (original)
+++ trunk/src/tag-cloud-model.cc Thu May 1 17:10:36 2008
@@ -164,16 +164,11 @@
shared_ptr<TagData> data(new TagData);
data->count = 1;
tags_[tag] = data;
-
- update_tag_data();
- signal_changed_.emit();
-
- return;
+ } else {
+ tags_[tag]->count++;
}
- tags_[tag]->count++;
update_tag_data();
-
signal_changed_.emit();
}
Modified: trunk/src/tag-cloud-model.hh
==============================================================================
--- trunk/src/tag-cloud-model.hh (original)
+++ trunk/src/tag-cloud-model.hh Thu May 1 17:10:36 2008
@@ -47,7 +47,7 @@
typedef std::map<Glib::ustring, std::tr1::shared_ptr<TagData>, lt_ustring>
tag_map;
-class TagCloudModel
+class TagCloudModel : public sigc::trackable
{
public:
explicit TagCloudModel(int min_font_size, int max_font_size,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]