~ubuntu-branches/debian/wheezy/brasero/wheezy

« back to all changes in this revision

Viewing changes to src/brasero-plugin-manager-ui.c

  • Committer: Bazaar Package Importer
  • Author(s): Josselin Mouette, Pedro Fragoso, Luca Bruno, Josselin Mouette, Emilio Pozuelo Monfort
  • Date: 2009-06-24 18:59:46 UTC
  • mfrom: (1.2.13 upstream)
  • Revision ID: james.westby@ubuntu.com-20090624185946-iyxkgf3gjptir5y3
Tags: 2.26.2-1
[ Pedro Fragoso ]
* Add myself to Maintainer field
  - Thanks Ondřej Surý
* New upstream version (Closes: #528945)
  - Split package into brasero, libbrasero-media0 and libbrasero-dev
  - Add Replaces to libbrasero-media0
  - Bump libgtk to 2.14.0
  - Remove libnotify Build-dep
  - Add Build-dep libnautilus-extension-dev (>= 2.22.2)
    and install it.
  - Add Build-dep to libsm-dev
  - Add Build-dep on intltool
* Install omf files to prevent crash on Help
* Move gstreamer0.10-plugins-bad to Suggests, and add
  dvdauthor and vcdimager
* Recommends gvfs (Closes: #491827)
* Pass --disable-scrollkeeper in DEB_CONFIGURE_EXTRA_FLAGS
* debian/patches/007-fix-gnome-doc-utils-path.patch:
  - Removed, not needed anymore
* debian/patches/008-fix-volume-identifier-crash.patch:
  - Removed, merged upstream
* debian/patches/011_nautilus_menu_move.patch:
 - Move CD/DVD Creator Menu to Acessories, taken from Ubuntu

[ Luca Bruno ]
* debian/control.in:
  - Add Build-Depend gtk-doc-tools 1.9.
* debian/patches/006-fix-libdvdcss.patch:
  - Removed as applied upstream.

[ Josselin Mouette ]
* New upstream release.
* Update build-dependencies.
* Move the translations and data to a new brasero-common package.
* Rewrite the descriptions.
* Add -dev depends to the development package.
* Remove inappropriate recommends in the library package.
* Let’s not forget dvd+rw-tools so that we can write DVDs too.
* Rework dependencies accordingly.
* Put the nautilus extension in brasero.
* Conflict against nautilus-cd-burner to avoid having two burning 
  extensions.
* Include clean-la.mk and gnome-version.mk; build-depend on 
  gnome-pkg-tools 0.7.
* Don’t run dh_makeshlibs on brasero and libbrasero-plugins.
* 011_nautilus_menu_move.patch: add NoDisplay=true, this icon is 
  duplicating existing functionality (brasero icon in sound&video 
  menu, and nautilus autorun).
* Update list of copyright holders.

[ Emilio Pozuelo Monfort ]
* debian/copyright: updated.

[ Josselin Mouette ]
* copyright: improve indentation, and point to versioned LGPL.
* 090_relibtoolize.patch: add a relibtoolization patch to avoid the 
  rpath crap.

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
 * Based on gedit code (gedit/gedit-plugin-manager.c) by: 
8
8
 *      - Paolo Maggi <paolo@gnome.org>
9
9
 *
10
 
 * This program is free software; you can redistribute it and/or modify
 
10
 * Libbrasero-media is free software; you can redistribute it and/or modify
 
11
fy
11
12
 * it under the terms of the GNU General Public License as published by
12
13
 * the Free Software Foundation; either version 2 of the License, or
13
14
 * (at your option) any later version.
14
15
 *
15
 
 * This program is distributed in the hope that it will be useful,
 
16
 * Brasero is distributed in the hope that it will be useful,
16
17
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17
18
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18
19
 * GNU General Public License for more details.
19
20
 *
20
21
 * You should have received a copy of the GNU General Public License
21
 
 * along with this program; if not, write to the Free Software
22
 
 * Foundation, Inc., 59 Temple Place, Suite 330, 
23
 
 * Boston, MA 02111-1307, USA. 
 
22
 * along with this program; if not, write to:
 
23
 *      The Free Software Foundation, Inc.,
 
24
 *      51 Franklin Street, Fifth Floor
 
25
 *      Boston, MA  02110-1301, USA.
24
26
 */
25
27
 
26
28
#ifdef HAVE_CONFIG_H
142
144
                                     brasero_plugin_get_author (plugin));
143
145
 
144
146
        dialog = g_object_new (GTK_TYPE_ABOUT_DIALOG,
145
 
                               "program-name", brasero_plugin_get_name (plugin),
 
147
                               "program-name", _(brasero_plugin_get_name (plugin)),
146
148
                               "copyright", copyright,
147
149
                               "authors", authors,
148
150
                               "comments", brasero_plugin_get_description (plugin),
214
216
                return;
215
217
 
216
218
        if (brasero_plugin_get_error (plugin))
217
 
                text = g_markup_printf_escaped (_("<b>%s</b>\n%s\n<i>%s</i>"),
218
 
                                                brasero_plugin_get_name (plugin),
 
219
                text = g_markup_printf_escaped ("<b>%s</b>\n%s\n<i>%s</i>",
 
220
                                                /* Use the translated name of 
 
221
                                                 * the plugin. */
 
222
                                                _(brasero_plugin_get_name (plugin)),
219
223
                                                brasero_plugin_get_description (plugin),
220
224
                                                brasero_plugin_get_error (plugin));
221
225
        else
222
226
                text = g_markup_printf_escaped ("<b>%s</b>\n%s",
223
 
                                                brasero_plugin_get_name (plugin),
 
227
                                                /* Use the translated name of 
 
228
                                                 * the plugin. */
 
229
                                                _(brasero_plugin_get_name (plugin)),
224
230
                                                brasero_plugin_get_description (plugin));
225
231
 
226
232
        g_object_set (G_OBJECT (cell),
354
360
        for (; plugins; plugins = plugins->next) {
355
361
                plugin = plugins->data;
356
362
 
357
 
                if (brasero_burn_caps_plugin_can_burn (caps, plugin) == BRASERO_BURN_OK
358
 
                ||  brasero_burn_caps_plugin_can_convert (caps, plugin) == BRASERO_BURN_OK
359
 
                ||  brasero_burn_caps_plugin_can_image (caps, plugin) == BRASERO_BURN_OK
360
 
                ||  brasero_plugin_get_gtype (plugin) == G_TYPE_NONE)
 
363
                if (brasero_plugin_get_gtype (plugin) == G_TYPE_NONE
 
364
                ||  brasero_plugin_get_compulsory (plugin))
361
365
                        continue;
362
366
 
363
367
                gtk_list_store_append (model, &iter);
504
508
        if (!plugin)
505
509
                return FALSE;
506
510
 
507
 
        normalized_string = g_utf8_normalize (brasero_plugin_get_name (plugin), -1, G_NORMALIZE_ALL);
508
 
        normalized_key = g_utf8_normalize (key, -1, G_NORMALIZE_ALL);
 
511
        /* Use translated name for the plugin */
 
512
        normalized_string = g_utf8_normalize (_(brasero_plugin_get_name (plugin)),
 
513
                                              -1,
 
514
                                              G_NORMALIZE_ALL);
 
515
        normalized_key = g_utf8_normalize (key,
 
516
                                           -1,
 
517
                                           G_NORMALIZE_ALL);
509
518
        case_normalized_string = g_utf8_casefold (normalized_string, -1);
510
519
        case_normalized_key = g_utf8_casefold (normalized_key, -1);
511
520
 
793
802
        gtk_tree_model_get (model, iter1, PLUGIN_COLUMN, &plugin1, -1);
794
803
        gtk_tree_model_get (model, iter2, PLUGIN_COLUMN, &plugin2, -1);
795
804
 
796
 
        return g_utf8_collate (brasero_plugin_get_name (plugin1),
797
 
                               brasero_plugin_get_name (plugin2));
 
805
        /* Use the translated name for the plugins */
 
806
        return g_utf8_collate (_(brasero_plugin_get_name (plugin1)),
 
807
                               _(brasero_plugin_get_name (plugin2)));
798
808
}
799
809
 
800
810
static void
900
910
static void 
901
911
brasero_plugin_manager_ui_init (BraseroPluginManagerUI *pm)
902
912
{
903
 
        gchar *markup;
904
913
        GtkWidget *vbox;
905
914
        GtkWidget *hbox;
906
 
        GtkWidget *label;
 
915
        GtkWidget *viewport;
907
916
        GtkWidget *alignment;
908
 
        GtkWidget *viewport;
909
917
        GtkWidget *vbuttonbox;
910
918
        BraseroPluginManager *manager;
911
919
        BraseroPluginManagerUIPrivate *priv;
915
923
        gtk_box_set_spacing (GTK_BOX (pm), 6);
916
924
        gtk_container_set_border_width (GTK_CONTAINER (pm), 12);
917
925
 
918
 
        label = gtk_label_new (NULL);
919
 
        markup = g_markup_printf_escaped ("<span weight=\"bold\">%s</span>",
920
 
                                          _("Plugins"));
921
 
        gtk_label_set_markup (GTK_LABEL (label), markup);
922
 
        g_free (markup);
923
 
        gtk_label_set_justify (GTK_LABEL (label), GTK_JUSTIFY_LEFT);
924
 
        gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5);
925
 
        
926
 
        gtk_box_pack_start (GTK_BOX (pm), label, FALSE, TRUE, 0);
927
 
 
928
926
        alignment = gtk_alignment_new (0., 0., 1., 1.);
929
927
        gtk_alignment_set_padding (GTK_ALIGNMENT (alignment), 0, 0, 12, 0);
930
928
        gtk_box_pack_start (GTK_BOX (pm), alignment, TRUE, TRUE, 0);
931
 
 
 
929
        
932
930
        vbox = gtk_vbox_new (FALSE, 0);
933
931
        gtk_widget_show (vbox);
934
932
        gtk_container_add (GTK_CONTAINER (alignment), vbox);