[glom/maemo5] Maemo: Details: Show table title in window title.
- From: Murray Cumming <murrayc src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [glom/maemo5] Maemo: Details: Show table title in window title.
- Date: Thu, 15 Oct 2009 15:46:07 +0000 (UTC)
commit bd33514256819257eee61ff19efeffcddc08847c
Author: Murray Cumming <murrayc murrayc com>
Date: Thu Oct 15 10:05:45 2009 +0200
Maemo: Details: Show table title in window title.
* glom/mode_data/notebook_data.cc: show_details(): On Maemo, mention the
table title in the window title, though this again shows that we need to
ask the designer for the singular form for the table's items.
ChangeLog | 8 ++++++++
glom/mode_data/notebook_data.cc | 8 ++++++++
2 files changed, 16 insertions(+), 0 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 43a1811..98a55a9 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,13 @@
2009-10-15 Murray Cumming <murrayc murrayc com>
+ Maemo: Details: Show table title in window title.
+
+ * glom/mode_data/notebook_data.cc: show_details(): On Maemo, mention the
+ table title in the window title, though this again shows that we need to
+ ask the designer for the singular form for the table's items.
+
+2009-10-15 Murray Cumming <murrayc murrayc com>
+
Maemo: Show Add Related buttons when showing portals on details.
* glom/application.[h|cc]: Removed unused on_menu_add_record().
diff --git a/glom/mode_data/notebook_data.cc b/glom/mode_data/notebook_data.cc
index 679b042..4cdf38f 100644
--- a/glom/mode_data/notebook_data.cc
+++ b/glom/mode_data/notebook_data.cc
@@ -231,6 +231,14 @@ void Notebook_Data::show_details(const Gnome::Gda::Value& primary_key_value)
#if GLOM_ENABLE_MAEMO
//Details are shown in a separate window on Maemo,
//though that window contains the regular m_Box_Details.
+ //TODO: Use the singular form when it's available from the document.
+ Document* document = get_document();
+ g_assert(document);
+ const Glib::ustring title =
+ Glib::ustring::compose(_("%1 Details"),
+ document->get_table_title(m_table_name));
+ m_window_maemo_details->set_title(title);
+
m_window_maemo_details->show();
#else
if(get_current_view() != DATA_VIEW_Details)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]