~ubuntu-branches/ubuntu/trusty/hud/trusty-updates

« back to all changes in this revision

Viewing changes to libhud-client/connection.c

  • Committer: Package Import Robot
  • Author(s): Ubuntu daily release
  • Date: 2014-01-20 19:43:59 UTC
  • mfrom: (1.1.26)
  • Revision ID: package-import@ubuntu.com-20140120194359-jxxxqtd4ql9elvpf
Tags: 13.10.1+14.04.20140120-0ubuntu1
* New rebuild forced
* Automatic snapshot from revision 362

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
#include "connection.h"
24
24
#include "service-iface.h"
25
25
 
26
 
#include "shared-values.h"
 
26
#include "common/shared-values.h"
27
27
 
28
28
struct _HudClientConnectionPrivate {
29
29
        _HudServiceComCanonicalHud * proxy;
41
41
enum {
42
42
        PROP_0 = 0,
43
43
        PROP_ADDRESS,
44
 
        PROP_PATH,
 
44
        PROP_PATH
45
45
};
46
46
 
47
47
#define PROP_ADDRESS_S  "address"
56
56
static void get_property (GObject * obj, guint id, GValue * value, GParamSpec * pspec);
57
57
static void name_owner_changed (GObject * object, GParamSpec * pspec, gpointer user_data);
58
58
 
59
 
G_DEFINE_TYPE (HudClientConnection, hud_client_connection, G_TYPE_OBJECT);
 
59
G_DEFINE_TYPE (HudClientConnection, hud_client_connection, G_TYPE_OBJECT)
60
60
 
61
61
static guint signal_connection_status = 0;
62
62
 
121
121
}
122
122
 
123
123
static void
124
 
set_property (GObject * obj, guint id, const GValue * value, GParamSpec * pspec)
 
124
set_property (GObject * obj, guint id, const GValue * value, G_GNUC_UNUSED GParamSpec * pspec)
125
125
{
126
126
        HudClientConnection * self = HUD_CLIENT_CONNECTION(obj);
127
127
 
143
143
}
144
144
 
145
145
static void
146
 
get_property (GObject * obj, guint id, GValue * value, GParamSpec * pspec)
 
146
get_property (GObject * obj, guint id, GValue * value, G_GNUC_UNUSED GParamSpec * pspec)
147
147
{
148
148
        HudClientConnection * self = HUD_CLIENT_CONNECTION(obj);
149
149
 
301
301
 * Return value: (transfer full): A new #HudClientConnection
302
302
 */
303
303
HudClientConnection *
304
 
hud_client_connection_new (gchar * dbus_address, gchar * dbus_path)
 
304
hud_client_connection_new (const gchar * dbus_address, const gchar * dbus_path)
305
305
{
306
306
        return HUD_CLIENT_CONNECTION(g_object_new(HUD_CLIENT_TYPE_CONNECTION,
307
307
                        PROP_ADDRESS_S, dbus_address,
372
372
        data->cb = cb;
373
373
        data->user_data = user_data;
374
374
 
375
 
        return _hud_service_com_canonical_hud_call_create_query(connection->priv->proxy,
 
375
        _hud_service_com_canonical_hud_call_create_query(connection->priv->proxy,
376
376
                query,
377
377
                connection->priv->cancellable,
378
378
                new_query_complete,