[bijiben/wip/sadiq/rewrite: 6/9] window: Add xml ui definitions
- From: Mohammed Sadiq <pksadiq src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [bijiben/wip/sadiq/rewrite: 6/9] window: Add xml ui definitions
- Date: Tue, 6 Mar 2018 07:14:13 +0000 (UTC)
commit 840fb9067f45533ca3490c7b78a476ba9cd18b70
Author: Mohammed Sadiq <sadiq sadiqpk org>
Date: Tue Feb 27 07:58:56 2018 +0530
window: Add xml ui definitions
src/resources/ui/bjb-window.ui | 83 ++++++++++++++++++++++++++++++++++++++++
1 files changed, 83 insertions(+), 0 deletions(-)
---
diff --git a/src/resources/ui/bjb-window.ui b/src/resources/ui/bjb-window.ui
new file mode 100644
index 0000000..c0d1ba0
--- /dev/null
+++ b/src/resources/ui/bjb-window.ui
@@ -0,0 +1,83 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<interface domain="bjb">
+ <!-- interface-requires gtk 3.10 -->
+ <template class="BjbWindow" parent="GtkApplicationWindow">
+ <property name="width-request">400</property>
+ <property name="height-request">300</property>
+ <signal name="configure-event" handler="bjb_window_configure_event" swapped="no"/>
+ <signal name="destroy" handler="bjb_window_destroy" swapped="no"/>
+
+ <!-- Headerbar -->
+ <child type="titlebar">
+ <object class="GtkHeaderBar">
+ <property name="title" translatable="yes">GNOME Notes</property>
+ <property name="subtitle" translatable="yes">Every detail matters</property>
+ <property name="visible">1</property>
+ <property name="can-focus">1</property>
+ <property name="show-close-button">1</property>
+
+ <!-- Menu Button -->
+ <child>
+ <object class="GtkMenuButton" id="menu_button">
+ <property name="visible">1</property>
+ <property name="direction">none</property>
+ <property name="menu-model">win_menu</property>
+ <accelerator key="F10" signal="clicked"/>
+ <child>
+ <object class="GtkImage">
+ <property name="visible">1</property>
+ <property name="icon-name">open-menu-symbolic</property>
+ </object>
+ </child>
+ </object> <!-- ./GtkMenuButton menu_button -->
+ <packing>
+ <property name="pack-type">end</property>
+ </packing>
+ </child>
+
+ </object> <!-- ./GtkHeaderBar -->
+ </child>
+
+ <child>
+ <object class="GtkGrid">
+ <property name="visible">1</property>
+ <child>
+ <object class="GdMainView" id="main_view">
+ <property name="visible">1</property>
+ <property name="model">list_store</property>
+ </object>
+ </child>
+ </object> <!-- ./GtkGrid -->
+ </child>
+ </template>
+
+ <menu id="win_menu">
+ <section>
+ <item>
+ <attribute name="label" translatable="yes">_About</attribute>
+ <attribute name="action">app.about</attribute>
+ </item>
+ </section>
+ <section>
+ <item>
+ <attribute name="label" translatable="yes">_Quit</attribute>
+ <attribute name="action">app.quit</attribute>
+ </item>
+ </section>
+ </menu>
+
+ <!-- List store for items (notes/notebooks) -->
+ <object class="GtkListStore" id="list_store">
+ <columns>
+ <column type="gchararray"/> <!-- urn -->
+ <column type="gchararray"/> <!-- uri -->
+ <column type="gchararray"/> <!-- item name -->
+ <column type="gchararray"/> <!-- author -->
+ <column type="GdkPixbuf"/> <!-- icon -->
+ <column type="gint64"/> <!-- mtime -->
+ <column type="gboolean"/> <!-- column selected state -->
+ <column type="guint"/> <!-- progress indicator value -->
+ </columns>
+ </object>
+
+</interface>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]