[gtk+/wip/matthiasc/help-overlay] Add an automatic help overlay to gtk3-widget-factory
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/matthiasc/help-overlay] Add an automatic help overlay to gtk3-widget-factory
- Date: Wed, 21 Oct 2015 04:16:01 +0000 (UTC)
commit 0d1cbcda6ea5ea35b6609d76f8a0ec7e5663835d
Author: Matthias Clasen <mclasen redhat com>
Date: Wed Oct 21 00:14:38 2015 -0400
Add an automatic help overlay to gtk3-widget-factory
This is just to verify that the resource loading works.
The help overlay still needs to get populated properly.
demos/widget-factory/Makefile.am | 1 +
demos/widget-factory/help-overlay.ui | 22 +++++++++++++++++++++
demos/widget-factory/widget-factory.gresource.xml | 3 ++
3 files changed, 26 insertions(+), 0 deletions(-)
---
diff --git a/demos/widget-factory/Makefile.am b/demos/widget-factory/Makefile.am
index bc08f4b..a6bfbdc 100644
--- a/demos/widget-factory/Makefile.am
+++ b/demos/widget-factory/Makefile.am
@@ -64,6 +64,7 @@ EXTRA_DIST += \
widget-factory.ui \
widget-factory.css \
menus.ui \
+ help-overlay.ui \
widget-factory.gresource.xml \
data/source.svg \
data/symbolic-source.svg
diff --git a/demos/widget-factory/help-overlay.ui b/demos/widget-factory/help-overlay.ui
new file mode 100644
index 0000000..cb79b75
--- /dev/null
+++ b/demos/widget-factory/help-overlay.ui
@@ -0,0 +1,22 @@
+<interface>
+ <object class="GtkShortcutsWindow" id="help_overlay">
+ <child>
+ <object class="GtkShortcutsSection">
+ <property name="visible">1</property>
+ <child>
+ <object class="GtkShortcutsGroup">
+ <property name="visible">1</property>
+ <property name="title">Group</property>
+ <child>
+ <object class="GtkShortcutsShortcut">
+ <property name="visible">1</property>
+ <property name="accelerator">1</property>
+ <property name="title">One</property>
+ </object>
+ </child>
+ </object>
+ </child>
+ </object>
+ </child>
+ </object>
+</interface>
diff --git a/demos/widget-factory/widget-factory.gresource.xml
b/demos/widget-factory/widget-factory.gresource.xml
index 0a051e5..c709f59 100644
--- a/demos/widget-factory/widget-factory.gresource.xml
+++ b/demos/widget-factory/widget-factory.gresource.xml
@@ -9,4 +9,7 @@
<gresource prefix="/org/gtk/WidgetFactory/gtk">
<file preprocess="xml-stripblanks">menus.ui</file>
</gresource>
+ <gresource prefix="/org/gtk/WidgetFactory/gtk">
+ <file preprocess="xml-stripblanks">help-overlay.ui</file>
+ </gresource>
</gresources>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]