[gnome-maps/wip/contacts: 4/7] Add busyMarker module
- From: Jonas Danielsson <jonasdn src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-maps/wip/contacts: 4/7] Add busyMarker module
- Date: Tue, 16 Dec 2014 09:57:02 +0000 (UTC)
commit b8faefd2571eb824162b8e69363a05ae5f4c1f7e
Author: Jonas Danielsson <jonas threetimestwo org>
Date: Tue Dec 16 04:26:22 2014 -0500
Add busyMarker module
src/busy-marker.ui | 25 +++++++++++++++++++++++++
src/busyMarker.js | 28 ++++++++++++++++++++++++++++
src/gnome-maps.data.gresource.xml | 1 +
src/gnome-maps.js.gresource.xml | 1 +
4 files changed, 55 insertions(+), 0 deletions(-)
---
diff --git a/src/busy-marker.ui b/src/busy-marker.ui
new file mode 100644
index 0000000..5e87932
--- /dev/null
+++ b/src/busy-marker.ui
@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<interface>
+ <!-- interface-requires gtk+ 3.10 -->
+ <template class= "Gjs_BusyMarker" parent="GtkFrame">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="width_request">150</property>
+ <property name="height_request">100</property>
+ <property name="expand">False</property>
+ <property name="shadow_type">in</property>
+ <property name="valign">center</property>
+ <property name="halign">center</property>
+ <child>
+ <object class="GtkSpinner" id="spinner">
+ <property name="visible">True</property>
+ <property name="active">True</property>
+ <property name="width-request">32</property>
+ <property name="height-request">32</property>
+ <property name="can_focus">False</property>
+ <property name="valign">center</property>
+ <property name="halign">center</property>
+ </object>
+ </child>
+ </template>
+</interface>
diff --git a/src/busyMarker.js b/src/busyMarker.js
new file mode 100644
index 0000000..34da513
--- /dev/null
+++ b/src/busyMarker.js
@@ -0,0 +1,28 @@
+/* -*- Mode: JS2; indent-tabs-mode: nil; js2-basic-offset: 4 -*- */
+/* vim: set et ts=4 sw=4: */
+/*
+ * GNOME Maps is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by the
+ * Free Software Foundation; either version 2 of the License, or (at your
+ * option) any later version.
+ *
+ * GNOME Maps is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
+ * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
+ * for more details.
+ *
+ * You should have received a copy of the GNU General Public License along
+ * with GNOME Maps; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+ *
+ * Author: Jonas Danielsson <jonas threetimestwo org>
+ */
+
+const Gtk = imports.gi.Gtk;
+const Lang = imports.lang;
+
+const BusyMarker = new Lang.Class({
+ Name: 'BusyMarker',
+ Extends: Gtk.Frame,
+ Template: 'resource:///org/gnome/maps/busy-marker.ui'
+});
diff --git a/src/gnome-maps.data.gresource.xml b/src/gnome-maps.data.gresource.xml
index ee59325..05efd0d 100644
--- a/src/gnome-maps.data.gresource.xml
+++ b/src/gnome-maps.data.gresource.xml
@@ -2,6 +2,7 @@
<gresources>
<gresource prefix="/org/gnome/maps">
<file preprocess="xml-stripblanks">app-menu.ui</file>
+ <file preprocess="xml-stripblanks">busy-marker.ui</file>
<file preprocess="xml-stripblanks">favorites-popover.ui</file>
<file preprocess="xml-stripblanks">place-entry.ui</file>
<file preprocess="xml-stripblanks">main-window.ui</file>
diff --git a/src/gnome-maps.js.gresource.xml b/src/gnome-maps.js.gresource.xml
index da355ec..bd9654a 100644
--- a/src/gnome-maps.js.gresource.xml
+++ b/src/gnome-maps.js.gresource.xml
@@ -3,6 +3,7 @@
<gresource prefix="/org/gnome/maps">
<file>accountListBox.js</file>
<file>application.js</file>
+ <file>busyMarker.js</file>
<file>checkIn.js</file>
<file>checkInDialog.js</file>
<file>config.js</file>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]