[glom] Improve application title.
- From: Daniel Borgmann <dborg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glom] Improve application title.
- Date: Wed, 31 Mar 2010 10:08:30 +0000 (UTC)
commit 80be13d0f8871ce9ac6cfdbd3d8116e220156b58
Author: Daniel Borgmann <danielb openismus com>
Date: Wed Mar 31 11:07:44 2010 +0100
Improve application title.
* glom/application.cc: Don't show colon in application title when
table name is empty.
ChangeLog | 7 +++++++
glom/application.cc | 4 +++-
2 files changed, 10 insertions(+), 1 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index d6c31bb..cc2a0b6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
2010-03-31 Daniel Borgmann <danielb openismus com>
+ Improve application title.
+
+ * glom/application.cc: Don't show colon in application title when
+ table name is empty.
+
+2010-03-31 Daniel Borgmann <danielb openismus com>
+
Remove unneded alert dialogs / TODO items.
* glom/frame_glom.cc: No table warnings are not needed anymore
diff --git a/glom/application.cc b/glom/application.cc
index b5325c9..a5d843c 100644
--- a/glom/application.cc
+++ b/glom/application.cc
@@ -2586,7 +2586,9 @@ void Application::update_window_title()
else //Use the table name if there is no table title.
table_label = table_name;
- Glib::ustring strTitle = document->get_name() + ": " + table_label;
+ Glib::ustring strTitle = document->get_name();
+ if(!table_label.empty())
+ strTitle += ": " + table_label;
#ifndef GLOM_ENABLE_CLIENT_ONLY
//Indicate unsaved changes:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]