paperbox r112 - in trunk: . src
- From: markoa svn gnome org
- To: svn-commits-list gnome org
- Subject: paperbox r112 - in trunk: . src
- Date: Wed, 12 Mar 2008 19:05:43 +0000 (GMT)
Author: markoa
Date: Wed Mar 12 19:05:42 2008
New Revision: 112
URL: http://svn.gnome.org/viewvc/paperbox?rev=112&view=rev
Log:
Use a uniform font size in the tag cloud in CE
Modified:
trunk/ChangeLog
trunk/src/category-editor.cc
Modified: trunk/src/category-editor.cc
==============================================================================
--- trunk/src/category-editor.cc (original)
+++ trunk/src/category-editor.cc Wed Mar 12 19:05:42 2008
@@ -40,8 +40,7 @@
const int DEFAULT_WIDTH = 500;
const int DEFAULT_HEIGHT = 375; // try to keep the ratio 4:3
- const int TAG_FONT_SIZE_MIN = 8;
- const int TAG_FONT_SIZE_MAX = 14;
+ const int TAG_FONT_SIZE = 10;
CategoryEditor::CategoryEditor(
GtkDialog* cobject,
@@ -111,7 +110,7 @@
vbox_right_->pack_start(tag_box_);
tag_cloud_model_.reset(
- new DocumentTagCloudModel(TAG_FONT_SIZE_MIN, TAG_FONT_SIZE_MAX));
+ new DocumentTagCloudModel(TAG_FONT_SIZE, TAG_FONT_SIZE));
tag_cloud_.set_model(tag_cloud_model_);
tag_box_.pack_start(tag_cloud_, true, true);
@@ -306,7 +305,8 @@
tag_cloud_model_.get())->update_tags(*it);
}
- bool CategoryEditor::on_expose_event(GdkEventExpose* event)
+ bool
+ CategoryEditor::on_expose_event(GdkEventExpose* event)
{
// we need to wait for the window to be drawn as tag cloud
// expects its parent's dimensions to be available
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]