Logo Search packages:      
Sourcecode: unity version File versions  Download package

places-place-proxy.c

/* places-place-proxy.c generated by valac, the Vala compiler
 * generated from places-place-proxy.vala, do not modify */

/*
 * Copyright (C) 2010 Canonical Ltd
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 3 as
 * published by the Free Software Foundation.
 *
 * This program 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 this program.  If not, see <http://www.gnu.org/licenses/>.
 *
 * Authored by Neil Jagdish Patel <neil.patel@canonical.com>
 *
 */

#include <glib.h>
#include <glib-object.h>
#include <clutter/clutter.h>
#include <stdlib.h>
#include <string.h>
#include <dbus/dbus-glib-lowlevel.h>
#include <dbus/dbus-glib.h>
#include <clutk/clutk.h>


#define UNITY_PLACES_TYPE_PLACE (unity_places_place_get_type ())
#define UNITY_PLACES_PLACE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), UNITY_PLACES_TYPE_PLACE, UnityPlacesPlace))
#define UNITY_PLACES_PLACE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), UNITY_PLACES_TYPE_PLACE, UnityPlacesPlaceClass))
#define UNITY_PLACES_IS_PLACE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), UNITY_PLACES_TYPE_PLACE))
#define UNITY_PLACES_IS_PLACE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), UNITY_PLACES_TYPE_PLACE))
#define UNITY_PLACES_PLACE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), UNITY_PLACES_TYPE_PLACE, UnityPlacesPlaceClass))

typedef struct _UnityPlacesPlace UnityPlacesPlace;
typedef struct _UnityPlacesPlaceClass UnityPlacesPlaceClass;
typedef struct _UnityPlacesPlacePrivate UnityPlacesPlacePrivate;

#define UNITY_PLACES_TYPE_PLACE_PROXY (unity_places_place_proxy_get_type ())
#define UNITY_PLACES_PLACE_PROXY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), UNITY_PLACES_TYPE_PLACE_PROXY, UnityPlacesPlaceProxy))
#define UNITY_PLACES_PLACE_PROXY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), UNITY_PLACES_TYPE_PLACE_PROXY, UnityPlacesPlaceProxyClass))
#define UNITY_PLACES_IS_PLACE_PROXY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), UNITY_PLACES_TYPE_PLACE_PROXY))
#define UNITY_PLACES_IS_PLACE_PROXY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), UNITY_PLACES_TYPE_PLACE_PROXY))
#define UNITY_PLACES_PLACE_PROXY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), UNITY_PLACES_TYPE_PLACE_PROXY, UnityPlacesPlaceProxyClass))

typedef struct _UnityPlacesPlaceProxy UnityPlacesPlaceProxy;
typedef struct _UnityPlacesPlaceProxyClass UnityPlacesPlaceProxyClass;
typedef struct _UnityPlacesPlaceProxyPrivate UnityPlacesPlaceProxyPrivate;
#define _g_free0(var) (var = (g_free (var), NULL))
#define _dbus_g_connection_unref0(var) ((var == NULL) ? NULL : (var = (dbus_g_connection_unref (var), NULL)))
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))

#define UNITY_PLACES_VIEWS_TYPE_RESULTS_VIEW (unity_places_views_results_view_get_type ())
#define UNITY_PLACES_VIEWS_RESULTS_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), UNITY_PLACES_VIEWS_TYPE_RESULTS_VIEW, UnityPlacesViewsResultsView))
#define UNITY_PLACES_VIEWS_RESULTS_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), UNITY_PLACES_VIEWS_TYPE_RESULTS_VIEW, UnityPlacesViewsResultsViewClass))
#define UNITY_PLACES_VIEWS_IS_RESULTS_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), UNITY_PLACES_VIEWS_TYPE_RESULTS_VIEW))
#define UNITY_PLACES_VIEWS_IS_RESULTS_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), UNITY_PLACES_VIEWS_TYPE_RESULTS_VIEW))
#define UNITY_PLACES_VIEWS_RESULTS_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), UNITY_PLACES_VIEWS_TYPE_RESULTS_VIEW, UnityPlacesViewsResultsViewClass))

typedef struct _UnityPlacesViewsResultsView UnityPlacesViewsResultsView;
typedef struct _UnityPlacesViewsResultsViewClass UnityPlacesViewsResultsViewClass;

#define UNITY_PLACES_TYPE_PLACE_VIEW (unity_places_place_view_get_type ())
#define UNITY_PLACES_PLACE_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), UNITY_PLACES_TYPE_PLACE_VIEW, UnityPlacesPlaceView))
#define UNITY_PLACES_IS_PLACE_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), UNITY_PLACES_TYPE_PLACE_VIEW))
#define UNITY_PLACES_PLACE_VIEW_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), UNITY_PLACES_TYPE_PLACE_VIEW, UnityPlacesPlaceViewIface))

typedef struct _UnityPlacesPlaceView UnityPlacesPlaceView;
typedef struct _UnityPlacesPlaceViewIface UnityPlacesPlaceViewIface;

struct _UnityPlacesPlace {
      GObject parent_instance;
      UnityPlacesPlacePrivate * priv;
};

struct _UnityPlacesPlaceClass {
      GObjectClass parent_class;
      ClutterActor* (*get_view) (UnityPlacesPlace* self);
};

struct _UnityPlacesPlaceProxy {
      UnityPlacesPlace parent_instance;
      UnityPlacesPlaceProxyPrivate * priv;
};

struct _UnityPlacesPlaceProxyClass {
      UnityPlacesPlaceClass parent_class;
};

struct _UnityPlacesPlaceProxyPrivate {
      char* _dbus_name;
      char* _dbus_path;
      DBusGConnection* conn;
      DBusGProxy* service;
      CtkBox* view;
};

struct _UnityPlacesPlaceViewIface {
      GTypeInterface parent_iface;
      void (*init_with_properties) (UnityPlacesPlaceView* self, GHashTable* props);
};


static gpointer unity_places_place_proxy_parent_class = NULL;

GType unity_places_place_get_type (void);
GType unity_places_place_proxy_get_type (void);
#define UNITY_PLACES_PLACE_PROXY_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), UNITY_PLACES_TYPE_PLACE_PROXY, UnityPlacesPlaceProxyPrivate))
enum  {
      UNITY_PLACES_PLACE_PROXY_DUMMY_PROPERTY,
      UNITY_PLACES_PLACE_PROXY_DBUS_NAME,
      UNITY_PLACES_PLACE_PROXY_DBUS_PATH
};
UnityPlacesPlaceProxy* unity_places_place_proxy_new (const char* name, const char* icon_name, const char* comment, const char* dbus_name, const char* dbus_path);
UnityPlacesPlaceProxy* unity_places_place_proxy_construct (GType object_type, const char* name, const char* icon_name, const char* comment, const char* dbus_name, const char* dbus_path);
const char* unity_places_place_proxy_get_dbus_name (UnityPlacesPlaceProxy* self);
const char* unity_places_place_proxy_get_dbus_path (UnityPlacesPlaceProxy* self);
static void unity_places_place_proxy_on_view_changed (UnityPlacesPlaceProxy* self, DBusGProxy* s, GHashTable* view_properties);
static void _unity_places_place_proxy_on_view_changed_dynamic_ViewChanged0_ (DBusGProxy* _sender, GHashTable* view_properties, gpointer self);
void _dynamic_ViewChanged1_connect (gpointer obj, const char * signal_name, GCallback handler, gpointer data);
static void _dynamic_set_active0 (DBusGProxy* self, gboolean param1, GError** error);
static void unity_places_place_proxy_setup_service (UnityPlacesPlaceProxy* self);
UnityPlacesViewsResultsView* unity_places_views_results_view_new (void);
UnityPlacesViewsResultsView* unity_places_views_results_view_construct (GType object_type);
GType unity_places_views_results_view_get_type (void);
GType unity_places_place_view_get_type (void);
void unity_places_place_view_init_with_properties (UnityPlacesPlaceView* self, GHashTable* props);
static ClutterActor* unity_places_place_proxy_real_get_view (UnityPlacesPlace* base);
static void unity_places_place_proxy_set_dbus_name (UnityPlacesPlaceProxy* self, const char* value);
static void unity_places_place_proxy_set_dbus_path (UnityPlacesPlaceProxy* self, const char* value);
static GObject * unity_places_place_proxy_constructor (GType type, guint n_construct_properties, GObjectConstructParam * construct_properties);
static void unity_places_place_proxy_finalize (GObject* obj);
static void unity_places_place_proxy_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec);
static void unity_places_place_proxy_set_property (GObject * object, guint property_id, const GValue * value, GParamSpec * pspec);
static int _vala_strcmp0 (const char * str1, const char * str2);


static void g_cclosure_user_marshal_VOID__BOXED (GClosure * closure, GValue * return_value, guint n_param_values, const GValue * param_values, gpointer invocation_hint, gpointer marshal_data);

UnityPlacesPlaceProxy* unity_places_place_proxy_construct (GType object_type, const char* name, const char* icon_name, const char* comment, const char* dbus_name, const char* dbus_path) {
      UnityPlacesPlaceProxy * self;
      g_return_val_if_fail (name != NULL, NULL);
      g_return_val_if_fail (icon_name != NULL, NULL);
      g_return_val_if_fail (comment != NULL, NULL);
      g_return_val_if_fail (dbus_name != NULL, NULL);
      g_return_val_if_fail (dbus_path != NULL, NULL);
      self = (UnityPlacesPlaceProxy*) g_object_new (object_type, "name", name, "icon-name", PKGDATADIR "/applications.png", "comment", comment, "dbus-name", dbus_name, "dbus-path", dbus_path, NULL);
      return self;
}


UnityPlacesPlaceProxy* unity_places_place_proxy_new (const char* name, const char* icon_name, const char* comment, const char* dbus_name, const char* dbus_path) {
      return unity_places_place_proxy_construct (UNITY_PLACES_TYPE_PLACE_PROXY, name, icon_name, comment, dbus_name, dbus_path);
}


static void _unity_places_place_proxy_on_view_changed_dynamic_ViewChanged0_ (DBusGProxy* _sender, GHashTable* view_properties, gpointer self) {
      unity_places_place_proxy_on_view_changed (self, _sender, view_properties);
}


void _dynamic_ViewChanged1_connect (gpointer obj, const char * signal_name, GCallback handler, gpointer data) {
      dbus_g_object_register_marshaller (g_cclosure_user_marshal_VOID__BOXED, G_TYPE_NONE, dbus_g_type_get_map ("GHashTable", G_TYPE_STRING, G_TYPE_STRING), G_TYPE_INVALID);
      dbus_g_proxy_add_signal (obj, "ViewChanged", dbus_g_type_get_map ("GHashTable", G_TYPE_STRING, G_TYPE_STRING), G_TYPE_INVALID);
      dbus_g_proxy_connect_signal (obj, signal_name, handler, data, NULL);
}


static void _dynamic_set_active0 (DBusGProxy* self, gboolean param1, GError** error) {
      dbus_g_proxy_call (self, "SetActive", error, G_TYPE_BOOLEAN, param1, G_TYPE_INVALID, G_TYPE_INVALID);
      if (*error) {
            return;
      }
}


static void unity_places_place_proxy_setup_service (UnityPlacesPlaceProxy* self) {
      GError * _inner_error_;
      g_return_if_fail (self != NULL);
      _inner_error_ = NULL;
      {
            DBusGConnection* _tmp0_;
            DBusGConnection* _tmp1_;
            DBusGProxy* _tmp2_;
            _tmp0_ = dbus_g_bus_get (DBUS_BUS_SESSION, &_inner_error_);
            if (_inner_error_ != NULL) {
                  goto __catch10_g_error;
            }
            self->priv->conn = (_tmp1_ = _tmp0_, _dbus_g_connection_unref0 (self->priv->conn), _tmp1_);
            self->priv->service = (_tmp2_ = dbus_g_proxy_new_for_name (self->priv->conn, self->priv->_dbus_name, self->priv->_dbus_path, "com.canonical.Unity.Place"), _g_object_unref0 (self->priv->service), _tmp2_);
            _dynamic_ViewChanged1_connect (self->priv->service, "ViewChanged", (GCallback) _unity_places_place_proxy_on_view_changed_dynamic_ViewChanged0_, self);
            _dynamic_set_active0 (self->priv->service, FALSE, &_inner_error_);
            if (_inner_error_ != NULL) {
                  goto __catch10_g_error;
            }
      }
      goto __finally10;
      __catch10_g_error:
      {
            GError * e;
            e = _inner_error_;
            _inner_error_ = NULL;
            {
                  g_warning ("places-place-proxy.vala:71: Unable to start service %s: %s", self->priv->_dbus_name, e->message);
                  _g_error_free0 (e);
            }
      }
      __finally10:
      if (_inner_error_ != NULL) {
            g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
            g_clear_error (&_inner_error_);
            return;
      }
}


static const char* string_to_string (const char* self) {
      const char* result = NULL;
      g_return_val_if_fail (self != NULL, NULL);
      result = self;
      return result;
}


static void unity_places_place_proxy_on_view_changed (UnityPlacesPlaceProxy* self, DBusGProxy* s, GHashTable* view_properties) {
      char* view_name;
      char* _tmp0_;
      g_return_if_fail (self != NULL);
      g_return_if_fail (s != NULL);
      g_return_if_fail (view_properties != NULL);
      view_name = g_strdup ((const char*) g_hash_table_lookup (view_properties, "view-name"));
      g_debug ("places-place-proxy.vala:88: %s", _tmp0_ = g_strconcat ("View changed: ", string_to_string (view_name), NULL));
      _g_free0 (_tmp0_);
      if (_vala_strcmp0 (view_name, "ResultsView") == 0) {
            UnityPlacesViewsResultsView* new_view;
            new_view = g_object_ref_sink (unity_places_views_results_view_new ());
            unity_places_place_view_init_with_properties ((UnityPlacesPlaceView*) new_view, view_properties);
            clutter_container_add_actor ((ClutterContainer*) self->priv->view, (ClutterActor*) new_view);
            _g_object_unref0 (new_view);
      } else {
            char* _tmp1_;
            g_warning ("places-place-proxy.vala:98: %s", _tmp1_ = g_strconcat ("Unknown view: ", string_to_string (view_name), NULL));
            _g_free0 (_tmp1_);
      }
      _g_free0 (view_name);
}


static gpointer _g_object_ref0 (gpointer self) {
      return self ? g_object_ref (self) : NULL;
}


static ClutterActor* unity_places_place_proxy_real_get_view (UnityPlacesPlace* base) {
      UnityPlacesPlaceProxy * self;
      ClutterActor* result = NULL;
      self = (UnityPlacesPlaceProxy*) base;
      if (!DBUS_IS_G_PROXY (self->priv->service)) {
            unity_places_place_proxy_setup_service (self);
      }
      if (!CTK_IS_BOX (self->priv->view)) {
            CtkBox* _tmp0_;
            self->priv->view = (_tmp0_ = (CtkBox*) g_object_ref_sink ((CtkVBox*) ctk_vbox_new ((guint) 0)), _g_object_unref0 (self->priv->view), _tmp0_);
      }
      result = _g_object_ref0 ((ClutterActor*) self->priv->view);
      return result;
}


const char* unity_places_place_proxy_get_dbus_name (UnityPlacesPlaceProxy* self) {
      const char* result;
      g_return_val_if_fail (self != NULL, NULL);
      result = self->priv->_dbus_name;
      return result;
}


static void unity_places_place_proxy_set_dbus_name (UnityPlacesPlaceProxy* self, const char* value) {
      char* _tmp0_;
      g_return_if_fail (self != NULL);
      self->priv->_dbus_name = (_tmp0_ = g_strdup (value), _g_free0 (self->priv->_dbus_name), _tmp0_);
      g_object_notify ((GObject *) self, "dbus-name");
}


const char* unity_places_place_proxy_get_dbus_path (UnityPlacesPlaceProxy* self) {
      const char* result;
      g_return_val_if_fail (self != NULL, NULL);
      result = self->priv->_dbus_path;
      return result;
}


static void unity_places_place_proxy_set_dbus_path (UnityPlacesPlaceProxy* self, const char* value) {
      char* _tmp0_;
      g_return_if_fail (self != NULL);
      self->priv->_dbus_path = (_tmp0_ = g_strdup (value), _g_free0 (self->priv->_dbus_path), _tmp0_);
      g_object_notify ((GObject *) self, "dbus-path");
}


static GObject * unity_places_place_proxy_constructor (GType type, guint n_construct_properties, GObjectConstructParam * construct_properties) {
      GObject * obj;
      GObjectClass * parent_class;
      UnityPlacesPlaceProxy * self;
      parent_class = G_OBJECT_CLASS (unity_places_place_proxy_parent_class);
      obj = parent_class->constructor (type, n_construct_properties, construct_properties);
      self = UNITY_PLACES_PLACE_PROXY (obj);
      {
      }
      return obj;
}


static void unity_places_place_proxy_class_init (UnityPlacesPlaceProxyClass * klass) {
      unity_places_place_proxy_parent_class = g_type_class_peek_parent (klass);
      g_type_class_add_private (klass, sizeof (UnityPlacesPlaceProxyPrivate));
      UNITY_PLACES_PLACE_CLASS (klass)->get_view = unity_places_place_proxy_real_get_view;
      G_OBJECT_CLASS (klass)->get_property = unity_places_place_proxy_get_property;
      G_OBJECT_CLASS (klass)->set_property = unity_places_place_proxy_set_property;
      G_OBJECT_CLASS (klass)->constructor = unity_places_place_proxy_constructor;
      G_OBJECT_CLASS (klass)->finalize = unity_places_place_proxy_finalize;
      g_object_class_install_property (G_OBJECT_CLASS (klass), UNITY_PLACES_PLACE_PROXY_DBUS_NAME, g_param_spec_string ("dbus-name", "dbus-name", "dbus-name", NULL, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY));
      g_object_class_install_property (G_OBJECT_CLASS (klass), UNITY_PLACES_PLACE_PROXY_DBUS_PATH, g_param_spec_string ("dbus-path", "dbus-path", "dbus-path", NULL, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY));
}


static void unity_places_place_proxy_instance_init (UnityPlacesPlaceProxy * self) {
      self->priv = UNITY_PLACES_PLACE_PROXY_GET_PRIVATE (self);
}


static void unity_places_place_proxy_finalize (GObject* obj) {
      UnityPlacesPlaceProxy * self;
      self = UNITY_PLACES_PLACE_PROXY (obj);
      _g_free0 (self->priv->_dbus_name);
      _g_free0 (self->priv->_dbus_path);
      _dbus_g_connection_unref0 (self->priv->conn);
      _g_object_unref0 (self->priv->service);
      _g_object_unref0 (self->priv->view);
      G_OBJECT_CLASS (unity_places_place_proxy_parent_class)->finalize (obj);
}


GType unity_places_place_proxy_get_type (void) {
      static volatile gsize unity_places_place_proxy_type_id__volatile = 0;
      if (g_once_init_enter (&unity_places_place_proxy_type_id__volatile)) {
            static const GTypeInfo g_define_type_info = { sizeof (UnityPlacesPlaceProxyClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) unity_places_place_proxy_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (UnityPlacesPlaceProxy), 0, (GInstanceInitFunc) unity_places_place_proxy_instance_init, NULL };
            GType unity_places_place_proxy_type_id;
            unity_places_place_proxy_type_id = g_type_register_static (UNITY_PLACES_TYPE_PLACE, "UnityPlacesPlaceProxy", &g_define_type_info, 0);
            g_once_init_leave (&unity_places_place_proxy_type_id__volatile, unity_places_place_proxy_type_id);
      }
      return unity_places_place_proxy_type_id__volatile;
}


static void unity_places_place_proxy_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec) {
      UnityPlacesPlaceProxy * self;
      self = UNITY_PLACES_PLACE_PROXY (object);
      switch (property_id) {
            case UNITY_PLACES_PLACE_PROXY_DBUS_NAME:
            g_value_set_string (value, unity_places_place_proxy_get_dbus_name (self));
            break;
            case UNITY_PLACES_PLACE_PROXY_DBUS_PATH:
            g_value_set_string (value, unity_places_place_proxy_get_dbus_path (self));
            break;
            default:
            G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
            break;
      }
}


static void unity_places_place_proxy_set_property (GObject * object, guint property_id, const GValue * value, GParamSpec * pspec) {
      UnityPlacesPlaceProxy * self;
      self = UNITY_PLACES_PLACE_PROXY (object);
      switch (property_id) {
            case UNITY_PLACES_PLACE_PROXY_DBUS_NAME:
            unity_places_place_proxy_set_dbus_name (self, g_value_get_string (value));
            break;
            case UNITY_PLACES_PLACE_PROXY_DBUS_PATH:
            unity_places_place_proxy_set_dbus_path (self, g_value_get_string (value));
            break;
            default:
            G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
            break;
      }
}


static int _vala_strcmp0 (const char * str1, const char * str2) {
      if (str1 == NULL) {
            return -(str1 != str2);
      }
      if (str2 == NULL) {
            return str1 != str2;
      }
      return strcmp (str1, str2);
}



static void g_cclosure_user_marshal_VOID__BOXED (GClosure * closure, GValue * return_value, guint n_param_values, const GValue * param_values, gpointer invocation_hint, gpointer marshal_data) {
      typedef void (*GMarshalFunc_VOID__BOXED) (gpointer data1, gpointer arg_1, gpointer data2);
      register GMarshalFunc_VOID__BOXED callback;
      register GCClosure * cc;
      register gpointer data1, data2;
      cc = (GCClosure *) closure;
      g_return_if_fail (n_param_values == 2);
      if (G_CCLOSURE_SWAP_DATA (closure)) {
            data1 = closure->data;
            data2 = param_values->data[0].v_pointer;
      } else {
            data1 = param_values->data[0].v_pointer;
            data2 = closure->data;
      }
      callback = (GMarshalFunc_VOID__BOXED) (marshal_data ? marshal_data : cc->callback);
      callback (data1, g_value_get_boxed (param_values + 1), data2);
}




Generated by  Doxygen 1.6.0   Back to index