debian/0000775000000000000000000000000012277730213007174 5ustar debian/copyright0000664000000000000000000000413411501364645011132 0ustar This work was packaged for Debian by: Aron Xu on Tue, 15 Jun 2010 14:20:26 +0800 It was downloaded from http://code.google.com/p/gnome-paint/ Upstream Authors: Rogério Ferro do Nascimento (rogerio) Juan Balderas Copyright: Rogério Ferro do Nascimento (rogerio) License: gnome-paint is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. gnome-paint is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with gnome-paint. If not, see . see `/usr/share/common-licenses/GPL-3'. Files in data/icons/16x16/actions/*.png is copied from the gtk+ package created by the GTK+ Team. License: This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. See /usr/share/common-licenses/LGPL-2 on your debian system. The Debian packaging is: Copyright (C) 2010 Aron Xu and is licensed under the GPL version 3, see `/usr/share/common-licenses/GPL-3'. debian/menu0000664000000000000000000000017011501364645010062 0ustar ?package(gnome-paint):needs="X11" section="Applications/Graphics"\ title="gnome-paint" command="/usr/bin/gnome-paint" debian/changelog0000664000000000000000000000442612277730210011051 0ustar gnome-paint (0.4.0-4ubuntu1) trusty; urgency=low * Use autotools-dev for arm64. -- Daniel T Chen Sat, 15 Feb 2014 13:22:48 -0500 gnome-paint (0.4.0-4) unstable; urgency=low * debian/ftbfs-libs-lm.patch: Explicitly link with -lm to fix FTBFS. * debian/ftbfs-format-security.patch: Fix format errors. * Use dh compat 9. * Std-ver: 3.9.2 -> 3.9.4, no change. -- Aron Xu Tue, 30 Jul 2013 21:29:55 +0800 gnome-paint (0.4.0-3) unstable; urgency=low * debian/patches/lp-757607-crash-in-toolbar.patch: + Fix a crash by clicking pencil then painter at toolbar. Thanks Juan Balderas for supplying the patch. (LP: #757607) * debian/control: - Change to @debian.org email address. - Remove DMUA since not needed anymore. - Update std-ver to 3.9.2. -- Aron Xu Tue, 24 May 2011 06:21:35 +0800 gnome-paint (0.4.0-2) unstable; urgency=low * debian/patches/debian-612470-handle-urls.patch: + Handle URLs when given as command line parameters. (Closes: #612470) -- Aron Xu Thu, 10 Feb 2011 14:34:01 +0800 gnome-paint (0.4.0-1) unstable; urgency=low * New upstream release. - Draw GtkMenu when clicking items in GtkMenuBar (Closes: #607137) * debian/control: - Update homepage link. - Bump std-ver to 3.9.1. + Add DM-Upload-Allowed: yes. * debian/rules: + LDFLAGS += -Wl,--as-needed * Update translations: + pt by Américo Monteiro (Closes: #607131) + da by Joe Dalton (Closes: #607140) + vi by Duy Hùng Trần (Closes: #607342) + cs by Michal Simunek (Closes: #607468) + de by Chris Leick (Closes: #607769) + fr by Jean-Pierre (Closes: #607845) -- Aron Xu Mon, 13 Dec 2010 17:38:49 +0800 gnome-paint (0.3-2) unstable; urgency=low * debian/control: Add intltool (>= 0.35.0), gettext to build-dep. (Closes: #589047) -- Aron Xu Wed, 14 Jul 2010 16:44:57 +0800 gnome-paint (0.3-1) unstable; urgency=low * Initial release (Closes: #585952) -- Aron Xu Tue, 15 Jun 2010 14:20:26 +0800 debian/manpages0000664000000000000000000000002511501364645010710 0ustar debian/gnome-paint.1 debian/patches/0000775000000000000000000000000012175741113010621 5ustar debian/patches/update_translations.patch0000664000000000000000000001214311507257611015731 0ustar Description: Update translations submitted by Debian I18N people Author: Aron Xu Last-Update: 2010-12-31 --- a/po/fr.po +++ b/po/fr.po @@ -3,35 +3,38 @@ # This file is distributed under the same license as the gnome-paint package. # Rogério Ferro do Nascimento , 2009. # Rogério Ferrp , 2009. +# Guillemin , 2010. +# msgid "" msgstr "" "Project-Id-Version: gnome-paint-0.2\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2010-08-10 21:32+0000\n" -"PO-Revision-Date: 2010-09-10 17:46+0000\n" -"Last-Translator: Thibault Févry \n" -"Language-Team: French\n" +"PO-Revision-Date: 2010-12-20 14:00+0100\n" +"Last-Translator: Guillemin \n" +"Language-Team: français \n" "MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: ?\n" "X-Launchpad-Export-Date: 2010-12-13 12:32+0000\n" "X-Generator: Launchpad (build Unknown)\n" +"Plural-Forms: ?\n" #: ../data/desktop/gnome-paint.desktop.in.in.h:1 msgid "Create and Edit Drawings or Images" -msgstr "Créer et modifier des images ou des dessins" +msgstr "Créer et modifier des images ou des dessins" #: ../data/desktop/gnome-paint.desktop.in.in.h:2 msgid "Gnome Paint Drawing Editor" -msgstr "Éditeur de dessin Gnome Paint" +msgstr "Logiciel de dessin Gnome Paint" #: ../data/ui/gnome_paint.ui.h:1 msgid "C_m" -msgstr "" +msgstr "C_m" #: ../data/ui/gnome_paint.ui.h:2 msgid "Co_lors" -msgstr "Cou_leurs" +msgstr "_Couleurs" #: ../data/ui/gnome_paint.ui.h:3 msgid "Colors" @@ -43,19 +46,19 @@ #: ../data/ui/gnome_paint.ui.h:5 msgid "File last saved:" -msgstr "Dernier fichier sauvegardé :" +msgstr "Dernier fichier enregistré :" #: ../data/ui/gnome_paint.ui.h:6 msgid "Flip _vertical" -msgstr "Mirroir _vertical" +msgstr "Miroir _vertical" #: ../data/ui/gnome_paint.ui.h:7 msgid "Flip and Rotate" -msgstr "Mirroir et rotation" +msgstr "Miroir et Rotation" #: ../data/ui/gnome_paint.ui.h:8 msgid "Flip or rotate" -msgstr "" +msgstr "Miroir ou rotation" #: ../data/ui/gnome_paint.ui.h:9 msgid "Free select tool" @@ -95,11 +98,11 @@ #: ../data/ui/gnome_paint.ui.h:18 msgid "_Attributes..." -msgstr "_Métadonnées" +msgstr "_Métadonnées…" #: ../data/ui/gnome_paint.ui.h:19 msgid "_Black and white" -msgstr "Noir et _blanc" +msgstr "_Noir et blanc" #: ../data/ui/gnome_paint.ui.h:20 msgid "_Clear Image" @@ -107,7 +110,7 @@ #: ../data/ui/gnome_paint.ui.h:21 msgid "_Draw Opaque" -msgstr "" +msgstr "_Dessiner opaque" #: ../data/ui/gnome_paint.ui.h:22 msgid "_Edit" @@ -119,11 +122,11 @@ #: ../data/ui/gnome_paint.ui.h:24 msgid "_Flip horizontal" -msgstr "_Mirroir vertical" +msgstr "_Miroir horizontal" #: ../data/ui/gnome_paint.ui.h:25 msgid "_Flip/Rotate..." -msgstr "" +msgstr "_Miroir/Rotation…" #: ../data/ui/gnome_paint.ui.h:26 msgid "_Height" @@ -147,15 +150,15 @@ #: ../data/ui/gnome_paint.ui.h:31 msgid "_Pixels" -msgstr "_Pixels" +msgstr "P_ixels" #: ../data/ui/gnome_paint.ui.h:32 msgid "_Rotate by angle" -msgstr "" +msgstr "_Rotation selon l'angle" #: ../data/ui/gnome_paint.ui.h:33 msgid "_Stretch/Skew..." -msgstr "" +msgstr "É_tirer/Déformer…" #: ../data/ui/gnome_paint.ui.h:34 msgid "_View" @@ -167,29 +170,29 @@ #: ../src/color.c:142 msgid "Select Background Color" -msgstr "Sélectionner la couleur du fond" +msgstr "Sélectionner la couleur de remplissage" #: ../src/color.c:155 msgid "Select Foreground Color" -msgstr "Sélectionnez la couleur de premier plan" +msgstr "Sélectionner la couleur du trait" #: ../src/color.c:215 msgid "Select Color" -msgstr "Sélectionnez une couleur" +msgstr "Sélectionner une couleur" #: ../src/file.c:98 #, c-format msgid "Do you want to save the changes you made to \"%s\"?" -msgstr "Voulez-vous sauvegarder les modifications apportées à \"%s\" ?" +msgstr "Voulez-vous enregistrer les modifications apportées à « %s » ?" #: ../src/file.c:102 msgid "Your changes will be lost if you don't save them." -msgstr "Vos modifications seront perdues si vous ne les sauvegardez pas." +msgstr "Vos modifications seront perdues si vous ne les enregistrez pas." #: ../src/file.c:175 #, c-format msgid "Error loading file \"%s\"" -msgstr "Erreur lors du chargement du fichier \"%s\"" +msgstr "Erreur lors de l'ouverture du fichier « %s »" #: ../src/file.c:272 #, c-format @@ -203,7 +206,7 @@ #: ../src/file.c:326 #, c-format msgid "Error saving file \"%s\"" -msgstr "Erreur d'enregistrement du fichier \"%s\"" +msgstr "Erreur d'enregistrement du fichier « %s »" #: ../src/file.c:340 msgid "unknown error" @@ -237,7 +240,7 @@ #: ../src/pixbuf-file-chooser.c:427 msgid "Load Image" -msgstr "Charger l'image" +msgstr "Ouvrir l'image" #: ../src/pixbuf-file-chooser.c:435 msgid "Save Image" @@ -245,7 +248,7 @@ #: ../src/pixbuf-file-chooser.c:443 msgid "Open Folder" -msgstr "Ouvrir dossier" +msgstr "Ouvrir le dossier" #~ msgid "_Color" #~ msgstr "_Couleur" debian/patches/ftbfs-libs-lm.patch0000664000000000000000000000061012175737713014313 0ustar --- a/src/Makefile.am +++ b/src/Makefile.am @@ -87,7 +87,7 @@ -Wl,--export-dynamic gnome_paint_LDADD = \ - $(GNOME_PAINT_LIBS) -lX11 + $(GNOME_PAINT_LIBS) -lX11 -lm SUBDIRS = \ pixmaps --- a/src/Makefile.in +++ b/src/Makefile.in @@ -352,7 +352,7 @@ -Wl,--export-dynamic gnome_paint_LDADD = \ - $(GNOME_PAINT_LIBS) -lX11 + $(GNOME_PAINT_LIBS) -lX11 -lm SUBDIRS = \ pixmaps debian/patches/ftbfs-format-security.patch0000664000000000000000000000044212175741113016101 0ustar --- a/src/toolbar.c +++ b/src/toolbar.c @@ -603,7 +603,7 @@ GTK_DIALOG_MODAL | GTK_DIALOG_DESTROY_WITH_PARENT, GTK_MESSAGE_INFO, GTK_BUTTONS_OK, - message); + "%s", message); gtk_dialog_run (GTK_DIALOG (dialog)); gtk_widget_destroy (dialog); debian/patches/series0000664000000000000000000000021312175740533012037 0ustar lp-757607-crash-in-toolbar.patch update_translations.patch debian-612470-handle-urls.patch ftbfs-libs-lm.patch ftbfs-format-security.patch debian/patches/lp-757607-crash-in-toolbar.patch0000664000000000000000000000211211566560307016177 0ustar Description: Fix a crash by clicking pencil then painter at toolbar. Author: Juan Balderas Bug-Ubuntu: 757607 Last-Update: 2011-05-24 --- a/src/toolbar.c +++ b/src/toolbar.c @@ -497,15 +497,22 @@ static GtkWidget * get_gtk_image ( GtkWidget *widget, gchar** xpm ) { - GdkPixmap *gdkpixmap = NULL; - GdkBitmap *mask = NULL; + GdkPixbuf *pixbuf = NULL; GtkWidget *gtkimage = NULL; - gdkpixmap = gdk_pixmap_create_from_xpm_d(widget->window, &mask, NULL, xpm); - g_assert ( gdkpixmap ); - gtkimage = gtk_image_new_from_pixmap(gdkpixmap, mask); - g_assert ( gtkimage ); - g_object_unref ( G_OBJECT(gdkpixmap) ); - g_object_unref ( G_OBJECT(mask) ); + + pixbuf = gdk_pixbuf_new_from_xpm_data (xpm); + + if(!gdk_pixbuf_get_has_alpha (pixbuf)) + { + GdkPixbuf *tmp; + + tmp = gdk_pixbuf_add_alpha (pixbuf, FALSE, 0, 0, 0); + if(GDK_IS_PIXBUF(tmp)){ g_object_unref(pixbuf); pixbuf = tmp; } + } + gtkimage = gtk_image_new_from_pixbuf (pixbuf); + + if(GDK_IS_PIXBUF(pixbuf)){ g_object_unref(pixbuf); } + gtk_widget_show(gtkimage); return gtkimage; } debian/patches/debian-612470-handle-urls.patch0000664000000000000000000000216211566557640016057 0ustar Description: Handle URLs when given as command line parameters. Applications use %U in .desktop file should be able to open multiple files either in the form of paths or URLs. Author: Juan Balderas Bug-Debian: 612470 Last-Update: 2011-02-10 --- a/src/file.c +++ b/src/file.c @@ -133,11 +133,30 @@ gboolean -file_open ( const gchar * filename ) +file_open ( const gchar * fname ) { gboolean ok = FALSE; GError *error = NULL; GdkPixbuf *pixbuf = NULL; + gchar *filename = NULL; + GFile *file = NULL; + + filename = g_strdup (fname); + + file = g_file_new_for_uri (filename); + if( G_IS_FILE (file) ) + { + gchar *p = NULL; + + p = g_file_get_path ( file); + if(p) + { + g_free (filename); + filename = p; + } + g_object_unref(file); + } + pixbuf = gdk_pixbuf_new_from_file (filename, &error); if (pixbuf != NULL) { @@ -178,6 +197,12 @@ g_free (basename); g_free (message); } + + if(filename) + { + g_free (filename); + } + g_object_unref (pixbuf); return ok; } --- /dev/null +++ b/po/POTFILES.skip @@ -0,0 +1 @@ +.pc/debian-612470-handle-urls.patch/src/file.c debian/watch0000664000000000000000000000042611501364645010230 0ustar version=3 opts=downloadurlmangle=s#.*(gnome-paint-([\d.]+)\.tar\.gz).*#http://gnome-paint.googlecode.com/files/$1#,filenamemangle=s#.*(gnome-paint-([\d.]+)\.tar\.gz).*#$1# \ http://code.google.com/p/gnome-paint/downloads/list ^.*detail\?name=gnome-paint-([\d.]+)\.tar\.gz.* debian/control0000664000000000000000000000135312277730152010603 0ustar Source: gnome-paint Section: graphics Priority: optional Maintainer: Ubuntu Developers XSBC-Original-Maintainer: Aron Xu Build-Depends: debhelper (>= 9), autotools-dev, libgtk2.0-dev, intltool ( >= 0.35.0), gettext Standards-Version: 3.9.4 Homepage: http://launchpad.net/gnome-paint/ Package: gnome-paint Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends} Description: simple, easy to use paint program for GNOME gnome-paint is a program inspired by MS Paint and designed for GNOME (and maybe other) desktop environment. It could be used to manipulate images in a very simple way. With a very friendly user interface, gnome-paint is easy to get started for new users. debian/source/0000775000000000000000000000000011501364645010475 5ustar debian/source/format0000664000000000000000000000001411524702650011700 0ustar 3.0 (quilt) debian/compat0000664000000000000000000000000212175740232010371 0ustar 9 debian/gnome-paint.10000664000000000000000000000271311501364645011500 0ustar .\" Hey, EMACS: -*- nroff -*- .\" First parameter, NAME, should be all caps .\" Second parameter, SECTION, should be 1-8, maybe w/ subsection .\" other parameters are allowed: see man(7), man(1) .TH GNOME-PAINT 1 "June 15, 2010" .\" Please adjust this date whenever revising the manpage. .\" .\" Some roff macros, for reference: .\" .nh disable hyphenation .\" .hy enable hyphenation .\" .ad l left justify .\" .ad b justify to both left and right margins .\" .nf disable filling .\" .fi enable filling .\" .br insert line break .\" .sp insert n+1 empty lines .\" for manpage-specific macros, see man(7) .SH NAME gnome-paint \- simple, easy-to-use paint program for GNOME \fB .RE \fB .SH SYNOPSIS .nf .fam C \fBgnome-paint\fP .fam T .fi .fam T .fi .SH DESCRIPTION This manual page documents briefly the .B gnome-paint commands. .PP .\" TeX users may be more comfortable with the \fB\fP and .\" \fI\fP escape sequences to invode bold face and italics, .\" respectively. \fBgnome-paint\fP is a program inspired by MS Paint and designed for GNOME (and maybe other) desktop environment. It could be used to manipulate images in a very simple way. .SH AUTHOR gnome-paint was written by Rogério Ferro do Nascimento (rogerio) . .PP This manual page was written by Aron Xu , for the Debian project (and may be used by others). debian/rules0000775000000000000000000000046512277730167010271 0ustar #!/usr/bin/make -f # -*- makefile -*- LDFLAGS += -Wl,--as-needed %: dh $@ --with autotools-dev override_dh_install: mkdir -p debian/gnome-paint/usr/share/doc/gnome-paint/ mv debian/gnome-paint/usr/doc/gnome-paint/README debian/gnome-paint/usr/share/doc/gnome-paint/ rm -rf debian/gnome-paint/usr/doc/