[gnome-maps] Add busyMarker module
- From: Jonas Danielsson <jonasdn src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-maps] Add busyMarker module
- Date: Sat, 31 Jan 2015 23:49:38 +0000 (UTC)
commit 55269956ac19ecfd95f9a3a938d6768b41f7b0a2
Author: Jonas Danielsson <jonas threetimestwo org>
Date: Tue Dec 16 04:26:22 2014 -0500
Add busyMarker module
https://bugzilla.gnome.org/show_bug.cgi?id=741591
data/org.gnome.Maps.data.gresource.xml | 1 +
data/ui/busy-marker.ui | 26 ++++++++++++++++++++++++++
src/busyMarker.js | 28 ++++++++++++++++++++++++++++
src/org.gnome.Maps.src.gresource.xml | 1 +
4 files changed, 56 insertions(+), 0 deletions(-)
---
diff --git a/data/org.gnome.Maps.data.gresource.xml b/data/org.gnome.Maps.data.gresource.xml
index 269dace..72bc1e9 100644
--- a/data/org.gnome.Maps.data.gresource.xml
+++ b/data/org.gnome.Maps.data.gresource.xml
@@ -3,6 +3,7 @@
<gresource prefix="/org/gnome/Maps">
<file preprocess="xml-stripblanks">ui/account-row.ui</file>
<file preprocess="xml-stripblanks">ui/app-menu.ui</file>
+ <file preprocess="xml-stripblanks">ui/busy-marker.ui</file>
<file preprocess="xml-stripblanks">ui/check-in-dialog.ui</file>
<file preprocess="xml-stripblanks">ui/context-menu.ui</file>
<file preprocess="xml-stripblanks">ui/favorites-popover.ui</file>
diff --git a/data/ui/busy-marker.ui b/data/ui/busy-marker.ui
new file mode 100644
index 0000000..601ab2b
--- /dev/null
+++ b/data/ui/busy-marker.ui
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<interface>
+ <!-- interface-requires gtk+ 3.10 -->
+ <template class= "Gjs_BusyMarker" parent="GtkFrame">
+ <property name="visible">False</property>
+ <property name="no_show_all">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..af0c844
--- /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/ui/busy-marker.ui'
+});
diff --git a/src/org.gnome.Maps.src.gresource.xml b/src/org.gnome.Maps.src.gresource.xml
index 33bc2b1..f8c8bdf 100644
--- a/src/org.gnome.Maps.src.gresource.xml
+++ b/src/org.gnome.Maps.src.gresource.xml
@@ -3,6 +3,7 @@
<gresource prefix="/org/gnome/Maps/js">
<file>accountListBox.js</file>
<file>application.js</file>
+ <file>busyMarker.js</file>
<file>checkIn.js</file>
<file>checkInDialog.js</file>
<file>contextMenu.js</file>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]