glom r1700 - in trunk: . glom/mode_design/print_layouts
- From: murrayc svn gnome org
- To: svn-commits-list gnome org
- Subject: glom r1700 - in trunk: . glom/mode_design/print_layouts
- Date: Wed, 8 Oct 2008 16:42:21 +0000 (UTC)
Author: murrayc
Date: Wed Oct 8 16:42:21 2008
New Revision: 1700
URL: http://svn.gnome.org/viewvc/glom?rev=1700&view=rev
Log:
2008-10-07 Murray Cumming <murrayc murrayc com>
* glom/mode_design/print_layouts/box_print_layouts.cc:
on_adddel_user_added(): Set a default title based on the name,
when adding a print layout.
Modified:
trunk/ChangeLog
trunk/glom/mode_design/print_layouts/box_print_layouts.cc
Modified: trunk/glom/mode_design/print_layouts/box_print_layouts.cc
==============================================================================
--- trunk/glom/mode_design/print_layouts/box_print_layouts.cc (original)
+++ trunk/glom/mode_design/print_layouts/box_print_layouts.cc Wed Oct 8 16:42:21 2008
@@ -133,6 +133,17 @@
item->set_name(name);
m_AddDel.set_value_key(row, name);
+
+ //Set a suitable starting title, if there is none already:
+ Glib::ustring title = m_AddDel.get_value(row, m_colTitle);
+ if(title.empty())
+ {
+ title = Utils::title_from_string(name);
+ m_AddDel.set_value(row, m_colTitle, title);
+ }
+
+ item->set_title(title);
+
get_document()->set_print_layout(m_table_name, item);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]