~ubuntu-branches/debian/experimental/brasero/experimental

« back to all changes in this revision

Viewing changes to src/brasero-song-properties.c

  • Committer: Bazaar Package Importer
  • Author(s): Josselin Mouette
  • Date: 2011-03-29 16:33:51 UTC
  • mfrom: (1.3.18 upstream) (5.2.8 sid)
  • Revision ID: james.westby@ubuntu.com-20110329163351-ac3wgbh4mplmhnht
Tags: 2.91.93-1
* Only depend on growisofs instead of dvd+rw-tools.
* New upstream pre-release.
* Update build-dependencies, package names, and paths.
* Require totem-plparser 2.32 since its soname changed.
* Do not include GIR package for now, since the versioning is broken 
  (see Bugzilla #646069).
* 01_pkglibdir.patch: dropped, upstream now has a variable we can use 
  for that effect.
* 11_nautilus_menu_no_display.patch, 31_link_libice.patch, 
  50_checksum.patch: dropped, merged upstream.
* 90_relibtoolize.patch: dropped, unnecessary.

Show diffs side-by-side

added added

removed removed

Lines of Context:
150
150
        GtkWidget *table;
151
151
        GtkWidget *frame;
152
152
        GtkWidget *alignment;
 
153
        GtkWidget *content_area;
153
154
 
154
155
        obj->priv = g_new0 (BraseroSongPropsPrivate, 1);
155
 
        gtk_dialog_set_has_separator (GTK_DIALOG (obj), FALSE);
156
 
        gtk_box_set_spacing (GTK_BOX (GTK_DIALOG (obj)->vbox), 0);
 
156
        gtk_box_set_spacing (GTK_BOX (gtk_dialog_get_content_area (GTK_DIALOG (obj))), 0);
157
157
        gtk_window_set_default_size (GTK_WINDOW (obj), 400, 300);
158
158
 
159
159
        table = gtk_table_new (4, 2, FALSE);
162
162
 
163
163
        frame = brasero_utils_pack_properties ("", table, NULL);
164
164
        gtk_container_set_border_width (GTK_CONTAINER (frame), 6);
165
 
        gtk_box_pack_start (GTK_BOX (GTK_DIALOG (obj)->vbox),
 
165
        content_area = gtk_dialog_get_content_area (GTK_DIALOG (obj));
 
166
        gtk_box_pack_start (GTK_BOX (content_area),
166
167
                            frame,
167
168
                            FALSE,
168
169
                            FALSE,
169
170
                            0);
170
171
 
171
 
        obj->priv->label = gtk_frame_get_label_widget (GTK_FRAME (frame));
 
172
        obj->priv->label = brasero_utils_properties_get_label (frame);
172
173
        gtk_label_set_single_line_mode (GTK_LABEL (obj->priv->label), FALSE);
173
174
        gtk_label_set_use_markup (GTK_LABEL (obj->priv->label), TRUE);
174
175
        gtk_label_set_line_wrap (GTK_LABEL (obj->priv->label), TRUE);
183
184
        gtk_table_attach (GTK_TABLE (table), label, 0, 1, 0, 1, GTK_FILL, GTK_FILL, 0, 0);
184
185
        gtk_table_attach_defaults (GTK_TABLE (table), obj->priv->title, 1, 2, 0, 1);
185
186
        gtk_widget_set_tooltip_text (obj->priv->title,
186
 
                              _("This information will be written to the disc using CD-TEXT technology. It can be read and displayed by some audio CD players."));
 
187
                              _("This information will be written to the disc using CD-Text technology. It can be read and displayed by some audio CD players."));
187
188
 
188
189
        label = gtk_label_new (_("Artist:"));
189
190
        gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5);
195
196
        gtk_table_attach (GTK_TABLE (table), label, 0, 1, 1, 2, GTK_FILL, GTK_FILL, 0, 0);
196
197
        gtk_table_attach_defaults (GTK_TABLE (table), obj->priv->artist, 1, 2, 1, 2);
197
198
        gtk_widget_set_tooltip_text (obj->priv->artist,
198
 
                                     _("This information will be written to the disc using CD-TEXT technology. It can be read and displayed by some audio CD players."));
 
199
                                     _("This information will be written to the disc using CD-Text technology. It can be read and displayed by some audio CD players."));
199
200
 
200
201
        label = gtk_label_new (_("Composer:"));
201
202
        gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5);
207
208
        gtk_table_attach (GTK_TABLE (table), label, 0, 1, 2, 3, GTK_FILL, GTK_FILL, 0, 0);
208
209
        gtk_table_attach_defaults (GTK_TABLE (table), obj->priv->composer, 1, 2, 2, 3);
209
210
        gtk_widget_set_tooltip_text (obj->priv->composer,
210
 
                              _("This information will be written to the disc using CD-TEXT technology. It can be read and displayed by some audio CD players."));
 
211
                              _("This information will be written to the disc using CD-Text technology. It can be read and displayed by some audio CD players."));
211
212
 
212
213
        label = gtk_label_new ("ISRC:");
213
214
        gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5);
229
230
        g_free (title_str);
230
231
 
231
232
        gtk_container_set_border_width (GTK_CONTAINER (frame), 6);
232
 
        gtk_box_pack_start (GTK_BOX (GTK_DIALOG (obj)->vbox), frame, FALSE, FALSE, 0);
 
233
        gtk_box_pack_start (GTK_BOX (content_area), frame, FALSE, FALSE, 0);
233
234
 
234
235
        label = gtk_label_new (_("Song start:"));
235
236
        gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5);
390
391
                gtk_entry_set_text (GTK_ENTRY (self->priv->title), title);
391
392
        if (composer)
392
393
                gtk_entry_set_text (GTK_ENTRY (self->priv->composer), composer);
 
394
 
393
395
        if (isrc) {
394
396
                string = g_strdup_printf ("%i", isrc);
395
397
                gtk_entry_set_text (GTK_ENTRY (self->priv->isrc), string);
411
413
        g_signal_handlers_block_by_func (self->priv->end,
412
414
                                         brasero_song_props_end_changed_cb,
413
415
                                         self);
414
 
        brasero_time_button_set_max (BRASERO_TIME_BUTTON (self->priv->end), length);
 
416
        brasero_time_button_set_max (BRASERO_TIME_BUTTON (self->priv->end), start + length);
415
417
        brasero_time_button_set_value (BRASERO_TIME_BUTTON (self->priv->end), end);
416
418
        g_signal_handlers_unblock_by_func (self->priv->end,
417
 
                                           brasero_song_props_end_changed_cb,
 
419
                                           brasero_song_props_end_changed_cb,
418
420
                                           self);
419
421
 
420
422
        brasero_song_props_update_length (self);