summaryrefslogtreecommitdiff
path: root/data/gl-eventviewdetail.ui
diff options
context:
space:
mode:
authorJonathan Kang <jonathan121537@gmail.com>2014-09-09 14:09:10 +0800
committerDavid King <davidk@gnome.org>2014-09-23 13:13:59 +0100
commite409919dffb83c758ab96a0f3d85eaa150808c44 (patch)
tree2e0b8727a52678e15738807abff5759778ae756b /data/gl-eventviewdetail.ui
parent884a1a729bab2afad64f81211f94e37e47638cb9 (diff)
downloadgnome-logs-e409919dffb83c758ab96a0f3d85eaa150808c44.tar.gz
Parse messages from the systemd catalog
Use catalogs to explain messages. To implement this feature, I use strtok function to parse the message named result->catalog, which exists in the project. For instance, I use a whitespace to get the field labels and ignore them. Then I use "\n" to get the detailed message for the current field. I also use dim-label style class for these field labels. https://bugzilla.gnome.org/show_bug.cgi?id=709153
Diffstat (limited to 'data/gl-eventviewdetail.ui')
-rw-r--r--data/gl-eventviewdetail.ui145
1 files changed, 142 insertions, 3 deletions
diff --git a/data/gl-eventviewdetail.ui b/data/gl-eventviewdetail.ui
index 175e989..35f31c6 100644
--- a/data/gl-eventviewdetail.ui
+++ b/data/gl-eventviewdetail.ui
@@ -187,11 +187,15 @@
</packing>
</child>
<child>
- <object class="GtkLabel" id="catalog_label">
- <property name="visible">True</property>
+ <object class="GtkLabel" id="subject_field_label">
+ <property name="visible">False</property>
+ <property name="no_show_all">True</property>
<property name="can_focus">False</property>
+ <property name="halign">end</property>
+ <property name="label" translatable="yes">Subject</property>
<style>
- <class name="detail-catalog"/>
+ <class name="detail-field-label"/>
+ <class name="dim-label"/>
</style>
</object>
<packing>
@@ -199,6 +203,141 @@
<property name="top_attach">5</property>
</packing>
</child>
+ <child>
+ <object class="GtkLabel" id="subject_label">
+ <property name="visible">False</property>
+ <property name="no_show_all">True</property>
+ <property name="can_focus">False</property>
+ <property name="halign">start</property>
+ <property name="selectable">True</property>
+ <style>
+ <class name="detail-subject"/>
+ <class name="event-monospace"/>
+ </style>
+ </object>
+ <packing>
+ <property name="left_attach">1</property>
+ <property name="top_attach">5</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkLabel" id="definedby_field_label">
+ <property name="visible">False</property>
+ <property name="no_show_all">True</property>
+ <property name="can_focus">False</property>
+ <property name="halign">end</property>
+ <property name="label" translatable="yes">Defined By</property>
+ <style>
+ <class name="detail-field-label"/>
+ <class name="dim-label"/>
+ </style>
+ </object>
+ <packing>
+ <property name="left_attach">0</property>
+ <property name="top_attach">6</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkLabel" id="definedby_label">
+ <property name="visible">False</property>
+ <property name="no_show_all">True</property>
+ <property name="can_focus">False</property>
+ <property name="halign">start</property>
+ <property name="selectable">True</property>
+ <style>
+ <class name="detail-definedby"/>
+ <class name="event-monospace"/>
+ </style>
+ </object>
+ <packing>
+ <property name="left_attach">1</property>
+ <property name="top_attach">6</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkLabel" id="support_field_label">
+ <property name="visible">False</property>
+ <property name="no_show_all">True</property>
+ <property name="can_focus">False</property>
+ <property name="halign">end</property>
+ <property name="label" translatable="yes">Support</property>
+ <style>
+ <class name="detail-field-label"/>
+ <class name="dim-label"/>
+ </style>
+ </object>
+ <packing>
+ <property name="left_attach">0</property>
+ <property name="top_attach">7</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkLabel" id="support_label">
+ <property name="visible">False</property>
+ <property name="no_show_all">True</property>
+ <property name="can_focus">False</property>
+ <property name="halign">start</property>
+ <property name="selectable">True</property>
+ <style>
+ <class name="detail-support"/>
+ <class name="event-monospace"/>
+ </style>
+ </object>
+ <packing>
+ <property name="left_attach">1</property>
+ <property name="top_attach">7</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkLabel" id="documentation_field_label">
+ <property name="visible">False</property>
+ <property name="no_show_all">True</property>
+ <property name="can_focus">False</property>
+ <property name="halign">end</property>
+ <property name="label" translatable="yes">Documentation</property>
+ <style>
+ <class name="detail-field-label"/>
+ <class name="dim-label"/>
+ </style>
+ </object>
+ <packing>
+ <property name="left_attach">0</property>
+ <property name="top_attach">8</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkLabel" id="documentation_label">
+ <property name="visible">False</property>
+ <property name="no_show_all">True</property>
+ <property name="can_focus">False</property>
+ <property name="halign">start</property>
+ <property name="selectable">True</property>
+ <style>
+ <class name="detail-documentation"/>
+ <class name="event-monospace"/>
+ </style>
+ </object>
+ <packing>
+ <property name="left_attach">1</property>
+ <property name="top_attach">8</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkLabel" id="detailed_message_label">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="halign">start</property>
+ <property name="selectable">True</property>
+ <style>
+ <class name="detail-message"/>
+ </style>
+ </object>
+ <packing>
+ <property name="left_attach">0</property>
+ <property name="top_attach">9</property>
+ <property name="width">2</property>
+ </packing>
+ </child>
</object>
</child>
</template>