From 18daf0a95de67cbc3e1789c1d552911b06668213 Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Fri, 6 Feb 2009 00:29:51 +0100 Subject: releasing version 0.1~ppa29 --- debian/changelog | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/debian/changelog b/debian/changelog index 32dbed4..44fdb47 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +indicator-applet (0.1~ppa29) intrepid; urgency=low + + * Bumping for PPA as forgot to run autogen.sh + + -- Ted Gould Fri, 06 Feb 2009 00:29:11 +0100 + indicator-applet (0.1~ppa28) intrepid; urgency=low * Updating the server interface to have signals for show and hide -- cgit v1.2.3 From e2fae3b7987703033c61b454999be415a73e5e9e Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Fri, 6 Feb 2009 10:37:30 +0100 Subject: Removing GObject introspection for now --- libindicate/Makefile.am | 54 ++++++++++++++++++++++++------------------------- 1 file changed, 27 insertions(+), 27 deletions(-) diff --git a/libindicate/Makefile.am b/libindicate/Makefile.am index 3ceba08..b06f644 100644 --- a/libindicate/Makefile.am +++ b/libindicate/Makefile.am @@ -71,31 +71,31 @@ listener-marshal.c: listener-marshal.list --prefix=indicate_listener_marshal $(srcdir)/listener-marshal.list \ > listener-marshal.c -pkgconfig_DATA = indicate.pc -pkgconfigdir = $(libdir)/pkgconfig - -gobjectintrospection_gir_DATA = \ - Indicate-0.1.gir -gobjectintrospection_girdir = $(datadir)/gir - -gobjectintrospection_type_DATA = \ - Indicate-0.1.typelib -gobjectintrospection_typedir = $(libdir)/girepository - -irscanner_headers = $(patsubst %,$(srcdir)/%,$(indicate_headers)) -Indicate-0.1.gir: $(irscanner_headers) - $(G_IR_SCANNER) \ - -v --namespace Indicate \ - --nsversion=0.1 \ - --add-include-path=$(srcdir) \ - --include=GObject-2.0 \ - --include=GLib-2.0 \ - --include=GdkPixbuf-2.0 \ - --library=indicate --pkg indicate \ - --output Indicate-0.1.gir $(irscanner_headers) - -Indicate-0.1.typelib: Indicate-0.1.gir - $(G_IR_COMPILER) \ - --includedir=$(srcdir) Indicate-0.1.gir \ - -o Indicate-0.1.typelib +#pkgconfig_DATA = indicate.pc +#pkgconfigdir = $(libdir)/pkgconfig +# +#gobjectintrospection_gir_DATA = \ +# Indicate-0.1.gir +#gobjectintrospection_girdir = $(datadir)/gir +# +#gobjectintrospection_type_DATA = \ +# Indicate-0.1.typelib +#gobjectintrospection_typedir = $(libdir)/girepository +# +#irscanner_headers = $(patsubst %,$(srcdir)/%,$(indicate_headers)) +#Indicate-0.1.gir: $(irscanner_headers) +# $(G_IR_SCANNER) \ +# -v --namespace Indicate \ +# --nsversion=0.1 \ +# --add-include-path=$(srcdir) \ +# --include=GObject-2.0 \ +# --include=GLib-2.0 \ +# --include=GdkPixbuf-2.0 \ +# --library=indicate --pkg indicate \ +# --output Indicate-0.1.gir $(irscanner_headers) +# +#Indicate-0.1.typelib: Indicate-0.1.gir +# $(G_IR_COMPILER) \ +# --includedir=$(srcdir) Indicate-0.1.gir \ +# -o Indicate-0.1.typelib -- cgit v1.2.3 From 07f61bd928982d56776c675f3d3a1e5cfa954485 Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Fri, 6 Feb 2009 10:41:06 +0100 Subject: releasing version 0.1~ppa30 --- debian/changelog | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/debian/changelog b/debian/changelog index 44fdb47..4f8e868 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,10 @@ +indicator-applet (0.1~ppa30) intrepid; urgency=low + + * Removing GObject introspection, so that it will build in + the PPA. Will put back later. + + -- Ted Gould Fri, 06 Feb 2009 10:39:59 +0100 + indicator-applet (0.1~ppa29) intrepid; urgency=low * Bumping for PPA as forgot to run autogen.sh -- cgit v1.2.3 From 720e2502b158273efe62d5d6da72219b80c95a3f Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Fri, 6 Feb 2009 11:40:28 +0100 Subject: releasing version 0.1~ppa31 --- debian/changelog | 6 ++++++ debian/libindicate0.install | 2 -- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/debian/changelog b/debian/changelog index 4f8e868..ea4ec21 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +indicator-applet (0.1~ppa31) intrepid; urgency=low + + * Ah, silly packaging stuff. I hate packaging. + + -- Ted Gould Fri, 06 Feb 2009 11:39:04 +0100 + indicator-applet (0.1~ppa30) intrepid; urgency=low * Removing GObject introspection, so that it will build in diff --git a/debian/libindicate0.install b/debian/libindicate0.install index a83aa8a..0618a58 100644 --- a/debian/libindicate0.install +++ b/debian/libindicate0.install @@ -1,3 +1 @@ debian/tmp/usr/lib/libindicate.so.* -debian/tmp/usr/share/gir/ -debian/tmp/usr/lib/girepository/ -- cgit v1.2.3 From 37a0956068737430827119a939ecf92170aba75d Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Fri, 6 Feb 2009 14:15:41 +0100 Subject: releasing version 0.1~ppa32 --- debian/changelog | 6 ++++++ libindicate/Makefile.am | 6 +++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/debian/changelog b/debian/changelog index ea4ec21..2b4e649 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +indicator-applet (0.1~ppa32) intrepid; urgency=low + + * Adding back in the package config data + + -- Ted Gould Fri, 06 Feb 2009 14:14:33 +0100 + indicator-applet (0.1~ppa31) intrepid; urgency=low * Ah, silly packaging stuff. I hate packaging. diff --git a/libindicate/Makefile.am b/libindicate/Makefile.am index b06f644..0bf400c 100644 --- a/libindicate/Makefile.am +++ b/libindicate/Makefile.am @@ -71,9 +71,9 @@ listener-marshal.c: listener-marshal.list --prefix=indicate_listener_marshal $(srcdir)/listener-marshal.list \ > listener-marshal.c -#pkgconfig_DATA = indicate.pc -#pkgconfigdir = $(libdir)/pkgconfig -# +pkgconfig_DATA = indicate.pc +pkgconfigdir = $(libdir)/pkgconfig + #gobjectintrospection_gir_DATA = \ # Indicate-0.1.gir #gobjectintrospection_girdir = $(datadir)/gir -- cgit v1.2.3 From e5e968c21428fae002dc047e9c7ea931bbd25819 Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Fri, 6 Feb 2009 14:36:21 +0100 Subject: releasing version 0.1~ppa33 --- debian/changelog | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/debian/changelog b/debian/changelog index 2b4e649..d5ad21f 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +indicator-applet (0.1~ppa33) intrepid; urgency=low + + * Version bump, autogen.sh + + -- Ted Gould Fri, 06 Feb 2009 14:35:38 +0100 + indicator-applet (0.1~ppa32) intrepid; urgency=low * Adding back in the package config data -- cgit v1.2.3 From f308079a76c6a7aed8a5fcebf6a5241330adb636 Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Fri, 6 Feb 2009 15:03:38 +0100 Subject: releasing version 0.1~ppa34 --- debian/changelog | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/debian/changelog b/debian/changelog index d5ad21f..92971f4 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,10 @@ +indicator-applet (0.1~ppa34) intrepid; urgency=low + + * Ah, listener fixes too. Make everything get together and + use the new APIs. + + -- Ted Gould Fri, 06 Feb 2009 15:02:57 +0100 + indicator-applet (0.1~ppa33) intrepid; urgency=low * Version bump, autogen.sh -- cgit v1.2.3 From d42c9b5ee091596357efe8e1f29d0c16173dc068 Mon Sep 17 00:00:00 2001 From: Neil Jagdish Patel Date: Mon, 9 Feb 2009 15:25:13 +0000 Subject: Add the indicate_server_hide function --- libindicate/server.c | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/libindicate/server.c b/libindicate/server.c index 6139fd0..a90fbe8 100644 --- a/libindicate/server.c +++ b/libindicate/server.c @@ -40,6 +40,7 @@ static guint signals[LAST_SIGNAL] = { 0 }; typedef struct _IndicateServerPrivate IndicateServerPrivate; struct _IndicateServerPrivate { + DBusGConnection *connection; gchar * path; GSList * indicators; gboolean visible; @@ -265,6 +266,8 @@ indicate_server_show (IndicateServer * server) connection = dbus_g_bus_get(DBUS_BUS_SESSION, NULL); + priv->connection = connection; + dbus_g_connection_register_g_object(connection, priv->path, G_OBJECT(server)); @@ -275,6 +278,25 @@ indicate_server_show (IndicateServer * server) return; } +void +indicate_server_hide (IndicateServer * server) +{ + g_return_if_fail(INDICATE_IS_SERVER(server)); + IndicateServerPrivate * priv = INDICATE_SERVER_GET_PRIVATE(server); + + if (priv->visible) + return; + + priv->visible = FALSE; + + g_signal_emit(server, signals[SERVER_HIDE], 0, "", TRUE); + + dbus_g_connection_unref (priv->connection); + priv->connection = NULL; + + return; +} + static guint get_next_id (IndicateServer * server) { -- cgit v1.2.3 From eb7ca97f4b466902ac2040f1241badb7ecaa3c84 Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Mon, 9 Feb 2009 10:58:05 -0600 Subject: Some formatting, reusing the private variable, making it so that hide sends the type and only sending a message of finalize if we're still visible. --- libindicate/server.c | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/libindicate/server.c b/libindicate/server.c index 84f7562..7daedc7 100644 --- a/libindicate/server.c +++ b/libindicate/server.c @@ -40,7 +40,7 @@ static guint signals[LAST_SIGNAL] = { 0 }; typedef struct _IndicateServerPrivate IndicateServerPrivate; struct _IndicateServerPrivate { - DBusGConnection *connection; + DBusGConnection *connection; gchar * path; GSList * indicators; gboolean visible; @@ -176,7 +176,9 @@ indicate_server_finalize (GObject * obj) IndicateServerPrivate * priv = INDICATE_SERVER_GET_PRIVATE(server); /* TODO: This probably shouldn't be as far down as finalize, but it's fine here. */ - g_signal_emit(server, signals[SERVER_HIDE], 0, priv->type ? priv->type : "", TRUE); + if (priv->visible) { + g_signal_emit(server, signals[SERVER_HIDE], 0, priv->type ? priv->type : "", TRUE); + } if (priv->path) { g_free(priv->path); @@ -262,13 +264,9 @@ indicate_server_show (IndicateServer * server) if (priv->visible) return; - DBusGConnection * connection; - - connection = dbus_g_bus_get(DBUS_BUS_SESSION, NULL); + priv->connection = dbus_g_bus_get(DBUS_BUS_SESSION, NULL); - priv->connection = connection; - - dbus_g_connection_register_g_object(connection, + dbus_g_connection_register_g_object(priv->connection, priv->path, G_OBJECT(server)); priv->visible = TRUE; @@ -287,12 +285,12 @@ indicate_server_hide (IndicateServer * server) if (priv->visible) return; - priv->visible = FALSE; + priv->visible = FALSE; - g_signal_emit(server, signals[SERVER_HIDE], 0, "", TRUE); + g_signal_emit(server, signals[SERVER_HIDE], 0, priv->type ? priv->type : "", TRUE); dbus_g_connection_unref (priv->connection); - priv->connection = NULL; + priv->connection = NULL; return; } -- cgit v1.2.3 From 50411f8937483d86f9425f1f06f346f559042ba4 Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Mon, 9 Feb 2009 10:59:57 -0600 Subject: Only emitting a changed signal on properties changed when the indicator is visible --- libindicate/indicator.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libindicate/indicator.c b/libindicate/indicator.c index b77d7d7..cf77316 100644 --- a/libindicate/indicator.c +++ b/libindicate/indicator.c @@ -255,7 +255,9 @@ set_property (IndicateIndicator * indicator, const gchar * key, const gchar * da /* If the value has changed or there is no value */ gchar * newkey = g_strdup(key); g_hash_table_insert(priv->properties, newkey, g_strdup(data)); - g_signal_emit(indicator, signals[MODIFIED], 0, newkey, TRUE); + if (indicate_indicator_is_visible(indicator)) { + g_signal_emit(indicator, signals[MODIFIED], 0, newkey, TRUE); + } } return; -- cgit v1.2.3 From 9d73c89bcac7a548614815c183295ee802fd27d7 Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Mon, 9 Feb 2009 11:02:01 -0600 Subject: releasing version 0.1~ppa35 --- debian/changelog | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/debian/changelog b/debian/changelog index 92971f4..306be6d 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,12 @@ +indicator-applet (0.1~ppa35) intrepid; urgency=low + + * Better use of type and sending it with signals. + * Making it so that the server hide function works better. + * Only sending property updates if the indicator is + visible. + + -- Ted Gould Mon, 09 Feb 2009 11:01:11 -0600 + indicator-applet (0.1~ppa34) intrepid; urgency=low * Ah, listener fixes too. Make everything get together and -- cgit v1.2.3