New Package gpaint

This commit is contained in:
Ali Cengiz Kurt
2024-11-12 13:02:57 +03:00
parent 59f143b7c6
commit 99c46ebc39
4 changed files with 125 additions and 0 deletions
@@ -0,0 +1,24 @@
#! /bin/sh /usr/share/dpatch/dpatch-run
## 21_fix_crash_on_fill_button_click.dpatch by Goedson Teixeira Paixao <goedson@debian.org>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: Check that tool->canvas->drawing_area is not null when casting it to a
## DP: GtkWidget.
@DPATCH@
Index: pkg-gpaint/src/text.c
===================================================================
--- pkg-gpaint.orig/src/text.c 2009-12-22 21:03:29.000000000 -0200
+++ pkg-gpaint/src/text.c 2009-12-23 13:01:33.000000000 -0200
@@ -156,7 +156,10 @@
{
debug_fn();
GtkStyle *style;
- GtkWidget *widget = GTK_WIDGET(tool->canvas->drawing_area);
+ GtkWidget *widget = NULL;
+
+ if ((tool->canvas == NULL) || (tool->canvas->drawing_area == NULL)) return FALSE;
+ widget = GTK_WIDGET(tool->canvas->drawing_area);
style = gtk_widget_get_style(widget);
g_assert(style);
@@ -0,0 +1,11 @@
[Desktop Entry]
Name=GNU Paint
Comment=A small-scale painting program for GNOME and the GNU Desktop
Comment[fr]=Un petit outil de dessin pour GNOME, le desktop GNU
Comment[pt_BR]=Um pequeno programa de desenho para o GNOME, o Desktop GNU
TryExec=gpaint
Exec=gpaint
Icon=gnome-logo-icon-transparent.png
Terminal=0
Type=Application
Categories=Graphics;2DGraphics;RasterGraphics;