Commit d9c4c50c authored by Jussi Kukkonen's avatar Jussi Kukkonen

remove old files, change version to 0.10

preparing to push to freedesktop.org...
parent 68c3dcdd
Keith Preston <keithpre@gmail.com>
Jussi Kukkonen
Jussi Kukkonen <jku@o-hand.com>
Iain Holmes <Iain@openedhand.com>
<oaf_info>
<oaf_server iid="OAFIID:GeoclueApplet_Factory" type="exe"
location="/usr/lib/gnome-panel/geoclue-applet">
<oaf_attribute name="repo_ids" type="stringv">
<item value="IDL:Bonobo/GenericFactory:1.0"/>
<item value="IDL:Bonobo/Unknown:1.0"/>
</oaf_attribute>
<oaf_attribute name="name" type="string" value="Geoclue Applet Factory"/>
<oaf_attribute name="description" type="string" value="Factory to create the geoclue applet"/>
</oaf_server>
<oaf_server iid="OAFIID:GeoclueApplet" type="factory"
location="OAFIID:GeoclueApplet_Factory">
<oaf_attribute name="repo_ids" type="stringv">
<item value="IDL:GNOME/Vertigo/PanelAppletShell:1.0"/>
<item value="IDL:Bonobo/Control:1.0"/>
<item value="IDL:Bonobo/Unknown:1.0"/>
</oaf_attribute>
<oaf_attribute name="name" type="string" value="Geoclue Applet"/>
<oaf_attribute name="description" type="string" value="A geoclue applet"/>
<oaf_attribute name="panel:category" type="string" value="Accessories"/>
<oaf_attribute name="panel:icon" type="string" value="geoclue.png"/>
</oaf_server>
</oaf_info>
\ No newline at end of file
#FIX ME remove hard coded paths
bin_PROGRAMS = geoclue-applet
bindir = /usr/lib/gnome-panel
geoclue_applet_SOURCES = geoclue_applet.c
AM_CPPFLAGS = $(APPLET_CFLAGS) $(DEPS_CFLAGS) -I$(top_srcdir)
AM_LDFLAGS = $(APPLET_LIBS) $(DEPS_LIBS) $(top_builddir)/geoclue/libgeoclue.la
EXTRA_DIST = \
geoclue.png \
GNOME_geoclue.server
pixdir = /usr/share/pixmaps
pix_DATA = geoclue.png
bonobodir = /usr/lib/bonobo/servers
bonobo_DATA = GNOME_geoclue.server
#include <string.h>
#include <panel-applet.h>
#include <gtk/gtkimage.h>
#include <geoclue/position.h>
#include <glib.h>
static gboolean
on_button_press (GtkWidget *event_box,
GdkEventButton *event,
gpointer data)
{
static int window_shown;
static GtkWidget *window, *label;
/* Don't react to anything other than the left mouse button;
return FALSE so the event is passed to the default handler */
if (event->button != 1)
return FALSE;
if (!window_shown) {
window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
geoclue_position_init();
gdouble lat, lon;
geoclue_position_current_position(&lat, &lon);
gchar* text = g_strdup_printf("You are at %f %f\n", lat, lon);
label = GTK_WIDGET(gtk_label_new (text));
free(text);
geoclue_position_close();
gtk_container_add (GTK_CONTAINER (window), label);
gtk_widget_show_all (window);
}
else
gtk_widget_hide (GTK_WIDGET (window));
window_shown = !window_shown;
return TRUE;
}
static gboolean
geoclue_applet_fill (PanelApplet *applet,
const gchar *iid,
gpointer data)
{
GtkWidget *image;
if (strcmp (iid, "OAFIID:GeoclueApplet") != 0)
return FALSE;
image = gtk_image_new_from_file ("/usr/share/pixmaps/geoclue.png");
GtkWidget *event_box;
event_box = gtk_event_box_new ();
gtk_container_add (GTK_CONTAINER (event_box), image);
g_signal_connect (G_OBJECT (event_box),
"button_press_event",
G_CALLBACK (on_button_press),
image);
gtk_container_add (GTK_CONTAINER (applet), event_box);
gtk_widget_show_all (GTK_WIDGET (applet));
return TRUE;
}
PANEL_APPLET_BONOBO_FACTORY ("OAFIID:GeoclueApplet_Factory",
PANEL_TYPE_APPLET,
"The Geoclue Applet",
"0",
geoclue_applet_fill,
NULL);
AC_PREREQ(2.59)
AC_INIT(geoclue, 0.1, http://geoclue.freedesktop.org)
AC_INIT(geoclue, 0.10, http://geoclue.freedesktop.org)
AC_CONFIG_SRCDIR(geoclue/gc-iface-geoclue.c)
AM_CONFIG_HEADER(config.h)
AM_INIT_AUTOMAKE([1.9 foreign])
GEOCLUE_VERSION=0.1
GEOCLUE_VERSION=0.10
AC_PROG_CC
AC_ISC_POSIX
......
schema_files = geoclue.schemas
schemadir = @GCONF_SCHEMA_FILE_DIR@
schema_DATA = $(schema_files)
install-data-local:
if GCONF_SCHEMAS_INSTALL
GCONF_CONFIG_SOURCE=$(GCONF_SCHEMA_CONFIG_SOURCE) $(GCONFTOOL) --makefile-install-rule $(top_srcdir)/data/$(schema_DATA)
pkill -HUP gconfd-2 > /dev/null 2>&1 || true
endif
uninstall-local:
if GCONF_SCHEMAS_INSTALL
GCONF_CONFIG_SOURCE=$(GCONF_SCHEMA_CONFIG_SOURCE) $(GCONFTOOL) --makefile-uninstall-rule $(top_srcdir)/data/$(schema_DATA)
pkill -HUP gconfd-2 > /dev/null 2>&1 || true
endif
EXTRA_DIST = $(schema_DATA)
<gconfschemafile>
<schemalist>
<!-- position -->
<schema>
<key>/schemas/apps/geoclue/position/defaultservice</key>
<applyto>/apps/geoclue/position/defaultservice</applyto>
<owner>geoclue</owner>
<type>string</type>
<default>org.freedesktop.geoclue.position.hostip</default>
<locale name="C">
<short>position provider service</short>
<long>DBus service of default geoclue position provider</long>
</locale>
</schema>
<schema>
<key>/schemas/apps/geoclue/position/defaultpath</key>
<applyto>/apps/geoclue/position/defaultpath</applyto>
<owner>geoclue</owner>
<type>string</type>
<default>/org/freedesktop/geoclue/position/hostip</default>
<locale name="C">
<short>position provider path</short>
<long>DBus path of default geoclue position provider</long>
</locale>
</schema>
<!-- map -->
<schema>
<key>/schemas/apps/geoclue/map/defaultservice</key>
<applyto>/apps/geoclue/map/defaultservice</applyto>
<owner>geoclue</owner>
<type>string</type>
<default>org.freedesktop.geoclue.map.yahoo</default>
<locale name="C">
<short>map provider service</short>
<long>DBus service of default geoclue map provider</long>
</locale>
</schema>
<schema>
<key>/schemas/apps/geoclue/map/defaultpath</key>
<applyto>/apps/geoclue/map/defaultpath</applyto>
<owner>geoclue</owner>
<type>string</type>
<default>/org/freedesktop/geoclue/map/yahoo</default>
<locale name="C">
<short>map provider path</short>
<long>DBus path of default geoclue map provider</long>
</locale>
</schema>
<!-- geocode -->
<schema>
<key>/schemas/apps/geoclue/geocode/defaultservice</key>
<applyto>/apps/geoclue/geocode/defaultservice</applyto>
<owner>geoclue</owner>
<type>string</type>
<default>org.freedesktop.geoclue.geocode.yahoo</default>
<locale name="C">
<short>geocode provider service</short>
<long>DBus service of default geoclue geocode provider</long>
</locale>
</schema>
<schema>
<key>/schemas/apps/geoclue/geocode/defaultpath</key>
<applyto>/apps/geoclue/geocode/defaultpath</applyto>
<owner>geoclue</owner>
<type>string</type>
<default>/org/freedesktop/geoclue/geocode/yahoo</default>
<locale name="C">
<short>geocode provider path</short>
<long>DBus path of default geoclue geocode provider</long>
</locale>
</schema>
<!-- find -->
<schema>
<key>/schemas/apps/geoclue/find/defaultservice</key>
<applyto>/apps/geoclue/find/defaultservice</applyto>
<owner>geoclue</owner>
<type>string</type>
<default>org.freedesktop.geoclue.find.yahoo</default>
<locale name="C">
<short>find provider service</short>
<long>DBus service of default geoclue find provider</long>
</locale>
</schema>
<schema>
<key>/schemas/apps/geoclue/find/defaultpath</key>
<applyto>/apps/geoclue/find/defaultpath</applyto>
<owner>geoclue</owner>
<type>string</type>
<default>/org/freedesktop/geoclue/find/yahoo</default>
<locale name="C">
<short>find provider path</short>
<long>DBus path of default geoclue find provider</long>
</locale>
</schema>
</schemalist>
</gconfschemafile>
# $Id: Makefile.am 1033 2006-06-19 21:53:48Z lennart $
#
# This file is part of PulseAudio.
#
# PulseAudio is free software; you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# PulseAudio 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 Lesser General Public License
# along with PulseAudio; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
# USA.
doxygen: doxygen.conf
doxygen $<
clean-local:
-rm -rf html
.PHONY: all doxygen
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment