[dconf-editor] Make KeyListBoxRow a non-abstract EventBox.



commit 1ecc5cda332d2bdacb3fb92f1551dd08639d433f
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date:   Sat Sep 26 11:38:53 2015 +0200

    Make KeyListBoxRow a non-abstract EventBox.

 editor/dconf-window.vala   |    2 +-
 editor/key-list-box-row.ui |   78 +++++++++++++++++++++++---------------------
 2 files changed, 42 insertions(+), 38 deletions(-)
---
diff --git a/editor/dconf-window.vala b/editor/dconf-window.vala
index 68bf568..25c8fe1 100644
--- a/editor/dconf-window.vala
+++ b/editor/dconf-window.vala
@@ -211,7 +211,7 @@ class DConfWindow : ApplicationWindow
 }
 
 [GtkTemplate (ui = "/ca/desrt/dconf-editor/ui/key-list-box-row.ui")]
-private abstract class KeyListBoxRow : Grid
+private class KeyListBoxRow : EventBox
 {
     [GtkChild] protected Label key_name_label;
     [GtkChild] protected Label key_value_label;
diff --git a/editor/key-list-box-row.ui b/editor/key-list-box-row.ui
index 45fd9bf..2056bf9 100644
--- a/editor/key-list-box-row.ui
+++ b/editor/key-list-box-row.ui
@@ -1,45 +1,49 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <interface>
   <!-- interface-requires gtk+ 3.0 -->
-  <template class="KeyListBoxRow" parent="GtkGrid">
-    <property name="visible">True</property>
-    <property name="orientation">horizontal</property>
-    <property name="height-request">42</property>
-    <property name="margin-start">10</property><!-- looks cool -->
-    <property name="column-spacing">6</property>
-    <property name="margin-end">6</property><!-- same as column_spacing -->
+  <template class="KeyListBoxRow" parent="GtkEventBox">
     <child>
-      <object class="GtkLabel" id="key_name_label">
+      <object class="GtkGrid">
         <property name="visible">True</property>
-        <property name="xalign">0</property>
-        <property name="vexpand">True</property>
-        <property name="width-request">222</property>
-        <property name="wrap">True</property>
-        <property name="wrap-mode">PANGO_WRAP_WORD_CHAR</property>
-        <property name="halign">start</property>
-        <property name="single-line-mode">True</property>
-      </object>
-    </child>
-    <child>
-      <object class="GtkLabel" id="key_value_label">
-        <property name="visible">True</property>
-        <property name="xalign">0</property>
-        <property name="vexpand">True</property>
-        <property name="width-request">166</property>
-        <property name="wrap">True</property>
-        <property name="wrap-mode">PANGO_WRAP_WORD_CHAR</property>
-        <property name="halign">start</property>
-        <property name="single-line-mode">True</property>
-      </object>
-    </child>
-    <child>
-      <object class="GtkLabel" id="key_info_label">
-        <property name="visible">True</property>
-        <property name="expand">True</property>
-        <property name="wrap">False</property>
-        <property name="halign">start</property>
-        <property name="single-line-mode">True</property>
-        <property name="ellipsize">end</property>
+        <property name="orientation">horizontal</property>
+        <property name="height-request">42</property>
+        <property name="margin-start">10</property><!-- looks cool -->
+        <property name="column-spacing">6</property>
+        <property name="margin-end">6</property><!-- same as column_spacing -->
+        <child>
+          <object class="GtkLabel" id="key_name_label">
+            <property name="visible">True</property>
+            <property name="xalign">0</property>
+            <property name="vexpand">True</property>
+            <property name="width-request">222</property>
+            <property name="wrap">True</property>
+            <property name="wrap-mode">PANGO_WRAP_WORD_CHAR</property>
+            <property name="halign">start</property>
+            <property name="single-line-mode">True</property>
+          </object>
+        </child>
+        <child>
+          <object class="GtkLabel" id="key_value_label">
+            <property name="visible">True</property>
+            <property name="xalign">0</property>
+            <property name="vexpand">True</property>
+            <property name="width-request">166</property>
+            <property name="wrap">True</property>
+            <property name="wrap-mode">PANGO_WRAP_WORD_CHAR</property>
+            <property name="halign">start</property>
+            <property name="single-line-mode">True</property>
+          </object>
+        </child>
+        <child>
+          <object class="GtkLabel" id="key_info_label">
+            <property name="visible">True</property>
+            <property name="expand">True</property>
+            <property name="wrap">False</property>
+            <property name="halign">start</property>
+            <property name="single-line-mode">True</property>
+            <property name="ellipsize">end</property>
+          </object>
+        </child>
       </object>
     </child>
   </template>


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