[geary] Make MainWindow and ComposerWindow uniquely targetable via CSS.



commit 919aea1516c7acfe95bedeca1ca16571f907d8fb
Author: Michael James Gratton <mike vee net>
Date:   Mon Mar 6 13:20:16 2017 +1100

    Make MainWindow and ComposerWindow uniquely targetable via CSS.
    
    Fixes Bug 746590.

 src/client/composer/composer-window.vala |    3 +++
 ui/main-window.ui                        |    1 +
 2 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/client/composer/composer-window.vala b/src/client/composer/composer-window.vala
index ad48d23..7c1e3b8 100644
--- a/src/client/composer/composer-window.vala
+++ b/src/client/composer/composer-window.vala
@@ -29,6 +29,9 @@ public class ComposerWindow : Gtk.ApplicationWindow, ComposerContainer {
         // composer actions to work properly.
         GearyApplication.instance.add_window(this);
 
+        // XXX Bug 764622
+        set_property("name", "GearyComposerWindow");
+
         add(this.composer);
         focus_in_event.connect(on_focus_in);
         focus_out_event.connect(on_focus_out);
diff --git a/ui/main-window.ui b/ui/main-window.ui
index 2bc3833..1ed5894 100644
--- a/ui/main-window.ui
+++ b/ui/main-window.ui
@@ -4,6 +4,7 @@
   <template class="MainWindow" parent="GtkApplicationWindow">
     <property name="visible">False</property>
     <property name="show_menubar">False</property>
+    <property name="name">GearyMainWindow</property>
     <property name="events">GDK_KEY_PRESS_MASK | GDK_KEY_RELEASE_MASK | GDK_FOCUS_CHANGE_MASK | 
GDK_STRUCTURE_MASK</property>
     <signal name="delete_event" handler="on_delete_event"/>
     <signal name="key_release_event" handler="on_key_release_event"/>


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