diff options
Diffstat (limited to 'src/metadata-menu-item.c')
-rw-r--r-- | src/metadata-menu-item.c | 61 |
1 files changed, 32 insertions, 29 deletions
diff --git a/src/metadata-menu-item.c b/src/metadata-menu-item.c index 1b75751..378188c 100644 --- a/src/metadata-menu-item.c +++ b/src/metadata-menu-item.c @@ -1,4 +1,4 @@ -/* metadata-menu-item.c generated by valac 0.14.2, the Vala compiler +/* metadata-menu-item.c generated by valac 0.16.1, the Vala compiler * generated from metadata-menu-item.vala, do not modify */ /* @@ -33,8 +33,8 @@ with this program. If not, see <http://www.gnu.org/licenses/>. #include <string.h> #include <common-defs.h> #include <gio/gio.h> -#include <gdk-pixbuf/gdk-pixdata.h> #include <glib/gstdio.h> +#include <gdk-pixbuf/gdk-pixbuf.h> #include <gee.h> @@ -165,9 +165,9 @@ void metadata_menuitem_fetch_art (MetadataMenuitem* self, const gchar* uri, cons #define PLAYER_ITEM_EMPTY (-1) FetchFile* fetch_file_new (const gchar* uri, const gchar* prop); FetchFile* fetch_file_construct (GType object_type, const gchar* uri, const gchar* prop); -static void __lambda0_ (MetadataMenuitem* self); +static void __lambda2_ (MetadataMenuitem* self); static void metadata_menuitem_on_fetcher_failed (MetadataMenuitem* self); -static void ___lambda0__fetch_file_failed (FetchFile* _sender, gpointer self); +static void ___lambda2__fetch_file_failed (FetchFile* _sender, gpointer self); static void metadata_menuitem_on_fetcher_completed (MetadataMenuitem* self, GByteArray* update, const gchar* property); static void _metadata_menuitem_on_fetcher_completed_fetch_file_completed (FetchFile* _sender, GByteArray* data, const gchar* property, gpointer self); void fetch_file_fetch_data (FetchFile* self, GAsyncReadyCallback _callback_, gpointer _user_data_); @@ -416,13 +416,13 @@ static gchar* string_strip (const gchar* self) { } -static void __lambda0_ (MetadataMenuitem* self) { +static void __lambda2_ (MetadataMenuitem* self) { metadata_menuitem_on_fetcher_failed (self); } -static void ___lambda0__fetch_file_failed (FetchFile* _sender, gpointer self) { - __lambda0_ (self); +static void ___lambda2__fetch_file_failed (FetchFile* _sender, gpointer self) { + __lambda2_ (self); } @@ -543,7 +543,7 @@ void metadata_menuitem_fetch_art (MetadataMenuitem* self, const gchar* uri, cons _g_object_unref0 (metadata_menuitem_fetcher); metadata_menuitem_fetcher = _tmp23_; _tmp24_ = metadata_menuitem_fetcher; - g_signal_connect_object (_tmp24_, "failed", (GCallback) ___lambda0__fetch_file_failed, self, 0); + g_signal_connect_object (_tmp24_, "failed", (GCallback) ___lambda2__fetch_file_failed, self, 0); _tmp25_ = metadata_menuitem_fetcher; g_signal_connect_object (_tmp25_, "completed", (GCallback) _metadata_menuitem_on_fetcher_completed_fetch_file_completed, self, 0); _tmp26_ = metadata_menuitem_fetcher; @@ -621,37 +621,40 @@ static void metadata_menuitem_on_fetcher_completed (MetadataMenuitem* self, GByt const gchar* _tmp14_; GdkPixbufLoader* _tmp15_; GdkPixbufFormat* _tmp16_ = NULL; - const gchar* _tmp17_ = NULL; - const gchar* _tmp18_; + gchar* _tmp17_ = NULL; + gchar* _tmp18_; const gchar* _tmp19_; const gchar* _tmp20_; - const gchar* _tmp22_; - gchar* _tmp23_; + const gchar* _tmp21_; + const gchar* _tmp23_; + gchar* _tmp24_; _tmp13_ = icon; _tmp14_ = path; _tmp15_ = loader; _tmp16_ = gdk_pixbuf_loader_get_format (_tmp15_); _tmp17_ = gdk_pixbuf_format_get_name (_tmp16_); - gdk_pixbuf_save (_tmp13_, _tmp14_, _tmp17_, &_inner_error_, NULL); + _tmp18_ = _tmp17_; + gdk_pixbuf_save (_tmp13_, _tmp14_, _tmp18_, &_inner_error_, NULL); + _g_free0 (_tmp18_); if (_inner_error_ != NULL) { _g_free0 (path); _g_object_unref0 (icon); _g_object_unref0 (loader); goto __catch6_g_error; } - _tmp18_ = property; - _tmp19_ = path; - dbusmenu_menuitem_property_set ((DbusmenuMenuitem*) self, _tmp18_, _tmp19_); - _tmp20_ = self->priv->previous_temp_album_art_path; - if (_tmp20_ != NULL) { - const gchar* _tmp21_; - _tmp21_ = self->priv->previous_temp_album_art_path; - g_remove (_tmp21_); + _tmp19_ = property; + _tmp20_ = path; + dbusmenu_menuitem_property_set ((DbusmenuMenuitem*) self, _tmp19_, _tmp20_); + _tmp21_ = self->priv->previous_temp_album_art_path; + if (_tmp21_ != NULL) { + const gchar* _tmp22_; + _tmp22_ = self->priv->previous_temp_album_art_path; + g_remove (_tmp22_); } - _tmp22_ = path; - _tmp23_ = g_strdup (_tmp22_); + _tmp23_ = path; + _tmp24_ = g_strdup (_tmp23_); _g_free0 (self->priv->previous_temp_album_art_path); - self->priv->previous_temp_album_art_path = _tmp23_; + self->priv->previous_temp_album_art_path = _tmp24_; } _g_free0 (path); _g_object_unref0 (icon); @@ -661,14 +664,14 @@ static void metadata_menuitem_on_fetcher_completed (MetadataMenuitem* self, GByt __catch6_g_error: { GError* e = NULL; - GError* _tmp24_; - const gchar* _tmp25_; + GError* _tmp25_; + const gchar* _tmp26_; e = _inner_error_; _inner_error_ = NULL; - _tmp24_ = e; - _tmp25_ = _tmp24_->message; + _tmp25_ = e; + _tmp26_ = _tmp25_->message; g_warning ("metadata-menu-item.vala:163: Problem creating file from bytearray fetc" \ -"hed from the interweb - error: %s", _tmp25_); +"hed from the interweb - error: %s", _tmp26_); _g_error_free0 (e); } __finally6: |