[glom/maemo5] Client-only mode: Change the initial dialog label.



commit 047c9bcb4e33be9db336faf6c827385a455750ef
Author: Murray Cumming <murrayc murrayc com>
Date:   Mon Sep 28 10:33:50 2009 +0200

    Client-only mode: Change the initial dialog label.
    
    * glom/dialog_existing_or_new.cc: Constructor: Change the label text if in
    client-only mode, to avoid mentioning creation of documents.

 ChangeLog                      |    7 +++++++
 glom/dialog_existing_or_new.cc |    7 +++++++
 2 files changed, 14 insertions(+), 0 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 2c01562..23360b1 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2009-09-28  Murray Cumming  <murrayc murrayc com>
+
+	Client-only mode: Change the initial dialog label.
+	 
+	* glom/dialog_existing_or_new.cc: Constructor: Change the label text if in 
+	client-only mode, to avoid mentioning creation of documents.
+
 2009-09-25  Murray Cumming  <murrayc murrayc com>
 
 	Fix the build with gtkmm < 2.18.
diff --git a/glom/dialog_existing_or_new.cc b/glom/dialog_existing_or_new.cc
index 37dd0f0..ee37cc6 100644
--- a/glom/dialog_existing_or_new.cc
+++ b/glom/dialog_existing_or_new.cc
@@ -101,6 +101,13 @@ namespace Glom
 Dialog_ExistingOrNew::Dialog_ExistingOrNew(BaseObjectType* cobject, const Glib::RefPtr<Gtk::Builder>& builder)
 : Gtk::Dialog(cobject)
 {
+#ifdef GLOM_ENABLE_CLIENT_ONLY
+  //Don't mention creation of new documents in client-only mode:
+  Gtk::Label* label = 0;
+  builder->get_widget("existing_or_new_label", label);
+  label->set_text(_("Open a Document"));
+#endif //GLOM_ENABLE_CLIENT_ONLY
+  
   builder->get_widget("existing_or_new_existing_treeview", m_existing_view);
   builder->get_widget("existing_or_new_new_treeview", m_new_view);
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]