Lines Matching refs:dialog

50 static void rb_feed_podcast_properties_dialog_init (RBFeedPodcastPropertiesDialog *dialog);
52 static void rb_feed_podcast_properties_dialog_update_title (RBFeedPodcastPropertiesDialog *dialog);
53 … void rb_feed_podcast_properties_dialog_update_title_label (RBFeedPodcastPropertiesDialog *dialog);
54 …tic void rb_feed_podcast_properties_dialog_update_location (RBFeedPodcastPropertiesDialog *dialog);
57 RBFeedPodcastPropertiesDialog *dialog);
59 static void rb_feed_podcast_properties_dialog_update (RBFeedPodcastPropertiesDialog *dialog);
60 static void rb_feed_podcast_properties_dialog_update_author (RBFeedPodcastPropertiesDialog *dialog);
61 …tic void rb_feed_podcast_properties_dialog_update_language (RBFeedPodcastPropertiesDialog *dialog);
62 … void rb_feed_podcast_properties_dialog_update_last_update (RBFeedPodcastPropertiesDialog *dialog);
63 …void rb_feed_podcast_properties_dialog_update_last_episode (RBFeedPodcastPropertiesDialog *dialog);
64 …ic void rb_feed_podcast_properties_dialog_update_copyright (RBFeedPodcastPropertiesDialog *dialog);
65 static void rb_feed_podcast_properties_dialog_update_summary (RBFeedPodcastPropertiesDialog *dialog
106 rb_feed_podcast_properties_dialog_init (RBFeedPodcastPropertiesDialog *dialog) in rb_feed_podcast_properties_dialog_init() argument
111 dialog->priv = RB_FEED_PODCAST_PROPERTIES_DIALOG_GET_PRIVATE (dialog); in rb_feed_podcast_properties_dialog_init()
113 g_signal_connect_object (G_OBJECT (dialog), in rb_feed_podcast_properties_dialog_init()
116 dialog, 0); in rb_feed_podcast_properties_dialog_init()
118 gtk_window_set_default_size (GTK_WINDOW (dialog), 600, 400); in rb_feed_podcast_properties_dialog_init()
119 content_area = gtk_dialog_get_content_area (GTK_DIALOG (dialog)); in rb_feed_podcast_properties_dialog_init()
121 gtk_container_set_border_width (GTK_CONTAINER (dialog), 5); in rb_feed_podcast_properties_dialog_init()
124 builder = rb_builder_load ("podcast-feed-properties.ui", dialog); in rb_feed_podcast_properties_dialog_init()
129 dialog->priv->close_button = gtk_dialog_add_button (GTK_DIALOG (dialog), in rb_feed_podcast_properties_dialog_init()
132 gtk_dialog_set_default_response (GTK_DIALOG (dialog), in rb_feed_podcast_properties_dialog_init()
136 dialog->priv->title = GTK_WIDGET (gtk_builder_get_object (builder, "titleLabel")); in rb_feed_podcast_properties_dialog_init()
137 dialog->priv->author = GTK_WIDGET (gtk_builder_get_object (builder, "authorLabel")); in rb_feed_podcast_properties_dialog_init()
138 dialog->priv->location = GTK_WIDGET (gtk_builder_get_object (builder, "locationLabel")); in rb_feed_podcast_properties_dialog_init()
139 dialog->priv->language = GTK_WIDGET (gtk_builder_get_object (builder, "languageLabel")); in rb_feed_podcast_properties_dialog_init()
140 dialog->priv->last_update = GTK_WIDGET (gtk_builder_get_object (builder, "lastupdateLabel")); in rb_feed_podcast_properties_dialog_init()
141 dialog->priv->last_episode = GTK_WIDGET (gtk_builder_get_object (builder, "lastepisodeLabel")); in rb_feed_podcast_properties_dialog_init()
142 dialog->priv->copyright = GTK_WIDGET (gtk_builder_get_object (builder, "copyrightLabel")); in rb_feed_podcast_properties_dialog_init()
143 dialog->priv->summary = GTK_WIDGET (gtk_builder_get_object (builder, "summaryLabel")); in rb_feed_podcast_properties_dialog_init()
160 RBFeedPodcastPropertiesDialog *dialog; in rb_feed_podcast_properties_dialog_finalize() local
165 dialog = RB_FEED_PODCAST_PROPERTIES_DIALOG (object); in rb_feed_podcast_properties_dialog_finalize()
167 g_return_if_fail (dialog->priv != NULL); in rb_feed_podcast_properties_dialog_finalize()
175 RBFeedPodcastPropertiesDialog *dialog; in rb_feed_podcast_properties_dialog_new() local
177 dialog = g_object_new (RB_TYPE_FEED_PODCAST_PROPERTIES_DIALOG, NULL); in rb_feed_podcast_properties_dialog_new()
178 dialog->priv->current_entry = entry; in rb_feed_podcast_properties_dialog_new()
180 rb_feed_podcast_properties_dialog_update (dialog); in rb_feed_podcast_properties_dialog_new()
182 return GTK_WIDGET (dialog); in rb_feed_podcast_properties_dialog_new()
188 RBFeedPodcastPropertiesDialog *dialog) in rb_feed_podcast_properties_dialog_response_cb() argument
190 gtk_widget_destroy (GTK_WIDGET (dialog)); in rb_feed_podcast_properties_dialog_response_cb()
194 rb_feed_podcast_properties_dialog_update (RBFeedPodcastPropertiesDialog *dialog) in rb_feed_podcast_properties_dialog_update() argument
196 g_return_if_fail (dialog->priv->current_entry != NULL); in rb_feed_podcast_properties_dialog_update()
198 rb_feed_podcast_properties_dialog_update_location (dialog); in rb_feed_podcast_properties_dialog_update()
199 rb_feed_podcast_properties_dialog_update_title (dialog); in rb_feed_podcast_properties_dialog_update()
200 rb_feed_podcast_properties_dialog_update_title_label (dialog); in rb_feed_podcast_properties_dialog_update()
201 rb_feed_podcast_properties_dialog_update_author (dialog); in rb_feed_podcast_properties_dialog_update()
202 rb_feed_podcast_properties_dialog_update_language (dialog); in rb_feed_podcast_properties_dialog_update()
203 rb_feed_podcast_properties_dialog_update_last_update (dialog); in rb_feed_podcast_properties_dialog_update()
204 rb_feed_podcast_properties_dialog_update_last_episode (dialog); in rb_feed_podcast_properties_dialog_update()
205 rb_feed_podcast_properties_dialog_update_copyright (dialog); in rb_feed_podcast_properties_dialog_update()
206 rb_feed_podcast_properties_dialog_update_summary (dialog); in rb_feed_podcast_properties_dialog_update()
210 rb_feed_podcast_properties_dialog_update_title (RBFeedPodcastPropertiesDialog *dialog) in rb_feed_podcast_properties_dialog_update_title() argument
214 name = rhythmdb_entry_get_string (dialog->priv->current_entry, RHYTHMDB_PROP_TITLE); in rb_feed_podcast_properties_dialog_update_title()
216 gtk_window_set_title (GTK_WINDOW (dialog), tmp); in rb_feed_podcast_properties_dialog_update_title()
221 rb_feed_podcast_properties_dialog_update_title_label (RBFeedPodcastPropertiesDialog *dialog) in rb_feed_podcast_properties_dialog_update_title_label() argument
225 title = rhythmdb_entry_get_string (dialog->priv->current_entry, RHYTHMDB_PROP_TITLE); in rb_feed_podcast_properties_dialog_update_title_label()
226 gtk_label_set_text (GTK_LABEL (dialog->priv->title), title); in rb_feed_podcast_properties_dialog_update_title_label()
230 rb_feed_podcast_properties_dialog_update_author (RBFeedPodcastPropertiesDialog *dialog) in rb_feed_podcast_properties_dialog_update_author() argument
234 artist = rhythmdb_entry_get_string (dialog->priv->current_entry, RHYTHMDB_PROP_ARTIST); in rb_feed_podcast_properties_dialog_update_author()
235 gtk_label_set_text (GTK_LABEL (dialog->priv->author), artist); in rb_feed_podcast_properties_dialog_update_author()
239 rb_feed_podcast_properties_dialog_update_location (RBFeedPodcastPropertiesDialog *dialog) in rb_feed_podcast_properties_dialog_update_location() argument
244 location = rhythmdb_entry_get_string (dialog->priv->current_entry, RHYTHMDB_PROP_MOUNTPOINT); in rb_feed_podcast_properties_dialog_update_location()
246 location = rhythmdb_entry_get_string (dialog->priv->current_entry, RHYTHMDB_PROP_LOCATION); in rb_feed_podcast_properties_dialog_update_location()
248 gtk_label_set_text (GTK_LABEL (dialog->priv->location), unescaped); in rb_feed_podcast_properties_dialog_update_location()
253 rb_feed_podcast_properties_dialog_update_copyright (RBFeedPodcastPropertiesDialog *dialog) in rb_feed_podcast_properties_dialog_update_copyright() argument
257 copyright = rhythmdb_entry_get_string (dialog->priv->current_entry, RHYTHMDB_PROP_COPYRIGHT); in rb_feed_podcast_properties_dialog_update_copyright()
258 gtk_label_set_text (GTK_LABEL (dialog->priv->copyright), copyright); in rb_feed_podcast_properties_dialog_update_copyright()
262 rb_feed_podcast_properties_dialog_update_language (RBFeedPodcastPropertiesDialog *dialog) in rb_feed_podcast_properties_dialog_update_language() argument
269 language = rhythmdb_entry_get_string (dialog->priv->current_entry, RHYTHMDB_PROP_LANG); in rb_feed_podcast_properties_dialog_update_language()
283 gtk_label_set_text (GTK_LABEL (dialog->priv->language), langname); in rb_feed_podcast_properties_dialog_update_language()
287 gtk_label_set_text (GTK_LABEL (dialog->priv->language), language); in rb_feed_podcast_properties_dialog_update_language()
291 rb_feed_podcast_properties_dialog_update_last_update (RBFeedPodcastPropertiesDialog *dialog) in rb_feed_podcast_properties_dialog_update_last_update() argument
296 time_val = rhythmdb_entry_get_ulong (dialog->priv->current_entry, RHYTHMDB_PROP_LAST_SEEN); in rb_feed_podcast_properties_dialog_update_last_update()
298 gtk_label_set_text (GTK_LABEL (dialog->priv->last_update), time_str); in rb_feed_podcast_properties_dialog_update_last_update()
303 rb_feed_podcast_properties_dialog_update_last_episode (RBFeedPodcastPropertiesDialog *dialog) in rb_feed_podcast_properties_dialog_update_last_episode() argument
308 time_val = rhythmdb_entry_get_ulong (dialog->priv->current_entry, RHYTHMDB_PROP_POST_TIME); in rb_feed_podcast_properties_dialog_update_last_episode()
310 gtk_label_set_text (GTK_LABEL (dialog->priv->last_episode), time_str); in rb_feed_podcast_properties_dialog_update_last_episode()
315 rb_feed_podcast_properties_dialog_update_summary (RBFeedPodcastPropertiesDialog *dialog) in rb_feed_podcast_properties_dialog_update_summary() argument
319 summary = rhythmdb_entry_get_string (dialog->priv->current_entry, in rb_feed_podcast_properties_dialog_update_summary()
322 summary = rhythmdb_entry_get_string (dialog->priv->current_entry, in rb_feed_podcast_properties_dialog_update_summary()
326 summary = rhythmdb_entry_get_string (dialog->priv->current_entry, in rb_feed_podcast_properties_dialog_update_summary()
330 gtk_label_set_text (GTK_LABEL (dialog->priv->summary), summary); in rb_feed_podcast_properties_dialog_update_summary()