Example #1
0
/* GObject implementation stuff {{{1 */
static void
g_application_set_property (GObject      *object,
                            guint         prop_id,
                            const GValue *value,
                            GParamSpec   *pspec)
{
  GApplication *application = G_APPLICATION (object);

  switch (prop_id)
    {
    case PROP_APPLICATION_ID:
      g_application_set_application_id (application,
                                        g_value_get_string (value));
      break;

    case PROP_FLAGS:
      g_application_set_flags (application, g_value_get_flags (value));
      break;

    case PROP_INACTIVITY_TIMEOUT:
      g_application_set_inactivity_timeout (application,
                                            g_value_get_uint (value));
      break;

    case PROP_ACTION_GROUP:
      g_application_set_action_group (application,
                                      g_value_get_object (value));
      break;

    default:
      g_assert_not_reached ();
    }
}
Example #2
0
static GObject * granite_hello_granite_hello_constructor (GType type, guint n_construct_properties, GObjectConstructParam * construct_properties) {
	GObject * obj;
	GObjectClass * parent_class;
	GraniteHelloGraniteHello * self;
	gchar* _tmp0_;
	gchar* _tmp1_;
	gchar* _tmp2_;
	gchar* _tmp3_;
	gchar* _tmp4_;
	gchar* _tmp5_;
	gchar* _tmp6_;
	gchar* _tmp7_;
	gchar* _tmp8_;
	parent_class = G_OBJECT_CLASS (granite_hello_granite_hello_parent_class);
	obj = parent_class->constructor (type, n_construct_properties, construct_properties);
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, GRANITE_HELLO_TYPE_GRANITE_HELLO, GraniteHelloGraniteHello);
	_tmp0_ = g_strdup ("GraniteHello");
	_g_free0 (((GraniteApplication*) self)->program_name);
	((GraniteApplication*) self)->program_name = _tmp0_;
	_tmp1_ = g_strdup ("granitehello");
	_g_free0 (((GraniteApplication*) self)->exec_name);
	((GraniteApplication*) self)->exec_name = _tmp1_;
	_tmp2_ = g_strdup ("2012");
	_g_free0 (((GraniteApplication*) self)->app_years);
	((GraniteApplication*) self)->app_years = _tmp2_;
	_tmp3_ = g_strdup ("application-default-icon");
	_g_free0 (((GraniteApplication*) self)->app_icon);
	((GraniteApplication*) self)->app_icon = _tmp3_;
	_tmp4_ = g_strdup ("granite_hello.desktop");
	_g_free0 (((GraniteApplication*) self)->app_launcher);
	((GraniteApplication*) self)->app_launcher = _tmp4_;
	g_application_set_application_id ((GApplication*) self, "org.elementary.granitehello");
	_tmp5_ = g_strdup ("http://christophertimberlake.com/#/post/39298284501/so-you-want-to-dev" \
"elop-for-elementary-os");
	_g_free0 (((GraniteApplication*) self)->main_url);
	((GraniteApplication*) self)->main_url = _tmp5_;
	_tmp6_ = g_strdup ("http://christophertimberlake.com/#/post/39298284501/so-you-want-to-dev" \
"elop-for-elementary-os");
	_g_free0 (((GraniteApplication*) self)->bug_url);
	((GraniteApplication*) self)->bug_url = _tmp6_;
	_tmp7_ = g_strdup ("http://christophertimberlake.com/#/post/39298284501/so-you-want-to-dev" \
"elop-for-elementary-os");
	_g_free0 (((GraniteApplication*) self)->help_url);
	((GraniteApplication*) self)->help_url = _tmp7_;
	_tmp8_ = g_strdup ("http://christophertimberlake.com/#/post/39298284501/so-you-want-to-dev" \
"elop-for-elementary-os");
	_g_free0 (((GraniteApplication*) self)->translate_url);
	((GraniteApplication*) self)->translate_url = _tmp8_;
	((GraniteApplication*) self)->about_license_type = GTK_LICENSE_GPL_3_0;
	return obj;
}