static GtkCellEditable* ddb_cell_renderer_text_multiline_real_start_editing (GtkCellRenderer* base, GdkEvent* event, GtkWidget* widget, const gchar* path, GdkRectangle* background_area, GdkRectangle* cell_area, GtkCellRendererState flags) { DdbCellRendererTextMultiline * self; GtkCellEditable* result = NULL; gboolean _tmp0_ = FALSE; gboolean _tmp1_; const gchar* _tmp2_; GtkTreePath* _tmp3_; GtkTreePath* p; GtkWidget* _tmp4_; GtkTreeView* _tmp5_; GtkTreeView* tv; GtkTreeView* _tmp6_; GtkTreeModel* _tmp7_ = NULL; GtkListStore* _tmp8_; GtkListStore* store; GtkTreeIter iter = {0}; GtkListStore* _tmp9_; GtkTreePath* _tmp10_; GtkTreeIter _tmp11_ = {0}; GValue v = {0}; GtkListStore* _tmp12_; GtkTreeIter _tmp13_; GValue _tmp14_ = {0}; gint _tmp15_ = 0; gint mult; DdbCellEditableTextView* _tmp16_; DdbCellEditableTextView* _tmp17_; gint _tmp18_; DdbCellEditableTextView* _tmp19_; const gchar* _tmp20_; gchar* _tmp21_; GtkTextBuffer* _tmp22_; GtkTextBuffer* buf; gchar* _tmp23_ = NULL; gchar* _tmp24_; gchar* _tmp25_; gboolean _tmp26_; DdbCellEditableTextView* _tmp31_; GtkTextBuffer* _tmp32_; DdbCellEditableTextView* _tmp33_; DdbCellEditableTextView* _tmp34_; gulong _tmp35_ = 0UL; DdbCellEditableTextView* _tmp36_; GdkRectangle _tmp37_; gint _tmp38_; GdkRectangle _tmp39_; gint _tmp40_; DdbCellEditableTextView* _tmp41_; DdbCellEditableTextView* _tmp42_; self = (DdbCellRendererTextMultiline*) base; g_return_val_if_fail (widget != NULL, NULL); g_return_val_if_fail (path != NULL, NULL); g_return_val_if_fail (background_area != NULL, NULL); g_return_val_if_fail (cell_area != NULL, NULL); g_object_get ((GtkCellRendererText*) self, "editable", &_tmp0_, NULL); _tmp1_ = _tmp0_; if (!_tmp1_) { result = GTK_CELL_EDITABLE (NULL); return result; } _tmp2_ = path; _tmp3_ = gtk_tree_path_new_from_string (_tmp2_); p = _tmp3_; _tmp4_ = widget; _tmp5_ = _g_object_ref0 (GTK_TREE_VIEW (_tmp4_)); tv = _tmp5_; _tmp6_ = tv; _tmp7_ = gtk_tree_view_get_model (_tmp6_); _tmp8_ = _g_object_ref0 (GTK_LIST_STORE (_tmp7_)); store = _tmp8_; _tmp9_ = store; _tmp10_ = p; gtk_tree_model_get_iter ((GtkTreeModel*) _tmp9_, &_tmp11_, _tmp10_); iter = _tmp11_; _tmp12_ = store; _tmp13_ = iter; gtk_tree_model_get_value ((GtkTreeModel*) _tmp12_, &_tmp13_, 3, &_tmp14_); G_IS_VALUE (&v) ? (g_value_unset (&v), NULL) : NULL; v = _tmp14_; _tmp15_ = g_value_get_int (&v); mult = _tmp15_; _tmp16_ = ddb_cell_editable_text_view_new (); _tmp17_ = g_object_ref_sink (_tmp16_); _g_object_unref0 (self->priv->entry); self->priv->entry = _tmp17_; _tmp18_ = mult; if (_tmp18_ != 0) { g_object_set ((GtkCellRendererText*) self, "text", "", NULL); } _tmp19_ = self->priv->entry; _tmp20_ = path; _tmp21_ = g_strdup (_tmp20_); _g_free0 (_tmp19_->tree_path); _tmp19_->tree_path = _tmp21_; _tmp22_ = gtk_text_buffer_new (NULL); buf = _tmp22_; g_object_get ((GtkCellRendererText*) self, "text", &_tmp23_, NULL); _tmp24_ = _tmp23_; _tmp25_ = _tmp24_; _tmp26_ = _tmp25_ != NULL; _g_free0 (_tmp25_); if (_tmp26_) { GtkTextBuffer* _tmp27_; gchar* _tmp28_ = NULL; gchar* _tmp29_; gchar* _tmp30_; _tmp27_ = buf; g_object_get ((GtkCellRendererText*) self, "text", &_tmp28_, NULL); _tmp29_ = _tmp28_; _tmp30_ = _tmp29_; gtk_text_buffer_set_text (_tmp27_, _tmp30_, -1); _g_free0 (_tmp30_); } _tmp31_ = self->priv->entry; _tmp32_ = buf; gtk_text_view_set_buffer ((GtkTextView*) _tmp31_, _tmp32_); _tmp33_ = self->priv->entry; self->priv->in_entry_menu = FALSE; if (self->priv->entry_menu_popdown_timeout) { g_source_remove (self->priv->entry_menu_popdown_timeout); self->priv->entry_menu_popdown_timeout = 0; } g_signal_connect (_tmp33_, "editing-done", (GCallback) ddb_cell_renderer_text_multiline_gtk_cell_renderer_text_editing_done, self); _tmp34_ = self->priv->entry; _tmp35_ = g_signal_connect_after (_tmp34_, "focus-out-event", (GCallback) ddb_cell_renderer_text_multiline_gtk_cell_renderer_focus_out_event, self); self->priv->populate_popup_id = g_signal_connect (self->priv->entry, "populate-popup", G_CALLBACK (ddb_cell_renderer_text_multiline_populate_popup), self); self->priv->focus_out_id = _tmp35_; _tmp36_ = self->priv->entry; _tmp37_ = *cell_area; _tmp38_ = _tmp37_.width; _tmp39_ = *cell_area; _tmp40_ = _tmp39_.height; gtk_widget_set_size_request ((GtkWidget*) _tmp36_, _tmp38_, _tmp40_); _tmp41_ = self->priv->entry; gtk_widget_show ((GtkWidget*) _tmp41_); _tmp42_ = self->priv->entry; result = GTK_CELL_EDITABLE (_tmp42_); _g_object_unref0 (buf); G_IS_VALUE (&v) ? (g_value_unset (&v), NULL) : NULL; _g_object_unref0 (store); _g_object_unref0 (tv); _gtk_tree_path_free0 (p); // evil hack! need to make an event for that extern int trkproperties_block_keyhandler; trkproperties_block_keyhandler = 1; return result; }
void daemon_data_sqlite_data_LogMessageEvent (DaemonDataSqliteData* self, DaemonEventsMessageEvent* event, GError** error) { gchar* _tmp0_; gchar* commandText; sqlite3_stmt* statement = NULL; sqlite3_stmt* _tmp1_ = NULL; const gchar* _tmp2_ = NULL; gchar* _tmp3_; const gchar* _tmp4_ = NULL; gchar* _tmp5_; const gchar* _tmp6_ = NULL; gchar* _tmp7_; const gchar* _tmp8_ = NULL; gchar* _tmp9_; gint64 _tmp10_; gint _tmp11_; GError * _inner_error_ = NULL; g_return_if_fail (self != NULL); g_return_if_fail (event != NULL); _tmp0_ = g_strdup ("INSERT INTO Log (Username, Data, Channel, Server, Timestamp, Type) VAL" \ "UES (@1, @2, @3, @4, @5, @6)"); commandText = _tmp0_; sqlite3_prepare_v2 (self->priv->_database, commandText, -1, &_tmp1_, NULL); _sqlite3_finalize0 (statement); statement = _tmp1_; _tmp2_ = daemon_events_log_event_get_Username ((DaemonEventsLogEvent*) event); _tmp3_ = g_strdup (_tmp2_); sqlite3_bind_text (statement, 1, _tmp3_, -1, g_free); _tmp4_ = daemon_events_message_event_get_Message (event); _tmp5_ = g_strdup (_tmp4_); sqlite3_bind_text (statement, 2, _tmp5_, -1, g_free); _tmp6_ = daemon_events_log_event_get_Channel ((DaemonEventsLogEvent*) event); _tmp7_ = g_strdup (_tmp6_); sqlite3_bind_text (statement, 3, _tmp7_, -1, g_free); _tmp8_ = daemon_events_log_event_get_Server ((DaemonEventsLogEvent*) event); _tmp9_ = g_strdup (_tmp8_); sqlite3_bind_text (statement, 4, _tmp9_, -1, g_free); _tmp10_ = daemon_events_log_event_get_UnixTimestamp ((DaemonEventsLogEvent*) event); sqlite3_bind_int64 (statement, 5, _tmp10_); sqlite3_bind_int (statement, 6, (gint) DAEMON_DATA_EVENT_TYPES_Message); _tmp11_ = sqlite3_step (statement); if (_tmp11_ != SQLITE_DONE) { const gchar* _tmp12_ = NULL; GError* _tmp13_ = NULL; _tmp12_ = sqlite3_errmsg (self->priv->_database); _tmp13_ = g_error_new_literal (DAEMON_DATA_DATA_ACCESS_ERROR, DAEMON_DATA_DATA_ACCESS_ERROR_WriteError, _tmp12_); _inner_error_ = _tmp13_; if (_inner_error_->domain == DAEMON_DATA_DATA_ACCESS_ERROR) { g_propagate_error (error, _inner_error_); _sqlite3_finalize0 (statement); _g_free0 (commandText); return; } else { _sqlite3_finalize0 (statement); _g_free0 (commandText); 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; } } _sqlite3_finalize0 (statement); _g_free0 (commandText); }
static char* string_replace (const char* self, const char* old, const char* replacement) { #line 227 "source-spinner-item.c" char* result = NULL; GError * _inner_error_ = NULL; #line 1157 "glib-2.0.vapi" g_return_val_if_fail (self != NULL, NULL); #line 1157 "glib-2.0.vapi" g_return_val_if_fail (old != NULL, NULL); #line 1157 "glib-2.0.vapi" g_return_val_if_fail (replacement != NULL, NULL); #line 236 "source-spinner-item.c" { char* _tmp0_; GRegex* _tmp1_; GRegex* regex; char* _tmp2_; #line 1159 "glib-2.0.vapi" regex = (_tmp1_ = g_regex_new (_tmp0_ = g_regex_escape_string (old, -1), 0, 0, &_inner_error_), _g_free0 (_tmp0_), _tmp1_); #line 244 "source-spinner-item.c" if (_inner_error_ != NULL) { if (_inner_error_->domain == G_REGEX_ERROR) { goto __catch41_g_regex_error; } g_critical ("file %s: line %d: unexpected 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 NULL; } #line 1160 "glib-2.0.vapi" _tmp2_ = g_regex_replace_literal (regex, self, (gssize) (-1), 0, replacement, 0, &_inner_error_); #line 255 "source-spinner-item.c" if (_inner_error_ != NULL) { _g_regex_unref0 (regex); if (_inner_error_->domain == G_REGEX_ERROR) { goto __catch41_g_regex_error; } _g_regex_unref0 (regex); g_critical ("file %s: line %d: unexpected 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 NULL; } result = _tmp2_; _g_regex_unref0 (regex); #line 1160 "glib-2.0.vapi" return result; #line 270 "source-spinner-item.c" } goto __finally41; __catch41_g_regex_error: { GError * e; e = _inner_error_; _inner_error_ = NULL; { #line 1162 "glib-2.0.vapi" g_assert_not_reached (); #line 281 "source-spinner-item.c" _g_error_free0 (e); } } __finally41: 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 NULL; } }
static gboolean gmpc_meta_data_widgets_similar_songs_update_sim_song (GmpcMetaDataWidgetsSimilarSongs* self) { gboolean result = FALSE; g_return_val_if_fail (self != NULL, FALSE); if (self->priv->current == NULL) { GList* _tmp0_ = NULL; GtkProgressBar* _tmp1_ = NULL; _tmp0_ = meta_data_get_text_list (self->priv->copy); self->priv->current = _tmp0_; _tmp1_ = (GtkProgressBar*) gtk_progress_bar_new (); _g_object_unref0 (self->priv->pchild); self->priv->pchild = (GtkWidget*) g_object_ref_sink (_tmp1_); gtk_container_add ((GtkContainer*) self, self->priv->pchild); gtk_widget_show_all ((GtkWidget*) self); } gtk_progress_bar_pulse (GTK_PROGRESS_BAR (self->priv->pchild)); if (self->priv->current != NULL) { gchar* _tmp2_; gchar* entry; _tmp2_ = g_strdup ((const gchar*) self->priv->current->data); entry = _tmp2_; if (entry != NULL) { gchar** _tmp3_; gchar** _tmp4_ = NULL; gchar** split; gint split_length1; gint _split_size_; _tmp4_ = _tmp3_ = g_strsplit (entry, "::", 2); split = _tmp4_; split_length1 = _vala_array_length (_tmp3_); _split_size_ = _vala_array_length (_tmp3_); if (split_length1 == 2) { gchar** _tmp5_; gchar** _tmp6_ = NULL; gchar** art_split; gint art_split_length1; gint _art_split_size_; MpdData* _tmp8_ = NULL; MpdData* data; mpd_database_search_start (connection, FALSE); _tmp6_ = _tmp5_ = g_strsplit (split[0], " ", 0); art_split = _tmp6_; art_split_length1 = _vala_array_length (_tmp5_); _art_split_size_ = _vala_array_length (_tmp5_); { gchar** artist_collection; int artist_collection_length1; int artist_it; artist_collection = art_split; artist_collection_length1 = art_split_length1; for (artist_it = 0; artist_it < art_split_length1; artist_it = artist_it + 1) { gchar* _tmp7_; gchar* artist; _tmp7_ = g_strdup (artist_collection[artist_it]); artist = _tmp7_; { mpd_database_search_add_constraint (connection, MPD_TAG_ITEM_ARTIST, artist); _g_free0 (artist); } } } mpd_database_search_add_constraint (connection, MPD_TAG_ITEM_TITLE, split[1]); _tmp8_ = mpd_database_search_commit (connection); data = _tmp8_; if (data != NULL) { MpdData* _tmp9_; _tmp9_ = data; data = NULL; self->priv->item = mpd_data_concatenate (self->priv->item, _tmp9_); } _mpd_data_free0 (data); art_split = (_vala_array_free (art_split, art_split_length1, (GDestroyNotify) g_free), NULL); } split = (_vala_array_free (split, split_length1, (GDestroyNotify) g_free), NULL); } self->priv->current = self->priv->current->next; if (self->priv->current != NULL) { result = TRUE; _g_free0 (entry); return result; } _g_free0 (entry); } gtk_object_destroy ((GtkObject*) self->priv->pchild); if (self->priv->item != NULL) { GmpcMpdDataModel* _tmp10_ = NULL; GmpcMpdDataModel* model; MpdData* _tmp11_; GmpcMpdDataTreeview* _tmp12_ = NULL; GmpcMpdDataTreeview* tree; GtkWidget* _tmp13_; _tmp10_ = gmpc_mpddata_model_new (); model = _tmp10_; self->priv->item = misc_mpddata_remove_duplicate_songs (self->priv->item); _tmp11_ = self->priv->item; self->priv->item = NULL; gmpc_mpddata_model_set_mpd_data (model, _tmp11_); _tmp12_ = gmpc_mpddata_treeview_new ("similar-song", TRUE, (GtkTreeModel*) model); tree = g_object_ref_sink (_tmp12_); gmpc_mpddata_treeview_enable_click_fix (tree); g_signal_connect_object ((GtkWidget*) tree, "button-release-event", (GCallback) _gmpc_meta_data_widgets_similar_songs_tree_right_menu_gtk_widget_button_release_event, self, 0); g_signal_connect_object ((GtkTreeView*) tree, "row-activated", (GCallback) _gmpc_meta_data_widgets_similar_songs_tree_row_activated_gtk_tree_view_row_activated, self, 0); gtk_container_add ((GtkContainer*) self, (GtkWidget*) tree); _tmp13_ = _g_object_ref0 ((GtkWidget*) tree); _g_object_unref0 (self->priv->pchild); self->priv->pchild = _tmp13_; _g_object_unref0 (tree); _g_object_unref0 (model); } else { const gchar* _tmp14_ = NULL; GtkLabel* _tmp15_ = NULL; GtkLabel* label; GtkWidget* _tmp16_; _tmp14_ = _ ("Unavailable"); _tmp15_ = (GtkLabel*) gtk_label_new (_tmp14_); label = g_object_ref_sink (_tmp15_); gtk_misc_set_alignment ((GtkMisc*) label, 0.0f, 0.0f); gtk_container_add ((GtkContainer*) self, (GtkWidget*) label); _tmp16_ = _g_object_ref0 ((GtkWidget*) label); _g_object_unref0 (self->priv->pchild); self->priv->pchild = _tmp16_; _g_object_unref0 (label); } _meta_data_free0 (self->priv->copy); self->priv->copy = NULL; self->priv->idle_add = (guint) 0; gtk_widget_show_all ((GtkWidget*) self); result = FALSE; return result; }
static void low_level_android_process_screen_resume (LowLevelAndroid* self) { const gchar* _tmp0_; g_return_if_fail (self != NULL); _tmp0_ = self->priv->screenresumetype; if (g_strcmp0 (_tmp0_, "userspace") == 0) { const gchar* _tmp1_; _tmp1_ = self->priv->screenresumecommand; if (g_strcmp0 (_tmp1_, "") != 0) { const gchar* _tmp2_; gint _tmp3_ = 0; gint ok; gint _tmp4_; _tmp2_ = self->priv->screenresumecommand; _tmp3_ = system (_tmp2_); ok = _tmp3_; _tmp4_ = ok; if (_tmp4_ != 0) { FsoFrameworkLogger* _tmp5_; const gchar* _tmp6_; const gchar* _tmp7_ = NULL; gint _tmp8_; gchar* _tmp9_ = NULL; gchar* _tmp10_; gchar* _tmp11_ = NULL; gchar* _tmp12_; _tmp5_ = ((FsoFrameworkAbstractObject*) self)->logger; _tmp6_ = self->priv->screenresumecommand; _tmp7_ = string_to_string (_tmp6_); _tmp8_ = ok; _tmp9_ = g_strdup_printf ("%i", _tmp8_); _tmp10_ = _tmp9_; _tmp11_ = g_strconcat ("Can't execute '", _tmp7_, "' - error code ", _tmp10_, NULL); _tmp12_ = _tmp11_; fso_framework_logger_error (_tmp5_, _tmp12_); _g_free0 (_tmp12_); _g_free0 (_tmp10_); } else { FsoFrameworkLogger* _tmp13_; const gchar* _tmp14_; const gchar* _tmp15_ = NULL; gint _tmp16_; gchar* _tmp17_ = NULL; gchar* _tmp18_; gchar* _tmp19_ = NULL; gchar* _tmp20_; gboolean _tmp21_ = FALSE; FsoFrameworkLogger* _tmp22_; gboolean _tmp23_ = FALSE; _tmp13_ = ((FsoFrameworkAbstractObject*) self)->logger; _tmp14_ = self->priv->screenresumecommand; _tmp15_ = string_to_string (_tmp14_); _tmp16_ = ok; _tmp17_ = g_strdup_printf ("%i", _tmp16_); _tmp18_ = _tmp17_; _tmp19_ = g_strconcat ("'", _tmp15_, "' executed - return code ", _tmp18_, NULL); _tmp20_ = _tmp19_; _tmp21_ = fso_framework_logger_debug (_tmp13_, _tmp20_); g_assert (_tmp21_); _g_free0 (_tmp20_); _g_free0 (_tmp18_); _tmp22_ = ((FsoFrameworkAbstractObject*) self)->logger; _tmp23_ = fso_framework_logger_debug (_tmp22_, "resume executed"); g_assert (_tmp23_); } } else { FsoFrameworkLogger* _tmp24_; gboolean _tmp25_ = FALSE; _tmp24_ = ((FsoFrameworkAbstractObject*) self)->logger; _tmp25_ = fso_framework_logger_debug (_tmp24_, "empty screen_resume_command"); g_assert (_tmp25_); } } else { FsoFrameworkLogger* _tmp26_; const gchar* _tmp27_; const gchar* _tmp28_ = NULL; gchar* _tmp29_ = NULL; gchar* _tmp30_; gboolean _tmp31_ = FALSE; _tmp26_ = ((FsoFrameworkAbstractObject*) self)->logger; _tmp27_ = self->priv->screenresumetype; _tmp28_ = string_to_string (_tmp27_); _tmp29_ = g_strconcat ("unsupported screen_resume_type: ", _tmp28_, NULL); _tmp30_ = _tmp29_; _tmp31_ = fso_framework_logger_debug (_tmp26_, _tmp30_); g_assert (_tmp31_); _g_free0 (_tmp30_); } }
void note_pressed_callback (GtkWidget* widget, GdkEventButton* event, GtkMusicGuitarPosition* pos) { GtkWidget* _tmp0_; GtkMusicGuitar* _tmp1_; GtkMusicGuitar* guitar; FILE* _tmp2_; GtkMusicGuitar* _tmp3_; GtkMusicGuitarPosition* _tmp4_; gchar* _tmp5_ = NULL; gchar* _tmp6_; FILE* _tmp7_; GdkEventButton _tmp8_; guint _tmp9_; g_return_if_fail (widget != NULL); g_return_if_fail (event != NULL); g_return_if_fail (pos != NULL); _tmp0_ = widget; _tmp1_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp0_, GTK_MUSIC_TYPE_GUITAR) ? ((GtkMusicGuitar*) _tmp0_) : NULL); guitar = _tmp1_; _tmp2_ = stdout; _tmp3_ = guitar; _tmp4_ = pos; _tmp5_ = gtk_music_guitar_position_to_note (_tmp3_, _tmp4_); _tmp6_ = _tmp5_; fprintf (_tmp2_, "You clicked a %s!\n", _tmp6_); _g_free0 (_tmp6_); _tmp7_ = stdout; fflush (_tmp7_); _tmp8_ = *event; _tmp9_ = _tmp8_.button; if (_tmp9_ == ((guint) 1)) { GtkMusicGuitar* _tmp10_; GtkMusicGuitarPosition* _tmp11_; gushort _tmp12_; GtkMusicGuitarPosition* _tmp13_; gushort _tmp14_; gfloat* _tmp15_ = NULL; gfloat* _tmp16_; gint _tmp16__length1; _tmp10_ = guitar; _tmp11_ = pos; _tmp12_ = _tmp11_->stringIndex; _tmp13_ = pos; _tmp14_ = _tmp13_->fretIndex; _tmp15_ = g_new0 (gfloat, 4); _tmp15_[0] = 0.0f; _tmp15_[1] = 0.0f; _tmp15_[2] = 0.0f; _tmp15_[3] = 1.0f; _tmp16_ = _tmp15_; _tmp16__length1 = 4; gtk_music_guitar_mark_position (_tmp10_, _tmp12_, _tmp14_, _tmp16_, 4); _tmp16_ = (g_free (_tmp16_), NULL); } else { GtkMusicGuitar* _tmp17_; GtkMusicGuitarPosition* _tmp18_; gushort _tmp19_; GtkMusicGuitarPosition* _tmp20_; gushort _tmp21_; _tmp17_ = guitar; _tmp18_ = pos; _tmp19_ = _tmp18_->stringIndex; _tmp20_ = pos; _tmp21_ = _tmp20_->fretIndex; gtk_music_guitar_unmark_position (_tmp17_, _tmp19_, _tmp21_); } _g_object_unref0 (guitar); }
static void ease_flickr_service_real_parse_data (EasePluginImportService* base, const char* jsondata) { #line 298 "ease-import-flickr-service.c" EaseFlickrService * self; JsonObject* obj; char* stat; JsonObject* photos; JsonArray* photo_array; GError * _inner_error_ = NULL; self = (EaseFlickrService*) base; #line 91 "ease-import-flickr-service.vala" g_return_if_fail (jsondata != NULL); #line 93 "ease-import-flickr-service.vala" if (jsondata == NULL) { #line 93 "ease-import-flickr-service.vala" return; #line 312 "ease-import-flickr-service.c" } { #line 97 "ease-import-flickr-service.vala" json_parser_load_from_data (self->priv->parser, jsondata, -1, &_inner_error_); #line 317 "ease-import-flickr-service.c" if (_inner_error_ != NULL) { goto __catch7_g_error; } } goto __finally7; __catch7_g_error: { GError * e; e = _inner_error_; _inner_error_ = NULL; { #line 101 "ease-import-flickr-service.vala" g_error ("ease-import-flickr-service.vala:101: Couldn't parse JSON data: %s", e->message); #line 331 "ease-import-flickr-service.c" _g_error_free0 (e); } } __finally7: 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; } #line 104 "ease-import-flickr-service.vala" obj = _json_object_ref0 (json_node_get_object (json_parser_get_root (self->priv->parser))); #line 106 "ease-import-flickr-service.vala" stat = g_strdup (json_object_get_string_member (obj, "stat")); #line 107 "ease-import-flickr-service.vala" if (_vala_strcmp0 (stat, "ok") != 0) { #line 109 "ease-import-flickr-service.vala" g_warning ("ease-import-flickr-service.vala:109: The request failed : \n" \ "Error code: %G\n" \ "Message: %s", (double) json_object_get_int_member (obj, "code"), json_object_get_string_member (obj, "message")); #line 349 "ease-import-flickr-service.c" _g_free0 (stat); _json_object_unref0 (obj); #line 112 "ease-import-flickr-service.vala" return; #line 354 "ease-import-flickr-service.c" } #line 115 "ease-import-flickr-service.vala" photos = _json_object_ref0 (json_object_get_object_member (obj, "photos")); #line 116 "ease-import-flickr-service.vala" photo_array = _json_array_ref0 (json_object_get_array_member (photos, "photo")); #line 119 "ease-import-flickr-service.vala" json_array_foreach_element (photo_array, __lambda70__json_array_foreach, self); #line 362 "ease-import-flickr-service.c" _json_array_unref0 (photo_array); _json_object_unref0 (photos); _g_free0 (stat); _json_object_unref0 (obj); }
static void dock_manager_preferences_bin_helper_changed (DockManagerPreferencesBin* self, const gchar* path, gboolean enabled, gboolean running) { const gchar* _tmp0_ = NULL; const gchar* _tmp1_ = NULL; gchar* _tmp2_ = NULL; gchar* _tmp3_; GList* _tmp4_ = NULL; GList* tiles; g_return_if_fail (self != NULL); g_return_if_fail (path != NULL); if (enabled) { _tmp0_ = "enabled"; } else { _tmp0_ = "disabled"; } if (running) { _tmp1_ = "running"; } else { _tmp1_ = "stopped"; } _tmp2_ = g_path_get_basename (path); _tmp3_ = _tmp2_; g_debug ("dockmanager-settings.vala:253: %s is now %s, [%s]", _tmp3_, _tmp0_, _tmp1_); _g_free0 (_tmp3_); { GList* helper_collection; GList* helper_it; helper_collection = self->priv->all_helpers; for (helper_it = helper_collection; helper_it != NULL; helper_it = helper_it->next) { DockManagerHelperInfo* helper; helper = (DockManagerHelperInfo*) helper_it->data; { if (g_strcmp0 ((*helper).path, path) == 0) { (*helper).enabled = enabled; (*helper).running = running; } } } } _tmp4_ = dock_manager_tile_view_get_tiles (self->priv->tile_view); tiles = _tmp4_; { GList* to_collection; GList* to_it; to_collection = tiles; for (to_it = to_collection; to_it != NULL; to_it = to_it->next) { DockManagerAbstractTileObject* to; to = (DockManagerAbstractTileObject*) to_it->data; { DockManagerAbstractTileObject* _tmp5_; DockManagerHelperTileObject* _tmp6_; DockManagerHelperTileObject* helper_tile; const gchar* _tmp7_ = NULL; _tmp5_ = to; _tmp6_ = _g_object_ref0 (DOCK_MANAGER_IS_HELPER_TILE_OBJECT (_tmp5_) ? ((DockManagerHelperTileObject*) _tmp5_) : NULL); helper_tile = _tmp6_; _tmp7_ = dock_manager_helper_tile_object_get_helper_path (helper_tile); if (g_strcmp0 (path, _tmp7_) == 0) { dock_manager_helper_tile_object_update_state (helper_tile, enabled, running); _g_object_unref0 (helper_tile); break; } _g_object_unref0 (helper_tile); } } } _g_list_free0 (tiles); }
gint skk_tool_main (gchar** args, int args_length1) { gint result = 0; const gchar* _tmp0_ = NULL; GOptionContext* _tmp1_; GOptionContext* option_context; GOptionContext* _tmp2_; gboolean _tmp7_; GeeArrayList* _tmp19_; GeeArrayList* dictionaries; const gchar* _tmp20_; const gchar* _tmp30_; const gchar* _tmp58_; GeeArrayList* _tmp86_; gint _tmp87_ = 0; gpointer* _tmp88_ = NULL; SkkDict** _tmp89_; gint _tmp89__length1; SkkContext* _tmp90_; SkkContext* _tmp91_; SkkContext* context; const gchar* _tmp92_; SkkContext* _tmp102_; SkkSkkTool* _tmp103_; SkkSkkTool* tool; SkkSkkTool* _tmp104_; gboolean _tmp105_ = FALSE; GError * _inner_error_ = NULL; setlocale (LC_ALL, ""); bindtextdomain (GETTEXT_PACKAGE, LOCALEDIR); bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8"); textdomain (GETTEXT_PACKAGE); _tmp0_ = _ ("- emulate SKK input method on the command line"); _tmp1_ = g_option_context_new (_tmp0_); option_context = _tmp1_; _tmp2_ = option_context; g_option_context_add_main_entries (_tmp2_, SKK_TOOL_options, "libskk"); { GOptionContext* _tmp3_; _tmp3_ = option_context; g_option_context_parse (_tmp3_, &args_length1, &args, &_inner_error_); if (_inner_error_ != NULL) { if (_inner_error_->domain == G_OPTION_ERROR) { goto __catch0_g_option_error; } _g_option_context_free0 (option_context); g_critical ("file %s: line %d: unexpected 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 0; } } goto __finally0; __catch0_g_option_error: { GError* e = NULL; FILE* _tmp4_; GError* _tmp5_; const gchar* _tmp6_; e = _inner_error_; _inner_error_ = NULL; _tmp4_ = stderr; _tmp5_ = e; _tmp6_ = _tmp5_->message; fprintf (_tmp4_, "%s\n", _tmp6_); result = 1; _g_error_free0 (e); _g_option_context_free0 (option_context); return result; } __finally0: if (_inner_error_ != NULL) { _g_option_context_free0 (option_context); 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 0; } skk_init (); _tmp7_ = skk_tool_list_typing_rules; if (_tmp7_) { gint _tmp8_ = 0; SkkRuleMetadata* _tmp9_ = NULL; SkkRuleMetadata* rules; gint rules_length1; gint _rules_size_; SkkRuleMetadata* _tmp10_; gint _tmp10__length1; _tmp9_ = skk_rule_list (&_tmp8_); rules = _tmp9_; rules_length1 = _tmp8_; _rules_size_ = rules_length1; _tmp10_ = rules; _tmp10__length1 = rules_length1; { SkkRuleMetadata* rule_collection = NULL; gint rule_collection_length1 = 0; gint _rule_collection_size_ = 0; gint rule_it = 0; rule_collection = _tmp10_; rule_collection_length1 = _tmp10__length1; for (rule_it = 0; rule_it < _tmp10__length1; rule_it = rule_it + 1) { SkkRuleMetadata _tmp11_ = {0}; SkkRuleMetadata rule = {0}; skk_rule_metadata_copy (&rule_collection[rule_it], &_tmp11_); rule = _tmp11_; { FILE* _tmp12_; SkkRuleMetadata _tmp13_; const gchar* _tmp14_; SkkRuleMetadata _tmp15_; const gchar* _tmp16_; SkkRuleMetadata _tmp17_; const gchar* _tmp18_; _tmp12_ = stdout; _tmp13_ = rule; _tmp14_ = _tmp13_.name; _tmp15_ = rule; _tmp16_ = _tmp15_.label; _tmp17_ = rule; _tmp18_ = _tmp17_.description; fprintf (_tmp12_, "%s - %s: %s\n", _tmp14_, _tmp16_, _tmp18_); skk_rule_metadata_destroy (&rule); } } } result = 0; rules = (_vala_SkkRuleMetadata_array_free (rules, rules_length1), NULL); _g_option_context_free0 (option_context); return result; } _tmp19_ = gee_array_list_new (SKK_TYPE_DICT, (GBoxedCopyFunc) g_object_ref, g_object_unref, NULL); dictionaries = _tmp19_; _tmp20_ = skk_tool_user_dict; if (_tmp20_ != NULL) { { const gchar* _tmp21_; SkkUserDict* _tmp22_; SkkUserDict* _tmp23_; GeeArrayList* _tmp24_; SkkUserDict* _tmp25_; _tmp21_ = skk_tool_user_dict; _tmp22_ = skk_user_dict_new (_tmp21_, "UTF-8", &_inner_error_); _tmp23_ = _tmp22_; if (_inner_error_ != NULL) { goto __catch1_g_error; } _tmp24_ = dictionaries; _tmp25_ = _tmp23_; gee_abstract_collection_add ((GeeAbstractCollection*) _tmp24_, (SkkDict*) _tmp25_); _g_object_unref0 (_tmp25_); } goto __finally1; __catch1_g_error: { GError* e = NULL; FILE* _tmp26_; const gchar* _tmp27_; GError* _tmp28_; const gchar* _tmp29_; e = _inner_error_; _inner_error_ = NULL; _tmp26_ = stderr; _tmp27_ = skk_tool_user_dict; _tmp28_ = e; _tmp29_ = _tmp28_->message; fprintf (_tmp26_, "can't open user dict %s: %s", _tmp27_, _tmp29_); result = 1; _g_error_free0 (e); _g_object_unref0 (dictionaries); _g_option_context_free0 (option_context); return result; } __finally1: if (_inner_error_ != NULL) { _g_object_unref0 (dictionaries); _g_option_context_free0 (option_context); 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 0; } } _tmp30_ = skk_tool_file_dict; if (_tmp30_ != NULL) { const gchar* _tmp31_; gboolean _tmp32_ = FALSE; _tmp31_ = skk_tool_file_dict; _tmp32_ = g_str_has_suffix (_tmp31_, ".cdb"); if (_tmp32_) { { const gchar* _tmp33_; SkkCdbDict* _tmp34_; SkkCdbDict* _tmp35_; GeeArrayList* _tmp36_; SkkCdbDict* _tmp37_; _tmp33_ = skk_tool_file_dict; _tmp34_ = skk_cdb_dict_new (_tmp33_, "EUC-JP", &_inner_error_); _tmp35_ = _tmp34_; if (_inner_error_ != NULL) { goto __catch2_g_error; } _tmp36_ = dictionaries; _tmp37_ = _tmp35_; gee_abstract_collection_add ((GeeAbstractCollection*) _tmp36_, (SkkDict*) _tmp37_); _g_object_unref0 (_tmp37_); } goto __finally2; __catch2_g_error: { GError* e = NULL; FILE* _tmp38_; const gchar* _tmp39_; GError* _tmp40_; const gchar* _tmp41_; e = _inner_error_; _inner_error_ = NULL; _tmp38_ = stderr; _tmp39_ = skk_tool_file_dict; _tmp40_ = e; _tmp41_ = _tmp40_->message; fprintf (_tmp38_, "can't open CDB dict %s: %s", _tmp39_, _tmp41_); result = 1; _g_error_free0 (e); _g_object_unref0 (dictionaries); _g_option_context_free0 (option_context); return result; } __finally2: if (_inner_error_ != NULL) { _g_object_unref0 (dictionaries); _g_option_context_free0 (option_context); 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 0; } } else { { const gchar* _tmp42_; SkkFileDict* _tmp43_; SkkFileDict* _tmp44_; GeeArrayList* _tmp45_; SkkFileDict* _tmp46_; _tmp42_ = skk_tool_file_dict; _tmp43_ = skk_file_dict_new (_tmp42_, "EUC-JP", &_inner_error_); _tmp44_ = _tmp43_; if (_inner_error_ != NULL) { goto __catch3_g_error; } _tmp45_ = dictionaries; _tmp46_ = _tmp44_; gee_abstract_collection_add ((GeeAbstractCollection*) _tmp45_, (SkkDict*) _tmp46_); _g_object_unref0 (_tmp46_); } goto __finally3; __catch3_g_error: { GError* e = NULL; FILE* _tmp47_; const gchar* _tmp48_; GError* _tmp49_; const gchar* _tmp50_; e = _inner_error_; _inner_error_ = NULL; _tmp47_ = stderr; _tmp48_ = skk_tool_file_dict; _tmp49_ = e; _tmp50_ = _tmp49_->message; fprintf (_tmp47_, "can't open file dict %s: %s", _tmp48_, _tmp50_); result = 1; _g_error_free0 (e); _g_object_unref0 (dictionaries); _g_option_context_free0 (option_context); return result; } __finally3: if (_inner_error_ != NULL) { _g_object_unref0 (dictionaries); _g_option_context_free0 (option_context); 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 0; } } } else { gchar* _tmp51_ = NULL; gchar* _tmp52_; SkkFileDict* _tmp53_; SkkFileDict* _tmp54_; SkkFileDict* _tmp55_; GeeArrayList* _tmp56_; SkkFileDict* _tmp57_; _tmp51_ = g_build_filename (DATADIR, "skk", "SKK-JISYO.L", NULL); _tmp52_ = _tmp51_; _tmp53_ = skk_file_dict_new (_tmp52_, "EUC-JP", &_inner_error_); _tmp54_ = _tmp53_; _g_free0 (_tmp52_); _tmp55_ = _tmp54_; if (_inner_error_ != NULL) { _g_object_unref0 (dictionaries); _g_option_context_free0 (option_context); 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 0; } _tmp56_ = dictionaries; _tmp57_ = _tmp55_; gee_abstract_collection_add ((GeeAbstractCollection*) _tmp56_, (SkkDict*) _tmp57_); _g_object_unref0 (_tmp57_); } _tmp58_ = skk_tool_skkserv; if (_tmp58_ != NULL) { const gchar* _tmp59_; gint _tmp60_ = 0; gint index; gchar* host = NULL; guint16 port = 0U; gint _tmp61_; _tmp59_ = skk_tool_skkserv; _tmp60_ = string_last_index_of (_tmp59_, ":", 0); index = _tmp60_; _tmp61_ = index; if (_tmp61_ < 0) { const gchar* _tmp62_; gchar* _tmp63_; _tmp62_ = skk_tool_skkserv; _tmp63_ = g_strdup (_tmp62_); _g_free0 (host); host = _tmp63_; port = (guint16) 1178; } else { const gchar* _tmp64_; gint _tmp65_; gchar* _tmp66_ = NULL; const gchar* _tmp67_; gint _tmp68_; const gchar* _tmp69_; gint _tmp70_; gint _tmp71_; gchar* _tmp72_ = NULL; gchar* _tmp73_; gint _tmp74_ = 0; _tmp64_ = skk_tool_skkserv; _tmp65_ = index; _tmp66_ = string_slice (_tmp64_, (glong) 0, (glong) _tmp65_); _g_free0 (host); host = _tmp66_; _tmp67_ = skk_tool_skkserv; _tmp68_ = index; _tmp69_ = skk_tool_skkserv; _tmp70_ = strlen (_tmp69_); _tmp71_ = _tmp70_; _tmp72_ = string_slice (_tmp67_, (glong) (_tmp68_ + 1), (glong) _tmp71_); _tmp73_ = _tmp72_; _tmp74_ = atoi (_tmp73_); port = (guint16) _tmp74_; _g_free0 (_tmp73_); } { const gchar* _tmp75_; guint16 _tmp76_; SkkSkkServ* _tmp77_; SkkSkkServ* _tmp78_; GeeArrayList* _tmp79_; SkkSkkServ* _tmp80_; _tmp75_ = host; _tmp76_ = port; _tmp77_ = skk_skk_serv_new (_tmp75_, _tmp76_, "EUC-JP", &_inner_error_); _tmp78_ = _tmp77_; if (_inner_error_ != NULL) { goto __catch4_g_error; } _tmp79_ = dictionaries; _tmp80_ = _tmp78_; gee_abstract_collection_add ((GeeAbstractCollection*) _tmp79_, (SkkDict*) _tmp80_); _g_object_unref0 (_tmp80_); } goto __finally4; __catch4_g_error: { GError* e = NULL; FILE* _tmp81_; const gchar* _tmp82_; guint16 _tmp83_; GError* _tmp84_; const gchar* _tmp85_; e = _inner_error_; _inner_error_ = NULL; _tmp81_ = stderr; _tmp82_ = host; _tmp83_ = port; _tmp84_ = e; _tmp85_ = _tmp84_->message; fprintf (_tmp81_, "can't connect to skkserv at %s:%d: %s", _tmp82_, (gint) _tmp83_, _tmp85_); result = 1; _g_error_free0 (e); _g_free0 (host); _g_object_unref0 (dictionaries); _g_option_context_free0 (option_context); return result; } __finally4: if (_inner_error_ != NULL) { _g_free0 (host); _g_object_unref0 (dictionaries); _g_option_context_free0 (option_context); 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 0; } _g_free0 (host); } _tmp86_ = dictionaries; _tmp88_ = gee_abstract_collection_to_array ((GeeAbstractCollection*) _tmp86_, &_tmp87_); _tmp89_ = _tmp88_; _tmp89__length1 = _tmp87_; _tmp90_ = skk_context_new (_tmp89_, _tmp87_); _tmp91_ = _tmp90_; _tmp89_ = (_vala_array_free (_tmp89_, _tmp89__length1, (GDestroyNotify) g_object_unref), NULL); context = _tmp91_; _tmp92_ = skk_tool_typing_rule; if (_tmp92_ != NULL) { { const gchar* _tmp93_; SkkRule* _tmp94_; SkkRule* _tmp95_; SkkContext* _tmp96_; SkkRule* _tmp97_; _tmp93_ = skk_tool_typing_rule; _tmp94_ = skk_rule_new (_tmp93_, &_inner_error_); _tmp95_ = _tmp94_; if (_inner_error_ != NULL) { if (_inner_error_->domain == SKK_RULE_PARSE_ERROR) { goto __catch5_skk_rule_parse_error; } _g_object_unref0 (context); _g_object_unref0 (dictionaries); _g_option_context_free0 (option_context); g_critical ("file %s: line %d: unexpected 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 0; } _tmp96_ = context; _tmp97_ = _tmp95_; skk_context_set_typing_rule (_tmp96_, _tmp97_); _g_object_unref0 (_tmp97_); } goto __finally5; __catch5_skk_rule_parse_error: { GError* e = NULL; FILE* _tmp98_; const gchar* _tmp99_; GError* _tmp100_; const gchar* _tmp101_; e = _inner_error_; _inner_error_ = NULL; _tmp98_ = stderr; _tmp99_ = skk_tool_typing_rule; _tmp100_ = e; _tmp101_ = _tmp100_->message; fprintf (_tmp98_, "can't load rule \"%s\": %s\n", _tmp99_, _tmp101_); result = 1; _g_error_free0 (e); _g_object_unref0 (context); _g_object_unref0 (dictionaries); _g_option_context_free0 (option_context); return result; } __finally5: if (_inner_error_ != NULL) { _g_object_unref0 (context); _g_object_unref0 (dictionaries); _g_option_context_free0 (option_context); 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 0; } } _tmp102_ = context; _tmp103_ = skk_skk_tool_new (_tmp102_); tool = _tmp103_; _tmp104_ = tool; _tmp105_ = skk_tool_run ((SkkTool*) _tmp104_); if (!_tmp105_) { result = 1; _g_object_unref0 (tool); _g_object_unref0 (context); _g_object_unref0 (dictionaries); _g_option_context_free0 (option_context); return result; } result = 0; _g_object_unref0 (tool); _g_object_unref0 (context); _g_object_unref0 (dictionaries); _g_option_context_free0 (option_context); return result; }
void property_item_double_set_data_throw (PropertySet* propertySet, const gchar* name, gdouble data, GError** error) { PropertySet* _tmp0_; const gchar* _tmp1_; PropertyItem* _tmp2_ = NULL; PropertyItem* propertyItem; PropertyItem* _tmp3_; PropertySet* _tmp7_; const gchar* _tmp8_; gchar* _tmp9_; gchar* _tmp10_; gchar* _tmp11_; gchar* _tmp12_; const gchar* _tmp13_; gchar* _tmp14_; gchar* _tmp15_; gchar* _tmp16_; gchar* _tmp17_; GError* _tmp18_; GError* _tmp19_; GError * _inner_error_ = NULL; g_return_if_fail (propertySet != NULL); g_return_if_fail (name != NULL); _tmp0_ = propertySet; _tmp1_ = name; _tmp2_ = property_set_get_item (_tmp0_, _tmp1_); propertyItem = _tmp2_; _tmp3_ = propertyItem; if (_tmp3_ != NULL) { PropertyItem* _tmp4_; _tmp4_ = propertyItem; if (IS_PROPERTY_ITEM_DOUBLE (_tmp4_)) { PropertyItem* _tmp5_; gdouble _tmp6_; _tmp5_ = propertyItem; _tmp6_ = data; (IS_PROPERTY_ITEM_DOUBLE (_tmp5_) ? ((PropertyItemDouble*) _tmp5_) : NULL)->data = _tmp6_; _property_item_unref0 (propertyItem); return; } } _tmp7_ = propertySet; _tmp8_ = ((PropertyItem*) _tmp7_)->name; _tmp9_ = g_strconcat ("\"", _tmp8_, NULL); _tmp10_ = _tmp9_; _tmp11_ = g_strconcat (_tmp10_, "\" does not contain a double named \"", NULL); _tmp12_ = _tmp11_; _tmp13_ = name; _tmp14_ = g_strconcat (_tmp12_, _tmp13_, NULL); _tmp15_ = _tmp14_; _tmp16_ = g_strconcat (_tmp15_, "\"", NULL); _tmp17_ = _tmp16_; _tmp18_ = g_error_new_literal (PROPERTY_ITEM_ERROR, PROPERTY_ITEM_ERROR_ITEM_NOT_FOUND, _tmp17_); _tmp19_ = _tmp18_; _g_free0 (_tmp17_); _g_free0 (_tmp15_); _g_free0 (_tmp12_); _g_free0 (_tmp10_); _inner_error_ = _tmp19_; if (_inner_error_->domain == PROPERTY_ITEM_ERROR) { g_propagate_error (error, _inner_error_); _property_item_unref0 (propertyItem); return; } else { _property_item_unref0 (propertyItem); 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; } _property_item_unref0 (propertyItem); }
static void dock_manager_preferences_bin_update_helpers (DockManagerPreferencesBin* self) { gint _tmp0_; DockManagerPreferencesBinHelperFilterType filter; const gchar* _tmp1_ = NULL; gchar* _tmp2_; gchar* search_filter; GError * _inner_error_ = NULL; g_return_if_fail (self != NULL); dock_manager_tile_view_clear (self->priv->tile_view); _tmp0_ = gtk_combo_box_get_active (self->priv->combobox); filter = (DockManagerPreferencesBinHelperFilterType) _tmp0_; _tmp1_ = dock_manager_search_entry_get_text (self->priv->search_entry); _tmp2_ = g_strdup (_tmp1_); search_filter = _tmp2_; { GList* helper_collection; GList* helper_it; helper_collection = self->priv->all_helpers; for (helper_it = helper_collection; helper_it != NULL; helper_it = helper_it->next) { DockManagerHelperInfo* helper; helper = (DockManagerHelperInfo*) helper_it->data; { gboolean _tmp3_ = FALSE; gboolean _tmp4_ = FALSE; gboolean _tmp5_ = FALSE; gboolean _tmp6_ = FALSE; DockManagerHelperTileObject* _tmp11_ = NULL; DockManagerHelperTileObject* h_tile; if (filter == DOCK_MANAGER_PREFERENCES_BIN_HELPER_FILTER_TYPE_USABLE) { _tmp3_ = !(*helper).app_available; } else { _tmp3_ = FALSE; } if (_tmp3_) { continue; } if (filter == DOCK_MANAGER_PREFERENCES_BIN_HELPER_FILTER_TYPE_ENABLED) { _tmp4_ = !(*helper).enabled; } else { _tmp4_ = FALSE; } if (_tmp4_) { continue; } if (filter == DOCK_MANAGER_PREFERENCES_BIN_HELPER_FILTER_TYPE_DISABLED) { _tmp5_ = (*helper).enabled; } else { _tmp5_ = FALSE; } if (_tmp5_) { continue; } if (search_filter != NULL) { _tmp6_ = g_strcmp0 (search_filter, "") != 0; } else { _tmp6_ = FALSE; } if (_tmp6_) { GRegex* _tmp7_ = NULL; GRegex* r; gboolean _tmp8_ = FALSE; gboolean _tmp9_; _tmp7_ = g_regex_new (search_filter, G_REGEX_CASELESS, 0, &_inner_error_); r = _tmp7_; if (_inner_error_ != NULL) { _g_free0 (search_filter); 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; } _tmp9_ = g_regex_match (r, (*helper).description, 0, NULL); if (!_tmp9_) { gboolean _tmp10_; _tmp10_ = g_regex_match (r, (*helper).name, 0, NULL); _tmp8_ = !_tmp10_; } else { _tmp8_ = FALSE; } if (_tmp8_) { _g_regex_unref0 (r); continue; } _g_regex_unref0 (r); } _tmp11_ = dock_manager_helper_tile_object_new (helper); h_tile = _tmp11_; dock_manager_helper_tile_object_update_state (h_tile, (*helper).enabled, (*helper).running); dock_manager_tile_view_append_tile (self->priv->tile_view, (DockManagerAbstractTileObject*) h_tile); g_signal_connect_object ((DockManagerAbstractTileObject*) h_tile, "active-changed", (GCallback) __lambda3__dock_manager_abstract_tile_object_active_changed, self, 0); _g_object_unref0 (h_tile); } } } _g_free0 (search_filter); }
AtlantisDocument* atlantis_document_construct (GType object_type, const char* path) { #line 73 "document.c" GError * _inner_error_; AtlantisDocument * self; char* _tmp0_; char* _tmp1_; GtkSourceLanguageManager* slm; GtkSourceLanguage* lang; GtkSourceLanguageManager* _tmp2_; GtkSourceLanguage* _tmp3_; #line 11 "document.vala" g_return_val_if_fail (path != NULL, NULL); #line 84 "document.c" _inner_error_ = NULL; self = g_object_newv (object_type, 0, NULL); #line 13 "document.vala" self->priv->fileName = (_tmp0_ = atlantis_document_uri_to_filename (self, path), _g_free0 (self->priv->fileName), _tmp0_); #line 14 "document.vala" self->priv->baseName = (_tmp1_ = g_path_get_basename (self->priv->fileName), _g_free0 (self->priv->baseName), _tmp1_); #line 91 "document.c" slm = NULL; lang = NULL; #line 18 "document.vala" slm = (_tmp2_ = gtk_source_language_manager_new (), _g_object_unref0 (slm), _tmp2_); #line 19 "document.vala" lang = (_tmp3_ = _g_object_ref0 (gtk_source_language_manager_get_language (slm, "vala")), _g_object_unref0 (lang), _tmp3_); #line 21 "document.vala" if (lang != NULL) { #line 100 "document.c" char* content; char* _tmp6_; gboolean _tmp5_; char* _tmp4_ = NULL; content = NULL; #line 24 "document.vala" _tmp5_ = g_file_get_contents (self->priv->fileName, &_tmp4_, NULL, &_inner_error_); #line 24 "document.vala" content = (_tmp6_ = _tmp4_, _g_free0 (content), _tmp6_); #line 24 "document.vala" _tmp5_; #line 112 "document.c" if (_inner_error_ != NULL) { _g_free0 (content); _g_object_unref0 (slm); _g_object_unref0 (lang); 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 NULL; } #line 25 "document.vala" g_object_set ((GtkTextBuffer*) self, "text", content, NULL); #line 26 "document.vala" gtk_source_buffer_set_language ((GtkSourceBuffer*) self, lang); #line 27 "document.vala" gtk_source_buffer_set_highlight_syntax ((GtkSourceBuffer*) self, TRUE); #line 127 "document.c" _g_free0 (content); } _g_object_unref0 (slm); _g_object_unref0 (lang); return self; }
gchar* vala_method_type_to_prototype_string (ValaMethodType* self, gboolean with_type_parameters) { gchar* result = NULL; ValaDataType* _tmp0_ = NULL; ValaDataType* _tmp1_; gchar* _tmp2_ = NULL; gchar* _tmp3_; gchar* _tmp4_ = NULL; gchar* _tmp5_; gchar* _tmp6_ = NULL; gchar* _tmp7_; gchar* proto; gint i; const gchar* _tmp73_; gchar* _tmp74_; g_return_val_if_fail (self != NULL, NULL); _tmp0_ = vala_data_type_get_return_type ((ValaDataType*) self); _tmp1_ = _tmp0_; _tmp2_ = vala_code_node_to_string ((ValaCodeNode*) _tmp1_); _tmp3_ = _tmp2_; _tmp4_ = vala_code_node_to_string ((ValaCodeNode*) self); _tmp5_ = _tmp4_; _tmp6_ = g_strdup_printf ("%s %s (", _tmp3_, _tmp5_); _tmp7_ = _tmp6_; _g_free0 (_tmp5_); _g_free0 (_tmp3_); _vala_code_node_unref0 (_tmp1_); proto = _tmp7_; i = 1; { ValaList* _tmp8_ = NULL; ValaList* _param_list; ValaList* _tmp9_; gint _tmp10_; gint _tmp11_; gint _param_size; gint _param_index; _tmp8_ = vala_data_type_get_parameters ((ValaDataType*) self); _param_list = _tmp8_; _tmp9_ = _param_list; _tmp10_ = vala_collection_get_size ((ValaCollection*) _tmp9_); _tmp11_ = _tmp10_; _param_size = _tmp11_; _param_index = -1; while (TRUE) { gint _tmp12_; gint _tmp13_; gint _tmp14_; ValaList* _tmp15_; gint _tmp16_; gpointer _tmp17_ = NULL; ValaParameter* param; gint _tmp18_; ValaParameter* _tmp21_; gboolean _tmp22_; gboolean _tmp23_; ValaParameter* _tmp26_; ValaParameterDirection _tmp27_; ValaParameterDirection _tmp28_; const gchar* _tmp52_; ValaParameter* _tmp53_; ValaDataType* _tmp54_; ValaDataType* _tmp55_; gchar* _tmp56_ = NULL; gchar* _tmp57_; ValaParameter* _tmp58_; const gchar* _tmp59_; const gchar* _tmp60_; gchar* _tmp61_ = NULL; ValaParameter* _tmp62_; ValaExpression* _tmp63_; ValaExpression* _tmp64_; gint _tmp72_; _tmp12_ = _param_index; _param_index = _tmp12_ + 1; _tmp13_ = _param_index; _tmp14_ = _param_size; if (!(_tmp13_ < _tmp14_)) { break; } _tmp15_ = _param_list; _tmp16_ = _param_index; _tmp17_ = vala_list_get (_tmp15_, _tmp16_); param = (ValaParameter*) _tmp17_; _tmp18_ = i; if (_tmp18_ > 1) { const gchar* _tmp19_; gchar* _tmp20_; _tmp19_ = proto; _tmp20_ = g_strconcat (_tmp19_, ", ", NULL); _g_free0 (proto); proto = _tmp20_; } _tmp21_ = param; _tmp22_ = vala_parameter_get_ellipsis (_tmp21_); _tmp23_ = _tmp22_; if (_tmp23_) { const gchar* _tmp24_; gchar* _tmp25_; _tmp24_ = proto; _tmp25_ = g_strconcat (_tmp24_, "...", NULL); _g_free0 (proto); proto = _tmp25_; _vala_code_node_unref0 (param); continue; } _tmp26_ = param; _tmp27_ = vala_parameter_get_direction (_tmp26_); _tmp28_ = _tmp27_; if (_tmp28_ == VALA_PARAMETER_DIRECTION_IN) { ValaParameter* _tmp29_; ValaDataType* _tmp30_; ValaDataType* _tmp31_; gboolean _tmp32_; gboolean _tmp33_; _tmp29_ = param; _tmp30_ = vala_variable_get_variable_type ((ValaVariable*) _tmp29_); _tmp31_ = _tmp30_; _tmp32_ = vala_data_type_get_value_owned (_tmp31_); _tmp33_ = _tmp32_; if (_tmp33_) { const gchar* _tmp34_; gchar* _tmp35_; _tmp34_ = proto; _tmp35_ = g_strconcat (_tmp34_, "owned ", NULL); _g_free0 (proto); proto = _tmp35_; } } else { ValaParameter* _tmp36_; ValaParameterDirection _tmp37_; ValaParameterDirection _tmp38_; ValaParameter* _tmp46_; ValaDataType* _tmp47_; ValaDataType* _tmp48_; gboolean _tmp49_ = FALSE; _tmp36_ = param; _tmp37_ = vala_parameter_get_direction (_tmp36_); _tmp38_ = _tmp37_; if (_tmp38_ == VALA_PARAMETER_DIRECTION_REF) { const gchar* _tmp39_; gchar* _tmp40_; _tmp39_ = proto; _tmp40_ = g_strconcat (_tmp39_, "ref ", NULL); _g_free0 (proto); proto = _tmp40_; } else { ValaParameter* _tmp41_; ValaParameterDirection _tmp42_; ValaParameterDirection _tmp43_; _tmp41_ = param; _tmp42_ = vala_parameter_get_direction (_tmp41_); _tmp43_ = _tmp42_; if (_tmp43_ == VALA_PARAMETER_DIRECTION_OUT) { const gchar* _tmp44_; gchar* _tmp45_; _tmp44_ = proto; _tmp45_ = g_strconcat (_tmp44_, "out ", NULL); _g_free0 (proto); proto = _tmp45_; } } _tmp46_ = param; _tmp47_ = vala_variable_get_variable_type ((ValaVariable*) _tmp46_); _tmp48_ = _tmp47_; _tmp49_ = vala_data_type_is_weak (_tmp48_); if (_tmp49_) { const gchar* _tmp50_; gchar* _tmp51_; _tmp50_ = proto; _tmp51_ = g_strconcat (_tmp50_, "unowned ", NULL); _g_free0 (proto); proto = _tmp51_; } } _tmp52_ = proto; _tmp53_ = param; _tmp54_ = vala_variable_get_variable_type ((ValaVariable*) _tmp53_); _tmp55_ = _tmp54_; _tmp56_ = vala_data_type_to_qualified_string (_tmp55_, NULL); _tmp57_ = _tmp56_; _tmp58_ = param; _tmp59_ = vala_symbol_get_name ((ValaSymbol*) _tmp58_); _tmp60_ = _tmp59_; _tmp61_ = g_strdup_printf ("%s%s %s", _tmp52_, _tmp57_, _tmp60_); _g_free0 (proto); proto = _tmp61_; _g_free0 (_tmp57_); _tmp62_ = param; _tmp63_ = vala_variable_get_initializer ((ValaVariable*) _tmp62_); _tmp64_ = _tmp63_; if (_tmp64_ != NULL) { const gchar* _tmp65_; ValaParameter* _tmp66_; ValaExpression* _tmp67_; ValaExpression* _tmp68_; gchar* _tmp69_ = NULL; gchar* _tmp70_; gchar* _tmp71_ = NULL; _tmp65_ = proto; _tmp66_ = param; _tmp67_ = vala_variable_get_initializer ((ValaVariable*) _tmp66_); _tmp68_ = _tmp67_; _tmp69_ = vala_code_node_to_string ((ValaCodeNode*) _tmp68_); _tmp70_ = _tmp69_; _tmp71_ = g_strdup_printf ("%s = %s", _tmp65_, _tmp70_); _g_free0 (proto); proto = _tmp71_; _g_free0 (_tmp70_); } _tmp72_ = i; i = _tmp72_ + 1; _vala_code_node_unref0 (param); } _vala_iterable_unref0 (_param_list); } _tmp73_ = proto; _tmp74_ = g_strconcat (_tmp73_, ")", NULL); result = _tmp74_; _g_free0 (proto); return result; }
JsonParser* zenmoney_home_timeline (Zenmoney* self) { JsonParser* result = NULL; SoupSession* session = NULL; SoupSessionAsync* _tmp0_ = NULL; SoupMessage* message = NULL; OauthZenmoney* _tmp1_ = NULL; SoupMessage* _tmp2_ = NULL; JsonParser* parser = NULL; JsonParser* _tmp3_ = NULL; SoupMessageBody* _tmp20_ = NULL; SoupBuffer* _tmp21_ = NULL; SoupBuffer* _tmp22_ = NULL; guint8* _tmp23_ = NULL; gint _tmp23__length1 = 0; gchar* _tmp24_ = NULL; gchar* _tmp25_ = NULL; GError * _inner_error_ = NULL; g_return_val_if_fail (self != NULL, NULL); g_print ("Home_timeline /n"); _tmp0_ = (SoupSessionAsync*) soup_session_async_new (); session = (SoupSession*) _tmp0_; _tmp1_ = self->priv->ot; _tmp2_ = oauth_zenmoney_Auth (_tmp1_, "POST", OWNER_INFO_URL, NULL); message = _tmp2_; soup_session_send_message (session, message); _tmp3_ = json_parser_new (); parser = _tmp3_; { SoupMessageBody* _tmp4_ = NULL; SoupBuffer* _tmp5_ = NULL; SoupBuffer* _tmp6_ = NULL; guint8* _tmp7_ = NULL; gint _tmp7__length1 = 0; gchar* _tmp8_ = NULL; gchar* _tmp9_ = NULL; gchar* _tmp10_ = NULL; gchar* _tmp11_ = NULL; SoupMessageBody* _tmp12_ = NULL; SoupBuffer* _tmp13_ = NULL; SoupBuffer* _tmp14_ = NULL; guint8* _tmp15_ = NULL; gint _tmp15__length1 = 0; _tmp4_ = message->response_body; _tmp5_ = soup_message_body_flatten (_tmp4_); _tmp6_ = _tmp5_; _tmp7_ = _tmp6_->data; _tmp7__length1 = (gint) _tmp6_->length; _tmp8_ = g_strconcat ("response: ", (const gchar*) _tmp7_, NULL); _tmp9_ = _tmp8_; _tmp10_ = g_strconcat (_tmp9_, "\n", NULL); _tmp11_ = _tmp10_; g_print ("%s", _tmp11_); _g_free0 (_tmp11_); _g_free0 (_tmp9_); __vala_SoupBuffer_free0 (_tmp6_); _tmp12_ = message->response_body; _tmp13_ = soup_message_body_flatten (_tmp12_); _tmp14_ = _tmp13_; _tmp15_ = _tmp14_->data; _tmp15__length1 = (gint) _tmp14_->length; json_parser_load_from_data (parser, (const gchar*) _tmp15_, (gssize) (-1), &_inner_error_); __vala_SoupBuffer_free0 (_tmp14_); if (G_UNLIKELY (_inner_error_ != NULL)) { goto __catch5_g_error; } } goto __finally5; __catch5_g_error: { GError* e = NULL; GError* _tmp16_ = NULL; const gchar* _tmp17_ = NULL; gchar* _tmp18_ = NULL; gchar* _tmp19_ = NULL; e = _inner_error_; _inner_error_ = NULL; _tmp16_ = e; _tmp17_ = _tmp16_->message; _tmp18_ = g_strconcat ("Error: ", _tmp17_, NULL); _tmp19_ = _tmp18_; g_print ("%s", _tmp19_); _g_free0 (_tmp19_); _g_error_free0 (e); } __finally5: if (G_UNLIKELY (_inner_error_ != NULL)) { _g_object_unref0 (parser); _g_object_unref0 (message); _g_object_unref0 (session); 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 NULL; } _tmp20_ = message->response_body; _tmp21_ = soup_message_body_flatten (_tmp20_); _tmp22_ = _tmp21_; _tmp23_ = _tmp22_->data; _tmp23__length1 = (gint) _tmp22_->length; _tmp24_ = g_strconcat ("response", (const gchar*) _tmp23_, NULL); _tmp25_ = _tmp24_; g_print ("%s", _tmp25_); _g_free0 (_tmp25_); __vala_SoupBuffer_free0 (_tmp22_); result = parser; _g_object_unref0 (message); _g_object_unref0 (session); return result; }
static void tag_finalize (Tag* obj) { Tag * self; self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_TAG, Tag); _g_free0 (self->text); }
static gchar* string_replace (const gchar* self, const gchar* old, const gchar* replacement) { gchar* result = NULL; GError * _inner_error_ = NULL; g_return_val_if_fail (self != NULL, NULL); g_return_val_if_fail (old != NULL, NULL); g_return_val_if_fail (replacement != NULL, NULL); { const gchar* _tmp0_; gchar* _tmp1_ = NULL; gchar* _tmp2_; GRegex* _tmp3_; GRegex* _tmp4_; GRegex* regex; GRegex* _tmp5_; const gchar* _tmp6_; gchar* _tmp7_ = NULL; gchar* _tmp8_; _tmp0_ = old; _tmp1_ = g_regex_escape_string (_tmp0_, -1); _tmp2_ = _tmp1_; _tmp3_ = g_regex_new (_tmp2_, 0, 0, &_inner_error_); _tmp4_ = _tmp3_; _g_free0 (_tmp2_); regex = _tmp4_; if (_inner_error_ != NULL) { if (_inner_error_->domain == G_REGEX_ERROR) { goto __catch6_g_regex_error; } g_critical ("file %s: line %d: unexpected 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 NULL; } _tmp5_ = regex; _tmp6_ = replacement; _tmp7_ = g_regex_replace_literal (_tmp5_, self, (gssize) (-1), 0, _tmp6_, 0, &_inner_error_); _tmp8_ = _tmp7_; if (_inner_error_ != NULL) { _g_regex_unref0 (regex); if (_inner_error_->domain == G_REGEX_ERROR) { goto __catch6_g_regex_error; } _g_regex_unref0 (regex); g_critical ("file %s: line %d: unexpected 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 NULL; } result = _tmp8_; _g_regex_unref0 (regex); return result; } goto __finally6; __catch6_g_regex_error: { GError* e = NULL; e = _inner_error_; _inner_error_ = NULL; g_assert_not_reached (); _g_error_free0 (e); } __finally6: 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 NULL; } }
static gboolean slingshot_frontend_app_item_draw_icon (SlingshotFrontendAppItem* self, GtkWidget* widget, GdkEventExpose* event) { gboolean result = FALSE; GtkAllocation size = {0}; GtkWidget* _tmp0_; GtkAllocation _tmp1_ = {0}; GtkWidget* _tmp2_; GdkWindow* _tmp3_; cairo_t* _tmp4_ = NULL; cairo_t* context; GdkPixbuf* _tmp5_; GtkAllocation _tmp6_; gint _tmp7_; GdkPixbuf* _tmp8_; gint _tmp9_; gint _tmp10_; GtkAllocation _tmp11_; gint _tmp12_; GtkAllocation _tmp13_; gint _tmp14_; cairo_text_extents_t extents = {0}; GtkAllocation _tmp15_; const gchar* _tmp16_; gchar* _tmp17_ = NULL; cairo_text_extents_t _tmp18_ = {0}; GtkAllocation _tmp19_; gint _tmp20_; GtkAllocation _tmp21_; gint _tmp22_; cairo_text_extents_t _tmp23_; gdouble _tmp24_; GtkAllocation _tmp25_; gint _tmp26_; GtkAllocation _tmp27_; gint _tmp28_; const gchar* _tmp29_; GtkAllocation _tmp30_; gint _tmp31_; GtkAllocation _tmp32_; gint _tmp33_; cairo_text_extents_t _tmp34_; gdouble _tmp35_; GtkAllocation _tmp36_; gint _tmp37_; GtkAllocation _tmp38_; gint _tmp39_; const gchar* _tmp40_; g_return_val_if_fail (self != NULL, FALSE); g_return_val_if_fail (widget != NULL, FALSE); g_return_val_if_fail (event != NULL, FALSE); _tmp0_ = widget; gtk_widget_get_allocation (_tmp0_, &_tmp1_); size = _tmp1_; _tmp2_ = widget; _tmp3_ = _tmp2_->window; _tmp4_ = gdk_cairo_create ((GdkDrawable*) _tmp3_); context = _tmp4_; _tmp5_ = self->priv->icon; _tmp6_ = size; _tmp7_ = _tmp6_.x; _tmp8_ = self->priv->icon; _tmp9_ = gdk_pixbuf_get_width (_tmp8_); _tmp10_ = _tmp9_; _tmp11_ = size; _tmp12_ = _tmp11_.width; _tmp13_ = size; _tmp14_ = _tmp13_.y; gdk_cairo_set_source_pixbuf (context, _tmp5_, _tmp7_ + ((_tmp10_ - _tmp12_) / (-2.0)), (gdouble) _tmp14_); cairo_paint (context); cairo_select_font_face (context, "Sans", CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_NORMAL); cairo_set_font_size (context, 11.5); _tmp15_ = size; _tmp16_ = self->priv->label; slingshot_frontend_utilities_truncate_text (context, &_tmp15_, (guint) 10, _tmp16_, &_tmp17_, &_tmp18_); _g_free0 (self->priv->label); self->priv->label = _tmp17_; extents = _tmp18_; _tmp19_ = size; _tmp20_ = _tmp19_.x; _tmp21_ = size; _tmp22_ = _tmp21_.width; _tmp23_ = extents; _tmp24_ = _tmp23_.width; _tmp25_ = size; _tmp26_ = _tmp25_.y; _tmp27_ = size; _tmp28_ = _tmp27_.height; cairo_move_to (context, ((_tmp20_ + (_tmp22_ / 2)) - (_tmp24_ / 2)) + 1, (gdouble) (((_tmp26_ + _tmp28_) - 10) + 1)); cairo_set_source_rgba (context, 0.0, 0.0, 0.0, 0.8); _tmp29_ = self->priv->label; cairo_show_text (context, _tmp29_); cairo_set_source_rgba (context, 1.0, 1.0, 1.0, 1.0); _tmp30_ = size; _tmp31_ = _tmp30_.x; _tmp32_ = size; _tmp33_ = _tmp32_.width; _tmp34_ = extents; _tmp35_ = _tmp34_.width; _tmp36_ = size; _tmp37_ = _tmp36_.y; _tmp38_ = size; _tmp39_ = _tmp38_.height; cairo_move_to (context, (_tmp31_ + (_tmp33_ / 2)) - (_tmp35_ / 2), (gdouble) ((_tmp37_ + _tmp39_) - 10)); _tmp40_ = self->priv->label; cairo_show_text (context, _tmp40_); result = FALSE; _cairo_destroy0 (context); return result; }
static gboolean skk_skk_tool_real_run (SkkTool* base) { SkkSkkTool * self; gboolean result = FALSE; gchar* line = NULL; self = (SkkSkkTool*) base; while (TRUE) { FILE* _tmp0_; gchar* _tmp1_ = NULL; const gchar* _tmp2_; SkkContext* _tmp3_; const gchar* _tmp4_; SkkContext* _tmp5_; gchar* _tmp6_ = NULL; gchar* output; SkkContext* _tmp7_; const gchar* _tmp8_; const gchar* _tmp9_; gchar* _tmp10_; gchar* preedit; FILE* _tmp11_; const gchar* _tmp12_; gchar* _tmp13_ = NULL; gchar* _tmp14_; const gchar* _tmp15_; gchar* _tmp16_ = NULL; gchar* _tmp17_; const gchar* _tmp18_; gchar* _tmp19_ = NULL; gchar* _tmp20_; SkkContext* _tmp21_; SkkContext* _tmp22_; _tmp0_ = stdin; _tmp1_ = g_file_stream_read_line (_tmp0_); _g_free0 (line); line = _tmp1_; _tmp2_ = line; if (!(_tmp2_ != NULL)) { break; } _tmp3_ = self->priv->context; _tmp4_ = line; skk_context_process_key_events (_tmp3_, _tmp4_); _tmp5_ = self->priv->context; _tmp6_ = skk_context_poll_output (_tmp5_); output = _tmp6_; _tmp7_ = self->priv->context; _tmp8_ = skk_context_get_preedit (_tmp7_); _tmp9_ = _tmp8_; _tmp10_ = g_strdup (_tmp9_); preedit = _tmp10_; _tmp11_ = stdout; _tmp12_ = line; _tmp13_ = string_replace (_tmp12_, "\"", "\\\""); _tmp14_ = _tmp13_; _tmp15_ = output; _tmp16_ = string_replace (_tmp15_, "\"", "\\\""); _tmp17_ = _tmp16_; _tmp18_ = preedit; _tmp19_ = string_replace (_tmp18_, "\"", "\\\""); _tmp20_ = _tmp19_; fprintf (_tmp11_, "{ \"input\": \"%s\", " "\"output\": \"%s\", " "\"preedit\": \"%s\" }\n", _tmp14_, _tmp17_, _tmp20_); _g_free0 (_tmp20_); _g_free0 (_tmp17_); _g_free0 (_tmp14_); _tmp21_ = self->priv->context; skk_context_reset (_tmp21_); _tmp22_ = self->priv->context; skk_context_clear_output (_tmp22_); _g_free0 (preedit); _g_free0 (output); } result = TRUE; _g_free0 (line); return result; }
static void language_model_tests_test_load (LanguageModelTests* self) { gchar* srcdir = NULL; const gchar* _tmp4_ = NULL; gchar* _tmp5_ = NULL; const gchar* _tmp6_ = NULL; GError * _inner_error_ = NULL; #line 8 "/home/ueno/devel/libkkc/tests/language-model.vala" g_return_if_fail (self != NULL); #line 86 "language-model.c" { KkcLanguageModel* _tmp0_ = NULL; KkcLanguageModel* _tmp1_ = NULL; #line 10 "/home/ueno/devel/libkkc/tests/language-model.vala" _tmp0_ = kkc_language_model_load ("nonexistent", &_inner_error_); #line 10 "/home/ueno/devel/libkkc/tests/language-model.vala" _tmp1_ = _tmp0_; #line 10 "/home/ueno/devel/libkkc/tests/language-model.vala" _g_object_unref0 (_tmp1_); #line 10 "/home/ueno/devel/libkkc/tests/language-model.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 10 "/home/ueno/devel/libkkc/tests/language-model.vala" if (_inner_error_->domain == KKC_LANGUAGE_MODEL_ERROR) { #line 100 "language-model.c" goto __catch0_kkc_language_model_error; } goto __finally0; } #line 11 "/home/ueno/devel/libkkc/tests/language-model.vala" g_assert_not_reached (); #line 107 "language-model.c" } goto __finally0; __catch0_kkc_language_model_error: { GError* e = NULL; #line 9 "/home/ueno/devel/libkkc/tests/language-model.vala" e = _inner_error_; #line 9 "/home/ueno/devel/libkkc/tests/language-model.vala" _inner_error_ = NULL; #line 9 "/home/ueno/devel/libkkc/tests/language-model.vala" _g_error_free0 (e); #line 119 "language-model.c" } __finally0: #line 9 "/home/ueno/devel/libkkc/tests/language-model.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 9 "/home/ueno/devel/libkkc/tests/language-model.vala" 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); #line 9 "/home/ueno/devel/libkkc/tests/language-model.vala" g_clear_error (&_inner_error_); #line 9 "/home/ueno/devel/libkkc/tests/language-model.vala" return; #line 130 "language-model.c" } { KkcLanguageModel* _tmp2_ = NULL; KkcLanguageModel* _tmp3_ = NULL; #line 16 "/home/ueno/devel/libkkc/tests/language-model.vala" _tmp2_ = kkc_language_model_load ("text3", &_inner_error_); #line 16 "/home/ueno/devel/libkkc/tests/language-model.vala" _tmp3_ = _tmp2_; #line 16 "/home/ueno/devel/libkkc/tests/language-model.vala" _g_object_unref0 (_tmp3_); #line 16 "/home/ueno/devel/libkkc/tests/language-model.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 16 "/home/ueno/devel/libkkc/tests/language-model.vala" if (_inner_error_->domain == KKC_LANGUAGE_MODEL_ERROR) { #line 145 "language-model.c" goto __catch1_kkc_language_model_error; } goto __finally1; } } goto __finally1; __catch1_kkc_language_model_error: { GError* e = NULL; #line 15 "/home/ueno/devel/libkkc/tests/language-model.vala" e = _inner_error_; #line 15 "/home/ueno/devel/libkkc/tests/language-model.vala" _inner_error_ = NULL; #line 18 "/home/ueno/devel/libkkc/tests/language-model.vala" g_assert_not_reached (); #line 15 "/home/ueno/devel/libkkc/tests/language-model.vala" _g_error_free0 (e); #line 163 "language-model.c" } __finally1: #line 15 "/home/ueno/devel/libkkc/tests/language-model.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 15 "/home/ueno/devel/libkkc/tests/language-model.vala" 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); #line 15 "/home/ueno/devel/libkkc/tests/language-model.vala" g_clear_error (&_inner_error_); #line 15 "/home/ueno/devel/libkkc/tests/language-model.vala" return; #line 174 "language-model.c" } #line 21 "/home/ueno/devel/libkkc/tests/language-model.vala" _tmp4_ = g_getenv ("srcdir"); #line 21 "/home/ueno/devel/libkkc/tests/language-model.vala" _tmp5_ = g_strdup (_tmp4_); #line 21 "/home/ueno/devel/libkkc/tests/language-model.vala" srcdir = _tmp5_; #line 22 "/home/ueno/devel/libkkc/tests/language-model.vala" _tmp6_ = srcdir; #line 22 "/home/ueno/devel/libkkc/tests/language-model.vala" _vala_assert (_tmp6_ != NULL, "srcdir != null"); #line 186 "language-model.c" { const gchar* _tmp7_ = NULL; gchar* _tmp8_ = NULL; gchar* _tmp9_ = NULL; KkcLanguageModelMetadata* _tmp10_ = NULL; KkcLanguageModelMetadata* _tmp11_ = NULL; #line 25 "/home/ueno/devel/libkkc/tests/language-model.vala" _tmp7_ = srcdir; #line 25 "/home/ueno/devel/libkkc/tests/language-model.vala" _tmp8_ = g_build_filename (_tmp7_, "language-model-metadata-bad1.json", NULL); #line 25 "/home/ueno/devel/libkkc/tests/language-model.vala" _tmp9_ = _tmp8_; #line 25 "/home/ueno/devel/libkkc/tests/language-model.vala" _tmp10_ = kkc_language_model_metadata_new ("bad1", _tmp9_, &_inner_error_); #line 25 "/home/ueno/devel/libkkc/tests/language-model.vala" _tmp11_ = _tmp10_; #line 25 "/home/ueno/devel/libkkc/tests/language-model.vala" _g_object_unref0 (_tmp11_); #line 25 "/home/ueno/devel/libkkc/tests/language-model.vala" _g_free0 (_tmp9_); #line 25 "/home/ueno/devel/libkkc/tests/language-model.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 209 "language-model.c" goto __catch2_g_error; } #line 29 "/home/ueno/devel/libkkc/tests/language-model.vala" g_assert_not_reached (); #line 214 "language-model.c" } goto __finally2; __catch2_g_error: { GError* e = NULL; #line 24 "/home/ueno/devel/libkkc/tests/language-model.vala" e = _inner_error_; #line 24 "/home/ueno/devel/libkkc/tests/language-model.vala" _inner_error_ = NULL; #line 24 "/home/ueno/devel/libkkc/tests/language-model.vala" _g_error_free0 (e); #line 226 "language-model.c" } __finally2: #line 24 "/home/ueno/devel/libkkc/tests/language-model.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 24 "/home/ueno/devel/libkkc/tests/language-model.vala" _g_free0 (srcdir); #line 24 "/home/ueno/devel/libkkc/tests/language-model.vala" 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); #line 24 "/home/ueno/devel/libkkc/tests/language-model.vala" g_clear_error (&_inner_error_); #line 24 "/home/ueno/devel/libkkc/tests/language-model.vala" return; #line 239 "language-model.c" } { const gchar* _tmp12_ = NULL; gchar* _tmp13_ = NULL; gchar* _tmp14_ = NULL; KkcLanguageModelMetadata* _tmp15_ = NULL; KkcLanguageModelMetadata* _tmp16_ = NULL; #line 34 "/home/ueno/devel/libkkc/tests/language-model.vala" _tmp12_ = srcdir; #line 34 "/home/ueno/devel/libkkc/tests/language-model.vala" _tmp13_ = g_build_filename (_tmp12_, "language-model-metadata-bad2.json", NULL); #line 34 "/home/ueno/devel/libkkc/tests/language-model.vala" _tmp14_ = _tmp13_; #line 34 "/home/ueno/devel/libkkc/tests/language-model.vala" _tmp15_ = kkc_language_model_metadata_new ("bad2", _tmp14_, &_inner_error_); #line 34 "/home/ueno/devel/libkkc/tests/language-model.vala" _tmp16_ = _tmp15_; #line 34 "/home/ueno/devel/libkkc/tests/language-model.vala" _g_object_unref0 (_tmp16_); #line 34 "/home/ueno/devel/libkkc/tests/language-model.vala" _g_free0 (_tmp14_); #line 34 "/home/ueno/devel/libkkc/tests/language-model.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 263 "language-model.c" goto __catch3_g_error; } #line 38 "/home/ueno/devel/libkkc/tests/language-model.vala" g_assert_not_reached (); #line 268 "language-model.c" } goto __finally3; __catch3_g_error: { GError* e = NULL; #line 33 "/home/ueno/devel/libkkc/tests/language-model.vala" e = _inner_error_; #line 33 "/home/ueno/devel/libkkc/tests/language-model.vala" _inner_error_ = NULL; #line 33 "/home/ueno/devel/libkkc/tests/language-model.vala" _g_error_free0 (e); #line 280 "language-model.c" } __finally3: #line 33 "/home/ueno/devel/libkkc/tests/language-model.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 33 "/home/ueno/devel/libkkc/tests/language-model.vala" _g_free0 (srcdir); #line 33 "/home/ueno/devel/libkkc/tests/language-model.vala" 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); #line 33 "/home/ueno/devel/libkkc/tests/language-model.vala" g_clear_error (&_inner_error_); #line 33 "/home/ueno/devel/libkkc/tests/language-model.vala" return; #line 293 "language-model.c" } #line 8 "/home/ueno/devel/libkkc/tests/language-model.vala" _g_free0 (srcdir); #line 297 "language-model.c" }
static void rygel_icon_info_finalize (RygelIconInfo* obj) { RygelIconInfo * self; self = RYGEL_ICON_INFO (obj); _g_free0 (self->mime_type); _g_free0 (self->uri); }
gboolean adblock_filter_check_rule (AdblockFilter* self, GRegex* regex, const gchar* pattern, const gchar* request_uri, const gchar* page_uri, GError** error) { gboolean result = FALSE; GRegex* _tmp0_; const gchar* _tmp1_; gboolean _tmp2_ = FALSE; gboolean _tmp3_; AdblockOptions* _tmp4_; const gchar* _tmp5_; gchar* _tmp6_ = NULL; gchar* opts; gboolean _tmp7_ = FALSE; const gchar* _tmp8_; gboolean _tmp11_; GRegex* _tmp19_; const gchar* _tmp20_ = NULL; const gchar* _tmp21_; GError * _inner_error_ = NULL; #line 39 "/home/luyue/new/Webkit2Browser/Source/midori/extensions/adblock/filter.vala" g_return_val_if_fail (self != NULL, FALSE); #line 39 "/home/luyue/new/Webkit2Browser/Source/midori/extensions/adblock/filter.vala" g_return_val_if_fail (regex != NULL, FALSE); #line 39 "/home/luyue/new/Webkit2Browser/Source/midori/extensions/adblock/filter.vala" g_return_val_if_fail (pattern != NULL, FALSE); #line 39 "/home/luyue/new/Webkit2Browser/Source/midori/extensions/adblock/filter.vala" g_return_val_if_fail (request_uri != NULL, FALSE); #line 39 "/home/luyue/new/Webkit2Browser/Source/midori/extensions/adblock/filter.vala" g_return_val_if_fail (page_uri != NULL, FALSE); #line 40 "/home/luyue/new/Webkit2Browser/Source/midori/extensions/adblock/filter.vala" _tmp0_ = regex; #line 40 "/home/luyue/new/Webkit2Browser/Source/midori/extensions/adblock/filter.vala" _tmp1_ = request_uri; #line 40 "/home/luyue/new/Webkit2Browser/Source/midori/extensions/adblock/filter.vala" _tmp2_ = g_regex_match_full (_tmp0_, _tmp1_, (gssize) (-1), 0, 0, NULL, &_inner_error_); #line 40 "/home/luyue/new/Webkit2Browser/Source/midori/extensions/adblock/filter.vala" _tmp3_ = _tmp2_; #line 40 "/home/luyue/new/Webkit2Browser/Source/midori/extensions/adblock/filter.vala" if (_inner_error_ != NULL) { #line 40 "/home/luyue/new/Webkit2Browser/Source/midori/extensions/adblock/filter.vala" g_propagate_error (error, _inner_error_); #line 40 "/home/luyue/new/Webkit2Browser/Source/midori/extensions/adblock/filter.vala" return FALSE; #line 332 "filter.c" } #line 40 "/home/luyue/new/Webkit2Browser/Source/midori/extensions/adblock/filter.vala" if (!_tmp3_) { #line 41 "/home/luyue/new/Webkit2Browser/Source/midori/extensions/adblock/filter.vala" result = FALSE; #line 41 "/home/luyue/new/Webkit2Browser/Source/midori/extensions/adblock/filter.vala" return result; #line 340 "filter.c" } #line 43 "/home/luyue/new/Webkit2Browser/Source/midori/extensions/adblock/filter.vala" _tmp4_ = self->priv->optslist; #line 43 "/home/luyue/new/Webkit2Browser/Source/midori/extensions/adblock/filter.vala" _tmp5_ = pattern; #line 43 "/home/luyue/new/Webkit2Browser/Source/midori/extensions/adblock/filter.vala" _tmp6_ = adblock_options_lookup (_tmp4_, _tmp5_); #line 43 "/home/luyue/new/Webkit2Browser/Source/midori/extensions/adblock/filter.vala" opts = _tmp6_; #line 44 "/home/luyue/new/Webkit2Browser/Source/midori/extensions/adblock/filter.vala" _tmp8_ = opts; #line 44 "/home/luyue/new/Webkit2Browser/Source/midori/extensions/adblock/filter.vala" if (_tmp8_ != NULL) { #line 354 "filter.c" const gchar* _tmp9_; gboolean _tmp10_ = FALSE; #line 44 "/home/luyue/new/Webkit2Browser/Source/midori/extensions/adblock/filter.vala" _tmp9_ = opts; #line 44 "/home/luyue/new/Webkit2Browser/Source/midori/extensions/adblock/filter.vala" _tmp10_ = g_regex_match_simple (",third-party", _tmp9_, G_REGEX_CASELESS, G_REGEX_MATCH_NOTEMPTY); #line 44 "/home/luyue/new/Webkit2Browser/Source/midori/extensions/adblock/filter.vala" _tmp7_ = _tmp10_; #line 363 "filter.c" } else { #line 44 "/home/luyue/new/Webkit2Browser/Source/midori/extensions/adblock/filter.vala" _tmp7_ = FALSE; #line 367 "filter.c" } #line 44 "/home/luyue/new/Webkit2Browser/Source/midori/extensions/adblock/filter.vala" _tmp11_ = _tmp7_; #line 44 "/home/luyue/new/Webkit2Browser/Source/midori/extensions/adblock/filter.vala" if (_tmp11_) { #line 373 "filter.c" gboolean _tmp12_ = FALSE; const gchar* _tmp13_; gboolean _tmp18_; #line 46 "/home/luyue/new/Webkit2Browser/Source/midori/extensions/adblock/filter.vala" _tmp13_ = page_uri; #line 46 "/home/luyue/new/Webkit2Browser/Source/midori/extensions/adblock/filter.vala" if (_tmp13_ != NULL) { #line 381 "filter.c" GRegex* _tmp14_; const gchar* _tmp15_; gboolean _tmp16_ = FALSE; gboolean _tmp17_; #line 46 "/home/luyue/new/Webkit2Browser/Source/midori/extensions/adblock/filter.vala" _tmp14_ = regex; #line 46 "/home/luyue/new/Webkit2Browser/Source/midori/extensions/adblock/filter.vala" _tmp15_ = page_uri; #line 46 "/home/luyue/new/Webkit2Browser/Source/midori/extensions/adblock/filter.vala" _tmp16_ = g_regex_match_full (_tmp14_, _tmp15_, (gssize) (-1), 0, 0, NULL, &_inner_error_); #line 46 "/home/luyue/new/Webkit2Browser/Source/midori/extensions/adblock/filter.vala" _tmp17_ = _tmp16_; #line 46 "/home/luyue/new/Webkit2Browser/Source/midori/extensions/adblock/filter.vala" if (_inner_error_ != NULL) { #line 46 "/home/luyue/new/Webkit2Browser/Source/midori/extensions/adblock/filter.vala" g_propagate_error (error, _inner_error_); #line 46 "/home/luyue/new/Webkit2Browser/Source/midori/extensions/adblock/filter.vala" _g_free0 (opts); #line 46 "/home/luyue/new/Webkit2Browser/Source/midori/extensions/adblock/filter.vala" return FALSE; #line 402 "filter.c" } #line 46 "/home/luyue/new/Webkit2Browser/Source/midori/extensions/adblock/filter.vala" _tmp12_ = _tmp17_; #line 406 "filter.c" } else { #line 46 "/home/luyue/new/Webkit2Browser/Source/midori/extensions/adblock/filter.vala" _tmp12_ = FALSE; #line 410 "filter.c" } #line 46 "/home/luyue/new/Webkit2Browser/Source/midori/extensions/adblock/filter.vala" _tmp18_ = _tmp12_; #line 46 "/home/luyue/new/Webkit2Browser/Source/midori/extensions/adblock/filter.vala" if (_tmp18_) { #line 47 "/home/luyue/new/Webkit2Browser/Source/midori/extensions/adblock/filter.vala" result = FALSE; #line 47 "/home/luyue/new/Webkit2Browser/Source/midori/extensions/adblock/filter.vala" _g_free0 (opts); #line 47 "/home/luyue/new/Webkit2Browser/Source/midori/extensions/adblock/filter.vala" return result; #line 422 "filter.c" } } #line 48 "/home/luyue/new/Webkit2Browser/Source/midori/extensions/adblock/filter.vala" _tmp19_ = regex; #line 48 "/home/luyue/new/Webkit2Browser/Source/midori/extensions/adblock/filter.vala" _tmp20_ = g_regex_get_pattern (_tmp19_); #line 48 "/home/luyue/new/Webkit2Browser/Source/midori/extensions/adblock/filter.vala" _tmp21_ = request_uri; #line 48 "/home/luyue/new/Webkit2Browser/Source/midori/extensions/adblock/filter.vala" adblock_debug ("blocked by pattern regexp=%s -- %s", _tmp20_, _tmp21_, NULL); #line 49 "/home/luyue/new/Webkit2Browser/Source/midori/extensions/adblock/filter.vala" result = TRUE; #line 49 "/home/luyue/new/Webkit2Browser/Source/midori/extensions/adblock/filter.vala" _g_free0 (opts); #line 49 "/home/luyue/new/Webkit2Browser/Source/midori/extensions/adblock/filter.vala" return result; #line 439 "filter.c" }
static gboolean metadata_menuitem_delete_album_art_contents (GFile* dir) { gboolean result = FALSE; gboolean _result_; GError * _inner_error_ = NULL; g_return_val_if_fail (dir != NULL, FALSE); _result_ = TRUE; { GFile* _tmp0_; GFileEnumerator* _tmp1_ = NULL; GFileEnumerator* e; _tmp0_ = dir; _tmp1_ = g_file_enumerate_children (_tmp0_, G_FILE_ATTRIBUTE_STANDARD_NAME, G_FILE_QUERY_INFO_NOFOLLOW_SYMLINKS, NULL, &_inner_error_); e = _tmp1_; if (_inner_error_ != NULL) { goto __catch3_g_error; } while (TRUE) { GFileEnumerator* _tmp2_; GFileInfo* _tmp3_ = NULL; GFileInfo* file; GFileInfo* _tmp4_; GFileInfo* _tmp5_; const gchar* _tmp6_ = NULL; GFile* _tmp7_; GFileInfo* _tmp8_; const gchar* _tmp9_ = NULL; GFile* _tmp10_ = NULL; GFile* child; _tmp2_ = e; _tmp3_ = g_file_enumerator_next_file (_tmp2_, NULL, &_inner_error_); file = _tmp3_; if (_inner_error_ != NULL) { _g_object_unref0 (e); goto __catch3_g_error; } _tmp4_ = file; if (_tmp4_ == NULL) { _g_object_unref0 (file); break; } _tmp5_ = file; _tmp6_ = g_file_info_get_name (_tmp5_); g_debug ("metadata-menu-item.vala:85: file name = %s", _tmp6_); _tmp7_ = dir; _tmp8_ = file; _tmp9_ = g_file_info_get_name (_tmp8_); _tmp10_ = g_file_get_child (_tmp7_, _tmp9_); child = _tmp10_; { GFile* _tmp11_; _tmp11_ = child; g_file_delete (_tmp11_, NULL, &_inner_error_); if (_inner_error_ != NULL) { goto __catch4_g_error; } } goto __finally4; __catch4_g_error: { GError* error_ = NULL; GFile* _tmp12_; gchar* _tmp13_ = NULL; gchar* _tmp14_; const gchar* _tmp15_ = NULL; GError* _tmp16_; const gchar* _tmp17_; const gchar* _tmp18_ = NULL; gchar* _tmp19_ = NULL; gchar* _tmp20_; error_ = _inner_error_; _inner_error_ = NULL; _tmp12_ = child; _tmp13_ = g_file_get_basename (_tmp12_); _tmp14_ = _tmp13_; _tmp15_ = string_to_string (_tmp14_); _tmp16_ = error_; _tmp17_ = _tmp16_->message; _tmp18_ = string_to_string (_tmp17_); _tmp19_ = g_strconcat ("Unable to delete file '", _tmp15_, ": ", _tmp18_, NULL); _tmp20_ = _tmp19_; g_warning ("metadata-menu-item.vala:92: %s", _tmp20_); _g_free0 (_tmp20_); _g_free0 (_tmp14_); _result_ = FALSE; _g_error_free0 (error_); } __finally4: if (_inner_error_ != NULL) { _g_object_unref0 (child); _g_object_unref0 (file); _g_object_unref0 (e); goto __catch3_g_error; } _g_object_unref0 (child); _g_object_unref0 (file); } _g_object_unref0 (e); } goto __finally3; __catch3_g_error: { GError* _error_ = NULL; GFile* _tmp21_; gchar* _tmp22_ = NULL; gchar* _tmp23_; const gchar* _tmp24_ = NULL; gchar* _tmp25_ = NULL; gchar* _tmp26_; GError* _tmp27_; const gchar* _tmp28_; _error_ = _inner_error_; _inner_error_ = NULL; _tmp21_ = dir; _tmp22_ = g_file_get_basename (_tmp21_); _tmp23_ = _tmp22_; _tmp24_ = string_to_string (_tmp23_); _tmp25_ = g_strconcat ("Unable to read files from directory '", _tmp24_, "': %s", NULL); _tmp26_ = _tmp25_; _tmp27_ = _error_; _tmp28_ = _tmp27_->message; g_warning (_tmp26_, _tmp28_); _g_free0 (_tmp26_); _g_free0 (_tmp23_); _result_ = FALSE; _g_error_free0 (_error_); } __finally3: 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 FALSE; } result = _result_; return result; }
GdkPixbuf* ease_slide_button_panel_pixbuf (EaseSlide* slide, gint width) { #line 428 "ease-slide-button-panel.c" GdkPixbuf* result = NULL; gint height; cairo_surface_t* surface; cairo_t* context; char* _tmp0_; char* _tmp1_; char* _tmp2_; char* path; GError * _inner_error_ = NULL; #line 178 "ease-slide-button-panel.vala" g_return_val_if_fail (slide != NULL, NULL); #line 180 "ease-slide-button-panel.vala" height = (gint) ((((float) width) * ease_slide_get_height (slide)) / ease_slide_get_width (slide)); #line 182 "ease-slide-button-panel.vala" surface = cairo_image_surface_create (CAIRO_FORMAT_RGB24, width, height); #line 184 "ease-slide-button-panel.vala" context = cairo_create (surface); #line 185 "ease-slide-button-panel.vala" cairo_save (context); #line 186 "ease-slide-button-panel.vala" cairo_scale (context, (double) (((float) width) / ease_slide_get_width (slide)), (double) (((float) height) / ease_slide_get_height (slide))); #line 450 "ease-slide-button-panel.c" { #line 191 "ease-slide-button-panel.vala" ease_slide_cairo_render_small (slide, context); #line 454 "ease-slide-button-panel.c" } goto __finally17; __catch17_g_error: { GError * e; e = _inner_error_; _inner_error_ = NULL; { #line 195 "ease-slide-button-panel.vala" g_critical (_ ("Error drawing slide preview: %s"), e->message); #line 465 "ease-slide-button-panel.c" _g_error_free0 (e); } } __finally17: if (_inner_error_ != NULL) { _cairo_destroy0 (context); _cairo_surface_destroy0 (surface); 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 NULL; } #line 199 "ease-slide-button-panel.vala" cairo_restore (context); #line 201 "ease-slide-button-panel.vala" cairo_rectangle (context, (double) 0, (double) 0, (double) width, (double) height); #line 202 "ease-slide-button-panel.vala" cairo_set_source_rgb (context, (double) 0, (double) 0, (double) 0); #line 203 "ease-slide-button-panel.vala" cairo_stroke (context); #line 206 "ease-slide-button-panel.vala" path = (_tmp2_ = g_build_filename (ease_slide_button_panel_get_temp_dir (), _tmp1_ = g_strconcat (_tmp0_ = g_strdup_printf ("%i", ease_slide_button_panel_temp_count++), ".png", NULL), NULL), _g_free0 (_tmp1_), _g_free0 (_tmp0_), _tmp2_); #line 208 "ease-slide-button-panel.vala" cairo_surface_write_to_png (surface, path); #line 489 "ease-slide-button-panel.c" { GdkPixbuf* pb; #line 212 "ease-slide-button-panel.vala" pb = gdk_pixbuf_new_from_file (path, &_inner_error_); #line 494 "ease-slide-button-panel.c" if (_inner_error_ != NULL) { goto __catch18_g_error; } #line 213 "ease-slide-button-panel.vala" g_remove (path); #line 500 "ease-slide-button-panel.c" result = pb; _g_free0 (path); _cairo_destroy0 (context); _cairo_surface_destroy0 (surface); #line 214 "ease-slide-button-panel.vala" return result; #line 507 "ease-slide-button-panel.c" } goto __finally18; __catch18_g_error: { GError * e; e = _inner_error_; _inner_error_ = NULL; { #line 216 "ease-slide-button-panel.vala" g_error ("ease-slide-button-panel.vala:216: %s", e->message); #line 518 "ease-slide-button-panel.c" _g_error_free0 (e); } } __finally18: { _g_free0 (path); _cairo_destroy0 (context); _cairo_surface_destroy0 (surface); 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 NULL; } _g_free0 (path); _cairo_destroy0 (context); _cairo_surface_destroy0 (surface); }
void metadata_menuitem_fetch_art (MetadataMenuitem* self, const gchar* uri, const gchar* prop) { const gchar* _tmp0_; GFile* _tmp1_ = NULL; GFile* art_file; GFile* _tmp2_; gboolean _tmp3_ = FALSE; const gchar* _tmp19_; const gchar* _tmp20_; const gchar* _tmp21_; const gchar* _tmp22_; FetchFile* _tmp23_; FetchFile* _tmp24_; FetchFile* _tmp25_; FetchFile* _tmp26_; GError * _inner_error_ = NULL; g_return_if_fail (self != NULL); g_return_if_fail (uri != NULL); g_return_if_fail (prop != NULL); _tmp0_ = uri; _tmp1_ = g_file_new_for_uri (_tmp0_); art_file = _tmp1_; _tmp2_ = art_file; _tmp3_ = g_file_is_native (_tmp2_); if (_tmp3_ == TRUE) { GFile* _tmp4_; gboolean _tmp5_ = FALSE; gchar* path = NULL; _tmp4_ = art_file; _tmp5_ = g_file_query_exists (_tmp4_, NULL); if (_tmp5_ == FALSE) { const gchar* _tmp6_; _tmp6_ = prop; dbusmenu_menuitem_property_set_int ((DbusmenuMenuitem*) self, _tmp6_, PLAYER_ITEM_EMPTY); _g_object_unref0 (art_file); return; } { const gchar* _tmp7_; gchar* _tmp8_ = NULL; gchar* _tmp9_; gchar* _tmp10_ = NULL; gchar* _tmp11_; gchar* _tmp12_; const gchar* _tmp13_; gchar* _tmp14_ = NULL; gchar* _tmp15_; const gchar* _tmp16_; const gchar* _tmp17_; _tmp7_ = uri; _tmp8_ = string_strip (_tmp7_); _tmp9_ = _tmp8_; _tmp10_ = g_filename_from_uri (_tmp9_, NULL, &_inner_error_); _tmp11_ = _tmp10_; _g_free0 (_tmp9_); _tmp12_ = _tmp11_; if (_inner_error_ != NULL) { if (_inner_error_->domain == G_CONVERT_ERROR) { goto __catch5_g_convert_error; } _g_free0 (path); _g_object_unref0 (art_file); g_critical ("file %s: line %d: unexpected 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; } _g_free0 (path); path = _tmp12_; _tmp13_ = uri; _tmp14_ = string_strip (_tmp13_); _tmp15_ = _tmp14_; g_debug ("metadata-menu-item.vala:116: Populating the artwork field with %s", _tmp15_); _g_free0 (_tmp15_); _tmp16_ = prop; _tmp17_ = path; dbusmenu_menuitem_property_set ((DbusmenuMenuitem*) self, _tmp16_, _tmp17_); } goto __finally5; __catch5_g_convert_error: { GError* e = NULL; const gchar* _tmp18_; e = _inner_error_; _inner_error_ = NULL; _tmp18_ = uri; g_warning ("metadata-menu-item.vala:120: Problem converting URI %s to file path", _tmp18_); _g_error_free0 (e); } __finally5: if (_inner_error_ != NULL) { _g_free0 (path); _g_object_unref0 (art_file); 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; } _g_free0 (path); _g_object_unref0 (art_file); return; } _tmp19_ = metadata_menuitem_album_art_cache_dir; g_debug ("metadata-menu-item.vala:126: fetch_art -remotely %s", _tmp19_); _tmp20_ = metadata_menuitem_album_art_cache_dir; if (_tmp20_ == NULL) { _g_object_unref0 (art_file); return; } _tmp21_ = uri; _tmp22_ = prop; _tmp23_ = fetch_file_new (_tmp21_, _tmp22_); _g_object_unref0 (metadata_menuitem_fetcher); metadata_menuitem_fetcher = _tmp23_; _tmp24_ = metadata_menuitem_fetcher; 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; fetch_file_fetch_data (_tmp26_, NULL, NULL); _g_object_unref0 (art_file); }
gboolean ug_settings_safe_get_boolean (const gchar* key, gboolean _default_) { gboolean result = FALSE; GSettings* _tmp0_; GSettings* gsettings; GSettings* _tmp1_; gchar** _tmp2_; gchar** _tmp3_ = NULL; gchar** keys; gint keys_length1; gint _keys_size_; gchar** _tmp4_; gint _tmp4__length1; gboolean _tmp11_; g_return_val_if_fail (key != NULL, FALSE); _tmp0_ = g_settings_new (UG_SETTINGS_SCHEMA); gsettings = _tmp0_; _tmp1_ = gsettings; _tmp3_ = _tmp2_ = g_settings_list_keys (_tmp1_); keys = _tmp3_; keys_length1 = _vala_array_length (_tmp2_); _keys_size_ = keys_length1; _tmp4_ = keys; _tmp4__length1 = keys_length1; { gchar** k_collection = NULL; gint k_collection_length1 = 0; gint _k_collection_size_ = 0; gint k_it = 0; k_collection = _tmp4_; k_collection_length1 = _tmp4__length1; for (k_it = 0; k_it < _tmp4__length1; k_it = k_it + 1) { gchar* _tmp5_; gchar* k = NULL; _tmp5_ = g_strdup (k_collection[k_it]); k = _tmp5_; { const gchar* _tmp6_; const gchar* _tmp7_; _tmp6_ = k; _tmp7_ = key; if (g_strcmp0 (_tmp6_, _tmp7_) == 0) { GSettings* _tmp8_; const gchar* _tmp9_; gboolean _tmp10_ = FALSE; _tmp8_ = gsettings; _tmp9_ = key; _tmp10_ = g_settings_get_boolean (_tmp8_, _tmp9_); result = _tmp10_; _g_free0 (k); keys = (_vala_array_free (keys, keys_length1, (GDestroyNotify) g_free), NULL); _g_object_unref0 (gsettings); return result; } _g_free0 (k); } } } _tmp11_ = _default_; result = _tmp11_; keys = (_vala_array_free (keys, keys_length1, (GDestroyNotify) g_free), NULL); _g_object_unref0 (gsettings); return result; }
static void metadata_menuitem_on_fetcher_completed (MetadataMenuitem* self, GByteArray* update, const gchar* property) { GError * _inner_error_ = NULL; g_return_if_fail (self != NULL); g_return_if_fail (update != NULL); g_return_if_fail (property != NULL); { GdkPixbufLoader* _tmp0_; GdkPixbufLoader* loader; GdkPixbufLoader* _tmp1_; GByteArray* _tmp2_; guint8* _tmp3_; gint _tmp3__length1; GdkPixbufLoader* _tmp4_; GdkPixbufLoader* _tmp5_; GdkPixbuf* _tmp6_ = NULL; GdkPixbuf* _tmp7_; GdkPixbuf* icon; const gchar* _tmp8_; gchar* _tmp9_ = NULL; gchar* path; const gchar* _tmp10_; gint _tmp11_ = 0; gint r; gint _tmp12_; _tmp0_ = gdk_pixbuf_loader_new (); loader = _tmp0_; _tmp1_ = loader; _tmp2_ = update; _tmp3_ = _tmp2_->data; _tmp3__length1 = (gint) _tmp2_->len; gdk_pixbuf_loader_write (_tmp1_, _tmp3_, (gsize) _tmp3__length1, &_inner_error_); if (_inner_error_ != NULL) { _g_object_unref0 (loader); goto __catch6_g_error; } _tmp4_ = loader; gdk_pixbuf_loader_close (_tmp4_, &_inner_error_); if (_inner_error_ != NULL) { _g_object_unref0 (loader); goto __catch6_g_error; } _tmp5_ = loader; _tmp6_ = gdk_pixbuf_loader_get_pixbuf (_tmp5_); _tmp7_ = _g_object_ref0 (_tmp6_); icon = _tmp7_; _tmp8_ = metadata_menuitem_album_art_cache_dir; _tmp9_ = g_strconcat (_tmp8_, "/downloaded-coverart-XXXXXX", NULL); path = _tmp9_; _tmp10_ = path; _tmp11_ = g_mkstemp (_tmp10_); r = _tmp11_; _tmp12_ = r; if (_tmp12_ != (-1)) { GdkPixbuf* _tmp13_; const gchar* _tmp14_; GdkPixbufLoader* _tmp15_; GdkPixbufFormat* _tmp16_ = NULL; gchar* _tmp17_ = NULL; gchar* _tmp18_; const gchar* _tmp19_; const gchar* _tmp20_; 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_); _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; } _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_); } _tmp23_ = path; _tmp24_ = g_strdup (_tmp23_); _g_free0 (self->priv->previous_temp_album_art_path); self->priv->previous_temp_album_art_path = _tmp24_; } _g_free0 (path); _g_object_unref0 (icon); _g_object_unref0 (loader); } goto __finally6; __catch6_g_error: { GError* e = NULL; GError* _tmp25_; const gchar* _tmp26_; e = _inner_error_; _inner_error_ = NULL; _tmp25_ = e; _tmp26_ = _tmp25_->message; g_warning ("metadata-menu-item.vala:163: Problem creating file from bytearray fetc" \ "hed from the interweb - error: %s", _tmp26_); _g_error_free0 (e); } __finally6: 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 GList* daemon_data_sqlite_data_real_GetLog (DaemonDataIDataAccess* base, const gchar* channel, const gchar* server, GError** error) { DaemonDataSqliteData * self; GList* result = NULL; gchar* _tmp0_; gchar* commandText; sqlite3_stmt* statement = NULL; sqlite3_stmt* _tmp1_ = NULL; gchar* _tmp2_; gchar* _tmp3_; gint _result_; GList* results; GError * _inner_error_ = NULL; self = (DaemonDataSqliteData*) base; g_return_val_if_fail (channel != NULL, NULL); g_return_val_if_fail (server != NULL, NULL); _tmp0_ = g_strdup ("SELECT * FROM Log WHERE Channel = @1 AND Server = @2 ORDER BY Timestam" \ "p DESC LIMIT 50"); commandText = _tmp0_; sqlite3_prepare_v2 (self->priv->_database, commandText, -1, &_tmp1_, NULL); _sqlite3_finalize0 (statement); statement = _tmp1_; _tmp2_ = g_strdup (channel); sqlite3_bind_text (statement, 1, _tmp2_, -1, g_free); _tmp3_ = g_strdup (server); sqlite3_bind_text (statement, 2, _tmp3_, -1, g_free); _result_ = 0; results = NULL; { gboolean _tmp4_; _tmp4_ = TRUE; while (TRUE) { gint _tmp5_; if (!_tmp4_) { if (!(_result_ == SQLITE_ROW)) { break; } } _tmp4_ = FALSE; _tmp5_ = sqlite3_step (statement); _result_ = _tmp5_; switch (_result_) { case SQLITE_DONE: { { break; } } case SQLITE_ROW: { { const gchar* _tmp6_ = NULL; gchar* _tmp7_; gchar* username; const gchar* _tmp8_ = NULL; gchar* _tmp9_; gchar* data; const gchar* _tmp10_ = NULL; gchar* _tmp11_; gchar* eventChannel; const gchar* _tmp12_ = NULL; gchar* _tmp13_; gchar* eventServer; gint64 _tmp14_; GDateTime* _tmp15_ = NULL; GDateTime* timestamp; gint _tmp16_; DaemonDataEventTypes type; DaemonEventsLogEvent* current; DaemonEventsLogEvent* _tmp21_; _tmp6_ = sqlite3_column_text (statement, 0); _tmp7_ = g_strdup (_tmp6_); username = _tmp7_; _tmp8_ = sqlite3_column_text (statement, 1); _tmp9_ = g_strdup (_tmp8_); data = _tmp9_; _tmp10_ = sqlite3_column_text (statement, 2); _tmp11_ = g_strdup (_tmp10_); eventChannel = _tmp11_; _tmp12_ = sqlite3_column_text (statement, 3); _tmp13_ = g_strdup (_tmp12_); eventServer = _tmp13_; _tmp14_ = sqlite3_column_int64 (statement, 4); _tmp15_ = daemon_helpers_date_time_converter_FromUnixTimestamp (_tmp14_); timestamp = _tmp15_; _tmp16_ = sqlite3_column_int (statement, 5); type = (DaemonDataEventTypes) _tmp16_; current = NULL; switch (type) { case DAEMON_DATA_EVENT_TYPES_Joined: { { DaemonEventsStatusEvent* _tmp17_ = NULL; _tmp17_ = daemon_events_status_event_new_WithTimestamp (username, DAEMON_EVENTS_STATUS_CHANGE_Join, eventChannel, eventServer, timestamp); _g_object_unref0 (current); current = (DaemonEventsLogEvent*) _tmp17_; break; } } case DAEMON_DATA_EVENT_TYPES_Left: { { DaemonEventsStatusEvent* _tmp18_ = NULL; _tmp18_ = daemon_events_status_event_new_WithTimestamp (username, DAEMON_EVENTS_STATUS_CHANGE_Leave, eventChannel, eventServer, timestamp); _g_object_unref0 (current); current = (DaemonEventsLogEvent*) _tmp18_; break; } } case DAEMON_DATA_EVENT_TYPES_ChangedName: { { DaemonEventsChangeNameEvent* _tmp19_ = NULL; _tmp19_ = daemon_events_change_name_event_new_WithTimestamp (username, data, eventChannel, eventServer, timestamp); _g_object_unref0 (current); current = (DaemonEventsLogEvent*) _tmp19_; break; } } case DAEMON_DATA_EVENT_TYPES_Message: { { DaemonEventsMessageEvent* _tmp20_ = NULL; _tmp20_ = daemon_events_message_event_new_WithTimestamp (username, data, eventChannel, eventServer, timestamp); _g_object_unref0 (current); current = (DaemonEventsLogEvent*) _tmp20_; break; } } default: break; } _tmp21_ = _g_object_ref0 (current); results = g_list_append (results, _tmp21_); _g_object_unref0 (current); _g_date_time_unref0 (timestamp); _g_free0 (eventServer); _g_free0 (eventChannel); _g_free0 (data); _g_free0 (username); break; } } default: { { const gchar* _tmp22_ = NULL; GError* _tmp23_ = NULL; _tmp22_ = sqlite3_errmsg (self->priv->_database); _tmp23_ = g_error_new_literal (DAEMON_DATA_DATA_ACCESS_ERROR, DAEMON_DATA_DATA_ACCESS_ERROR_ReadError, _tmp22_); _inner_error_ = _tmp23_; if (_inner_error_->domain == DAEMON_DATA_DATA_ACCESS_ERROR) { g_propagate_error (error, _inner_error_); __g_list_free__g_object_unref0_0 (results); _sqlite3_finalize0 (statement); _g_free0 (commandText); return NULL; } else { __g_list_free__g_object_unref0_0 (results); _sqlite3_finalize0 (statement); _g_free0 (commandText); 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 NULL; } } } } } } result = results; _sqlite3_finalize0 (statement); _g_free0 (commandText); return result; }
static void metadata_menuitem_finalize (GObject* obj) { MetadataMenuitem * self; self = METADATA_MENUITEM (obj); _g_free0 (self->priv->previous_temp_album_art_path); G_OBJECT_CLASS (metadata_menuitem_parent_class)->finalize (obj); }
RygelGeneralPrefSection* rygel_general_pref_section_construct (GType object_type, GtkBuilder* builder, RygelUserConfig* config, GError** error) { #line 157 "rygel-general-pref-section.c" GError * _inner_error_; RygelGeneralPrefSection * self; GtkCheckButton* _tmp0_; GtkComboBoxEntry* _tmp1_; GtkSpinButton* _tmp2_; GtkCheckButton* _tmp3_; GtkCheckButton* _tmp4_; GtkCheckButton* _tmp5_; GtkCheckButton* _tmp6_; GUPnPContextManager* _tmp7_; #line 47 "rygel-general-pref-section.vala" g_return_val_if_fail (builder != NULL, NULL); #line 47 "rygel-general-pref-section.vala" g_return_val_if_fail (config != NULL, NULL); #line 172 "rygel-general-pref-section.c" _inner_error_ = NULL; #line 49 "rygel-general-pref-section.vala" self = (RygelGeneralPrefSection*) rygel_preferences_section_construct (object_type, config, "general"); #line 51 "rygel-general-pref-section.vala" self->priv->upnp_check = (_tmp0_ = _g_object_ref0 (GTK_CHECK_BUTTON (gtk_builder_get_object (builder, RYGEL_GENERAL_PREF_SECTION_UPNP_CHECKBUTTON))), _g_object_unref0 (self->priv->upnp_check), _tmp0_); #line 52 "rygel-general-pref-section.vala" g_assert (self->priv->upnp_check != NULL); #line 53 "rygel-general-pref-section.vala" self->priv->iface_entry = (_tmp1_ = _g_object_ref0 (GTK_COMBO_BOX_ENTRY (gtk_builder_get_object (builder, RYGEL_GENERAL_PREF_SECTION_IFACE_ENTRY))), _g_object_unref0 (self->priv->iface_entry), _tmp1_); #line 54 "rygel-general-pref-section.vala" g_assert (self->priv->iface_entry != NULL); #line 55 "rygel-general-pref-section.vala" self->priv->port_spin = (_tmp2_ = _g_object_ref0 (GTK_SPIN_BUTTON (gtk_builder_get_object (builder, RYGEL_GENERAL_PREF_SECTION_PORT_SPINBUTTON))), _g_object_unref0 (self->priv->port_spin), _tmp2_); #line 56 "rygel-general-pref-section.vala" g_assert (self->priv->port_spin != NULL); #line 57 "rygel-general-pref-section.vala" self->priv->trans_check = (_tmp3_ = _g_object_ref0 (GTK_CHECK_BUTTON (gtk_builder_get_object (builder, RYGEL_GENERAL_PREF_SECTION_TRANS_CHECKBUTTON))), _g_object_unref0 (self->priv->trans_check), _tmp3_); #line 58 "rygel-general-pref-section.vala" g_assert (self->priv->trans_check != NULL); #line 59 "rygel-general-pref-section.vala" self->priv->mp3_check = (_tmp4_ = _g_object_ref0 (GTK_CHECK_BUTTON (gtk_builder_get_object (builder, RYGEL_GENERAL_PREF_SECTION_MP3_CHECKBUTTON))), _g_object_unref0 (self->priv->mp3_check), _tmp4_); #line 60 "rygel-general-pref-section.vala" g_assert (self->priv->mp3_check != NULL); #line 61 "rygel-general-pref-section.vala" self->priv->mp2ts_check = (_tmp5_ = _g_object_ref0 (GTK_CHECK_BUTTON (gtk_builder_get_object (builder, RYGEL_GENERAL_PREF_SECTION_MP2TS_CHECKBUTTON))), _g_object_unref0 (self->priv->mp2ts_check), _tmp5_); #line 62 "rygel-general-pref-section.vala" g_assert (self->priv->mp2ts_check != NULL); #line 63 "rygel-general-pref-section.vala" self->priv->lpcm_check = (_tmp6_ = _g_object_ref0 (GTK_CHECK_BUTTON (gtk_builder_get_object (builder, RYGEL_GENERAL_PREF_SECTION_LPCM_CHECKBUTTON))), _g_object_unref0 (self->priv->lpcm_check), _tmp6_); #line 64 "rygel-general-pref-section.vala" g_assert (self->priv->lpcm_check != NULL); #line 66 "rygel-general-pref-section.vala" self->priv->context_manager = (_tmp7_ = gupnp_context_manager_new (NULL, (guint) 0), _g_object_unref0 (self->priv->context_manager), _tmp7_); #line 69 "rygel-general-pref-section.vala" gtk_combo_box_entry_set_text_column (self->priv->iface_entry, 0); #line 208 "rygel-general-pref-section.c" { char* _tmp8_; char* _tmp9_; #line 71 "rygel-general-pref-section.vala" _tmp8_ = rygel_configuration_get_interface ((RygelConfiguration*) config, &_inner_error_); #line 214 "rygel-general-pref-section.c" if (_inner_error_ != NULL) { goto __catch1_g_error; } #line 71 "rygel-general-pref-section.vala" gtk_combo_box_append_text ((GtkComboBox*) self->priv->iface_entry, _tmp9_ = _tmp8_); #line 220 "rygel-general-pref-section.c" _g_free0 (_tmp9_); #line 72 "rygel-general-pref-section.vala" gtk_combo_box_set_active ((GtkComboBox*) self->priv->iface_entry, 0); #line 224 "rygel-general-pref-section.c" } goto __finally1; __catch1_g_error: { GError * err; err = _inner_error_; _inner_error_ = NULL; { _g_error_free0 (err); } } __finally1: if (_inner_error_ != NULL) { g_propagate_error (error, _inner_error_); g_object_unref (self); return NULL; } { gint _tmp10_; #line 78 "rygel-general-pref-section.vala" _tmp10_ = rygel_configuration_get_port ((RygelConfiguration*) config, &_inner_error_); #line 246 "rygel-general-pref-section.c" if (_inner_error_ != NULL) { goto __catch2_g_error; } #line 78 "rygel-general-pref-section.vala" gtk_spin_button_set_value (self->priv->port_spin, (double) _tmp10_); #line 252 "rygel-general-pref-section.c" } goto __finally2; __catch2_g_error: { GError * err; err = _inner_error_; _inner_error_ = NULL; { _g_error_free0 (err); } } __finally2: if (_inner_error_ != NULL) { g_propagate_error (error, _inner_error_); g_object_unref (self); return NULL; } { gboolean _tmp11_; #line 81 "rygel-general-pref-section.vala" _tmp11_ = rygel_configuration_get_upnp_enabled ((RygelConfiguration*) ((RygelPreferencesSection*) self)->config, &_inner_error_); #line 274 "rygel-general-pref-section.c" if (_inner_error_ != NULL) { goto __catch3_g_error; } #line 81 "rygel-general-pref-section.vala" gtk_toggle_button_set_active ((GtkToggleButton*) self->priv->upnp_check, _tmp11_); #line 280 "rygel-general-pref-section.c" } goto __finally3; __catch3_g_error: { GError * err; err = _inner_error_; _inner_error_ = NULL; { _g_error_free0 (err); } } __finally3: if (_inner_error_ != NULL) { g_propagate_error (error, _inner_error_); g_object_unref (self); return NULL; } { gboolean _tmp12_; #line 84 "rygel-general-pref-section.vala" _tmp12_ = rygel_configuration_get_transcoding ((RygelConfiguration*) ((RygelPreferencesSection*) self)->config, &_inner_error_); #line 302 "rygel-general-pref-section.c" if (_inner_error_ != NULL) { goto __catch4_g_error; } #line 84 "rygel-general-pref-section.vala" gtk_toggle_button_set_active ((GtkToggleButton*) self->priv->trans_check, _tmp12_); #line 308 "rygel-general-pref-section.c" } goto __finally4; __catch4_g_error: { GError * err; err = _inner_error_; _inner_error_ = NULL; { _g_error_free0 (err); } } __finally4: if (_inner_error_ != NULL) { g_propagate_error (error, _inner_error_); g_object_unref (self); return NULL; } { gboolean _tmp13_; #line 87 "rygel-general-pref-section.vala" _tmp13_ = rygel_configuration_get_mp3_transcoder ((RygelConfiguration*) ((RygelPreferencesSection*) self)->config, &_inner_error_); #line 330 "rygel-general-pref-section.c" if (_inner_error_ != NULL) { goto __catch5_g_error; } #line 87 "rygel-general-pref-section.vala" gtk_toggle_button_set_active ((GtkToggleButton*) self->priv->mp3_check, _tmp13_); #line 336 "rygel-general-pref-section.c" } goto __finally5; __catch5_g_error: { GError * err; err = _inner_error_; _inner_error_ = NULL; { _g_error_free0 (err); } } __finally5: if (_inner_error_ != NULL) { g_propagate_error (error, _inner_error_); g_object_unref (self); return NULL; } { gboolean _tmp14_; #line 90 "rygel-general-pref-section.vala" _tmp14_ = rygel_configuration_get_mp2ts_transcoder ((RygelConfiguration*) ((RygelPreferencesSection*) self)->config, &_inner_error_); #line 358 "rygel-general-pref-section.c" if (_inner_error_ != NULL) { goto __catch6_g_error; } #line 90 "rygel-general-pref-section.vala" gtk_toggle_button_set_active ((GtkToggleButton*) self->priv->mp2ts_check, _tmp14_); #line 364 "rygel-general-pref-section.c" } goto __finally6; __catch6_g_error: { GError * err; err = _inner_error_; _inner_error_ = NULL; { _g_error_free0 (err); } } __finally6: if (_inner_error_ != NULL) { g_propagate_error (error, _inner_error_); g_object_unref (self); return NULL; } { gboolean _tmp15_; #line 93 "rygel-general-pref-section.vala" _tmp15_ = rygel_configuration_get_lpcm_transcoder ((RygelConfiguration*) ((RygelPreferencesSection*) self)->config, &_inner_error_); #line 386 "rygel-general-pref-section.c" if (_inner_error_ != NULL) { goto __catch7_g_error; } #line 93 "rygel-general-pref-section.vala" gtk_toggle_button_set_active ((GtkToggleButton*) self->priv->lpcm_check, _tmp15_); #line 392 "rygel-general-pref-section.c" } goto __finally7; __catch7_g_error: { GError * err; err = _inner_error_; _inner_error_ = NULL; { _g_error_free0 (err); } } __finally7: if (_inner_error_ != NULL) { g_propagate_error (error, _inner_error_); g_object_unref (self); return NULL; } #line 96 "rygel-general-pref-section.vala" g_signal_connect_object ((GtkToggleButton*) self->priv->trans_check, "toggled", (GCallback) _rygel_general_pref_section_on_trans_check_toggled_gtk_toggle_button_toggled, self, 0); #line 98 "rygel-general-pref-section.vala" g_signal_connect_object (self->priv->context_manager, "context-available", (GCallback) _rygel_general_pref_section_on_context_available_gupnp_context_manager_context_available, self, 0); #line 100 "rygel-general-pref-section.vala" g_signal_connect_object (self->priv->context_manager, "context-unavailable", (GCallback) _rygel_general_pref_section_on_context_unavailable_gupnp_context_manager_context_unavailable, self, 0); #line 104 "rygel-general-pref-section.vala" rygel_general_pref_section_on_trans_check_toggled (self, self->priv->trans_check); #line 418 "rygel-general-pref-section.c" return self; }
static void ddb_cell_renderer_text_multiline_gtk_cell_renderer_text_editing_done (DdbCellEditableTextView* entry, DdbCellRendererTextMultiline* _self_) { DdbCellEditableTextView* _tmp0_; DdbCellRendererTextMultiline* _tmp1_; gulong _tmp2_; DdbCellRendererTextMultiline* _tmp3_; DdbCellEditableTextView* _tmp4_; gboolean _tmp5_; DdbCellEditableTextView* _tmp6_; GtkTextBuffer* _tmp7_ = NULL; GtkTextBuffer* _tmp8_; GtkTextBuffer* buf; GtkTextIter begin = {0}; GtkTextIter end = {0}; GtkTextIter _tmp9_ = {0}; GtkTextIter _tmp10_ = {0}; GtkTextIter _tmp11_; GtkTextIter _tmp12_; gchar* _tmp13_ = NULL; gchar* new_text; DdbCellRendererTextMultiline* _tmp14_; DdbCellEditableTextView* _tmp15_; const gchar* _tmp16_; g_return_if_fail (entry != NULL); g_return_if_fail (_self_ != NULL); _tmp0_ = entry; _tmp1_ = _self_; _tmp2_ = _tmp1_->priv->focus_out_id; g_signal_handler_disconnect ((GObject*) _tmp0_, _tmp2_); if (_tmp1_->priv->populate_popup_id > 0) { g_signal_handler_disconnect (entry, _tmp1_->priv->populate_popup_id); _tmp1_->priv->populate_popup_id = 0; } if (_tmp1_->priv->entry_menu_popdown_timeout) { g_source_remove (_tmp1_->priv->entry_menu_popdown_timeout); _tmp1_->priv->entry_menu_popdown_timeout = 0; } _tmp3_ = _self_; _tmp4_ = entry; _tmp5_ = _tmp4_->priv->editing_canceled; gtk_cell_renderer_stop_editing ((GtkCellRenderer*) _tmp3_, _tmp5_); _tmp6_ = entry; _tmp7_ = gtk_text_view_get_buffer ((GtkTextView*) _tmp6_); _tmp8_ = _g_object_ref0 (_tmp7_); buf = _tmp8_; gtk_text_buffer_get_iter_at_offset (buf, &_tmp9_, 0); begin = _tmp9_; gtk_text_buffer_get_iter_at_offset (buf, &_tmp10_, -1); end = _tmp10_; _tmp11_ = begin; _tmp12_ = end; _tmp13_ = gtk_text_buffer_get_text (buf, &_tmp11_, &_tmp12_, TRUE); new_text = _tmp13_; _tmp14_ = _self_; _tmp15_ = entry; _tmp16_ = _tmp15_->tree_path; g_signal_emit_by_name ((GtkCellRendererText*) _tmp14_, "edited", _tmp16_, new_text); _g_free0 (new_text); _g_object_unref0 (buf); _g_free0 (new_text); }