]> git.pld-linux.org Git - packages/gtkam.git/blame - format-security.patch
- updated to 1.0
[packages/gtkam.git] / format-security.patch
CommitLineData
efab2ab6
JR
1--- gtkam-0.1.18/src/gtkam-port.c.orig 2008-10-04 16:04:40.000000000 +0200
2+++ gtkam-0.1.18/src/gtkam-port.c 2013-06-12 18:44:34.930092331 +0200
3@@ -133,7 +133,6 @@
4 GPPortInfoList *list;
5 int index;
6 const gchar *path;
7- gchar *msg;
8 GtkWidget *d;
9
10 gp_port_info_list_new (&list);
11@@ -143,10 +142,8 @@
12 gp_port_info_list_free (list);
13
14 if (index < 0) {
15- msg = g_strdup_printf (_("The port '%s' could not be found. Please make sure "
16+ d = gtkam_error_new (index, NULL, GTK_WIDGET (port), _("The port '%s' could not be found. Please make sure "
17 "that the port exists."), path);
18- d = gtkam_error_new (index, NULL, GTK_WIDGET (port), msg);
19- g_free (msg);
20 gtk_window_set_transient_for (GTK_WINDOW (d),
21 GTK_WINDOW (port));
22 gtk_widget_show (d);
9d072c39
JB
23--- gtkam-1.0/src/gtkam-save.c.orig 2015-08-08 11:01:10.000000000 +0200
24+++ gtkam-1.0/src/gtkam-save.c 2020-09-12 08:06:07.648695751 +0200
efab2ab6
JR
25@@ -252,7 +252,7 @@
26 static int
27 save_file (GtkamSave *save, const char *filename, CameraFile *file, CameraFileType type, guint n)
28 {
9d072c39
JB
29- gchar *full_path, *full_filename, *msg, *number_filename;
30+ gchar *full_path, *full_filename, *number_filename;
efab2ab6 31 const char *mime_type;
9d072c39 32 const gchar *fsel_path, *prefix, *suffix;
efab2ab6
JR
33 GtkWidget *dialog;
34@@ -296,14 +296,12 @@
35
36 /* FIXME Check which is user, and prompt the user */
37 if (!save->priv->quiet && file_exists (full_path)) {
38- msg = g_strdup_printf (_("The file '%s' already exists."),
39- full_path);
40 if (!save->priv->err_shown) {
41- dialog = gtkam_error_new (GP_ERROR_FILE_EXISTS, NULL, GTK_WIDGET (save), msg);
42+ dialog = gtkam_error_new (GP_ERROR_FILE_EXISTS, NULL, GTK_WIDGET (save),
43+ _("The file '%s' already exists."), full_path);
44 gtk_window_set_transient_for (GTK_WINDOW (dialog),
45 save->priv->main_window);
46 gtk_widget_show (dialog);
47- g_free (msg);
48 g_free (full_path);
49 save->priv->err_shown = TRUE;
50 }
51--- gtkam-0.2.0/src/gtkam-tree.c~ 2012-07-10 09:08:30.000000000 +0200
52+++ gtkam-0.2.0/src/gtkam-tree.c 2013-06-12 18:47:53.498783732 +0200
53@@ -607,7 +607,7 @@
54 tree_save_file (CameraFile *file, const char *dest_path, const char *name,
55 GtkWindow *save)
56 {
57- gchar *full_path, *msg;
58+ gchar *full_path;
59 GtkWidget *dialog;
60 int result;
61
62@@ -616,12 +616,11 @@
63
64 /* FIXME Check which is user, and prompt the user */
65 if (file_exists (full_path)) {
66- msg = g_strdup_printf (_("The file '%s' already exists."),
67- full_path);
68 dialog = gtkam_error_new (GP_ERROR_FILE_EXISTS, NULL,
69- GTK_WIDGET (save), msg);
70+ GTK_WIDGET (save),
71+ _("The file '%s' already exists."),
72+ full_path);
73 gtk_widget_show (dialog);
74- g_free (msg);
75 g_free (full_path);
76 return -1;
77 }
This page took 0.058998 seconds and 4 git commands to generate.