~ubuntu-branches/ubuntu/lucid/awn-extras-applets/lucid

« back to all changes in this revision

Viewing changes to applets/maintained/vala-test/applet.c

  • Committer: Bazaar Package Importer
  • Author(s): Julien Lavergne
  • Date: 2010-03-30 20:26:40 UTC
  • mfrom: (1.1.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20100330202640-vza3bdnv9gc9bg5z
Tags: 0.4.0~rc1-0ubuntu1
* New upstream release (rc1) (LP: #551309)
 - Stack applet close on click (LP: #261520)
* debian/patches/
 - 03-remove-cairo-menu-pref.patch: From upstream (r1244 + r1245 + r1252),
   remove menu entry for cairo-menu preferences, it's not implemented
   (LP: #511254)
 - 04-tomboy-threading-free.patch: From upstream (r1246), remove threading to
   make the applet working. 
* debian/*.install: Update installation location of comics and digital 
  applets.
* debian/control: 
 - Move digital applet from python to C, and add proper Replaces.
 - Add Replaces for awn-applets-c-core to handle migration from 0.3.2.2.
   (LP: #524559)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* applet.c generated by valac, the Vala compiler
2
 
 * generated from applet.vala, do not modify */
3
 
 
4
1
/*
5
2
 * A simple applet written in Vala that shows a stock icon.
6
3
 *
29
26
#include <stdlib.h>
30
27
#include <string.h>
31
28
 
32
 
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
33
29
 
34
30
 
35
31
 
44
40
        g_return_val_if_fail (canonical_name != NULL, NULL);
45
41
        g_return_val_if_fail (uid != NULL, NULL);
46
42
        applet = NULL;
47
 
        applet = (_tmp0_ = g_object_ref_sink ((AwnAppletSimple*) awn_applet_simple_new (canonical_name, uid, panel_id)), _g_object_unref0 (applet), _tmp0_);
 
43
        _tmp0_ = NULL;
 
44
        applet = (_tmp0_ = g_object_ref_sink ((AwnAppletSimple*) awn_applet_simple_new (canonical_name, uid, panel_id)), (applet == NULL) ? NULL : (applet = (g_object_unref (applet), NULL)), _tmp0_);
48
45
        awn_applet_simple_set_icon_name (applet, "gtk-yes");
49
46
        result = (AwnApplet*) applet;
50
47
        return result;