[glom] Make sure all glade-instantiated windows have the Glom icon.



commit 001f1a7da8a763e989c06d35dde554eba0464b9b
Author: Murray Cumming <murrayc murrayc com>
Date:   Tue Apr 27 10:09:52 2010 +0200

    Make sure all glade-instantiated windows have the Glom icon.
    
    * glom/glade_utils.h: helper_get_glade_widget_derived_with_warning():
        Call set_icon_name() on windows, fixing my regression.

 ChangeLog          |    7 +++++++
 glom/glade_utils.h |    7 +++++++
 2 files changed, 14 insertions(+), 0 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index c9a94a2..c8e922e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2010-04-27  Murray Cumming  <murrayc murrayc com>
+
+	Make sure all glade-instantiated windows have the Glom icon.
+
+	* glom/glade_utils.h: helper_get_glade_widget_derived_with_warning():
+    Call set_icon_name() on windows, fixing my regression.
+
 2010-04-27  Murray Cumming  <murrayc murrayc-desktop>
 
     Documentation: Added libglom main page. Installed _sources for pyglom.
diff --git a/glom/glade_utils.h b/glom/glade_utils.h
index ebf6f62..673d68b 100644
--- a/glom/glade_utils.h
+++ b/glom/glade_utils.h
@@ -92,6 +92,13 @@ void helper_get_glade_widget_derived_with_warning(const std::string& filename, c
   {
     refXml->get_widget_derived(id, widget);
   }
+
+  // Make sure that all windows have the Glom icon.
+  // TODO: Though shouldn't all transient windows have this by default,
+  // or should they even be visible in the task list? murrayc
+  Gtk::Window* window = dynamic_cast<Gtk::Window*>(widget);
+  if(window)
+    window->set_icon_name("glom");
 }
 
 template<class T_Widget>



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