~leprechaun-team/+junk/unity-use-patches

« back to all changes in this revision

Viewing changes to unity/prism-handler.c

  • Committer: Bazaar Package Importer
  • Author(s): Didier Roche
  • Date: 2010-09-09 19:13:29 UTC
  • mfrom: (1.1.15 upstream)
  • Revision ID: james.westby@ubuntu.com-20100909191329-j3odkmn02roj91b1
Tags: 0.2.36-0ubuntu1
* New upstream release:
  - Fix width of home-button on panel, so groove aligns with right edge of
    launcher, fixes (LP: #630031)
  - migration script to transition first time new people to unity
    (LP: #622146)
  - Quicklist name disappearing (LP: #627666)
* debian/unity.install:
  - install libexec in unity package (for migration tool)
* debian/libunity0.symbols:
  - update symbol

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* prism-handler.c generated by valac 0.9.7, the Vala compiler
 
1
/* prism-handler.c generated by valac, the Vala compiler
2
2
 * generated from prism-handler.vala, do not modify */
3
3
 
4
4
/*
101
101
UnityWebappPrism* unity_webapp_prism_new (const char* address, const char* icon);
102
102
UnityWebappPrism* unity_webapp_prism_construct (GType object_type, const char* address, const char* icon);
103
103
char* unity_webapp_prism_desktop_file_path (UnityWebappPrism* self);
 
104
const char* unity_webapp_prism_get_url (UnityWebappPrism* self);
104
105
static gboolean unity_webapp_prism_check_existance_of_app (UnityWebappPrism* self);
105
 
const char* unity_webapp_prism_get_url (UnityWebappPrism* self);
 
106
const char* unity_webapp_prism_get_icon (UnityWebappPrism* self);
106
107
static void unity_webapp_prism_build_webapp (UnityWebappPrism* self);
107
 
const char* unity_webapp_prism_get_icon (UnityWebappPrism* self);
108
 
void unity_webapp_prism_add_to_favorites (UnityWebappPrism* self);
109
108
GType unity_favorites_get_type (void) G_GNUC_CONST;
110
109
UnityFavorites* unity_favorites_get_default (void);
111
110
static char* unity_webapp_prism_get_fav_uid (UnityWebappPrism* self);
112
111
char* unity_webapp_urlify (const char* uri);
113
112
void unity_favorites_set_string (UnityFavorites* self, const char* uid, const char* name, const char* value);
114
113
void unity_favorites_add_favorite (UnityFavorites* self, const char* uid);
 
114
void unity_webapp_prism_add_to_favorites (UnityWebappPrism* self);
115
115
GeeArrayList* unity_favorites_get_favorites (UnityFavorites* self);
116
116
char* unity_favorites_get_string (UnityFavorites* self, const char* uid, const char* name);
117
117
static void unity_webapp_prism_set_url (UnityWebappPrism* self, const char* value);
172
172
 
173
173
 
174
174
static void unity_webapp_prism_build_webapp (UnityWebappPrism* self) {
 
175
        GError * _inner_error_;
175
176
        char* webapp_ini;
176
177
        char* webapp_desktop;
177
178
        GFile* webapp_directory;
178
179
        char* _tmp0_;
179
180
        GFile* _tmp1_;
180
181
        GFile* inifile;
 
182
        char* _tmp3_;
181
183
        char* _tmp2_;
182
 
        char* _tmp3_;
183
184
        GFile* _tmp4_;
184
185
        GFile* desktop_file;
185
 
        GError * _inner_error_ = NULL;
186
186
        g_return_if_fail (self != NULL);
 
187
        _inner_error_ = NULL;
187
188
        webapp_ini = g_strdup_printf (UNITY_WEBAPP_PRISM_webapp_ini_template, self->id, self->name, self->priv->_url);
188
189
        webapp_desktop = g_strdup_printf (UNITY_WEBAPP_PRISM_webapp_desktop_template, self->name, self->id, self->priv->_icon);
189
190
        webapp_directory = g_file_new_for_path (self->priv->webapp_dir);
321
322
        char* _tmp0_;
322
323
        char* _tmp1_;
323
324
        char* desktop_path;
 
325
        char* _tmp3_;
324
326
        char* _tmp2_;
325
 
        char* _tmp3_;
326
327
        char* _tmp4_;
327
328
        g_return_if_fail (self != NULL);
328
329
        favorites = unity_favorites_get_default ();
346
347
}
347
348
 
348
349
 
349
 
/**
350
 
     * gets the favorite uid for this desktop file
351
 
     */
352
350
static char* unity_webapp_prism_get_fav_uid (UnityWebappPrism* self) {
353
351
        char* result = NULL;
354
352
        char* myuid;
440
438
        self = UNITY_WEBAPP_PRISM (obj);
441
439
        _inner_error_ = NULL;
442
440
        {
 
441
                char** _tmp1_;
 
442
                gint _split_url_size_;
443
443
                gint split_url_length1;
444
 
                gint _split_url_size_;
445
 
                char** _tmp1_;
446
444
                char** _tmp0_;
447
445
                char** split_url;
448
446
                char* _tmp2_;
449
447
                char* _tmp5_;
 
448
                char* _tmp7_;
450
449
                char* _tmp6_;
451
 
                char* _tmp7_;
452
450
                gboolean exists;
453
451
                split_url = (_tmp1_ = _tmp0_ = g_strsplit (self->priv->_url, "://", 2), split_url_length1 = _vala_array_length (_tmp0_), _split_url_size_ = split_url_length1, _tmp1_);
454
452
                self->name = (_tmp2_ = g_strdup (split_url[1]), _g_free0 (self->name), _tmp2_);