annotate src/compat.h @ 1661:13ff1db545f6

Fix two memory failures 1. if the description field for a exif information is empty the program dumps core when trying to change this. The reason is a strcmp with a NULL value. The fix add the small functionality to set the field to default when it is set empty. 2. There was a g_strdup miss in exif.c which could end in memory corruption.
author mow
date Sun, 21 Jun 2009 22:52:08 +0000
parents ee2b66a09a03
children ce8ec81a9601
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
457
5e9c24d3b3a8 Add a replacement for gtk_radio_action_set_current_value() which
zas_
parents:
diff changeset
1 /*
5e9c24d3b3a8 Add a replacement for gtk_radio_action_set_current_value() which
zas_
parents:
diff changeset
2 * Geeqie
1284
8b89e3ff286b Add year 2009 to copyright info everywhere.
zas_
parents: 1055
diff changeset
3 * Copyright (C) 2008 - 2009 The Geeqie Team
457
5e9c24d3b3a8 Add a replacement for gtk_radio_action_set_current_value() which
zas_
parents:
diff changeset
4 *
5e9c24d3b3a8 Add a replacement for gtk_radio_action_set_current_value() which
zas_
parents:
diff changeset
5 * Authors: Vladimir Nadvornik / Laurent Monin
5e9c24d3b3a8 Add a replacement for gtk_radio_action_set_current_value() which
zas_
parents:
diff changeset
6 *
5e9c24d3b3a8 Add a replacement for gtk_radio_action_set_current_value() which
zas_
parents:
diff changeset
7 *
5e9c24d3b3a8 Add a replacement for gtk_radio_action_set_current_value() which
zas_
parents:
diff changeset
8 * This software is released under the GNU General Public License (GNU GPL).
5e9c24d3b3a8 Add a replacement for gtk_radio_action_set_current_value() which
zas_
parents:
diff changeset
9 * Please read the included file COPYING for more information.
5e9c24d3b3a8 Add a replacement for gtk_radio_action_set_current_value() which
zas_
parents:
diff changeset
10 * This software comes with no warranty of any kind, use at your own risk!
5e9c24d3b3a8 Add a replacement for gtk_radio_action_set_current_value() which
zas_
parents:
diff changeset
11 */
5e9c24d3b3a8 Add a replacement for gtk_radio_action_set_current_value() which
zas_
parents:
diff changeset
12
5e9c24d3b3a8 Add a replacement for gtk_radio_action_set_current_value() which
zas_
parents:
diff changeset
13 #ifndef COMPAT_H
5e9c24d3b3a8 Add a replacement for gtk_radio_action_set_current_value() which
zas_
parents:
diff changeset
14 #define COMPAT_H
5e9c24d3b3a8 Add a replacement for gtk_radio_action_set_current_value() which
zas_
parents:
diff changeset
15
5e9c24d3b3a8 Add a replacement for gtk_radio_action_set_current_value() which
zas_
parents:
diff changeset
16 void radio_action_set_current_value(GtkRadioAction *action, gint current_value);
1574
ee2b66a09a03 compilation fixes for older glib and gtk
nadvornik
parents: 1284
diff changeset
17 GList* hash_table_get_keys(GHashTable *hash_table);
ee2b66a09a03 compilation fixes for older glib and gtk
nadvornik
parents: 1284
diff changeset
18
ee2b66a09a03 compilation fixes for older glib and gtk
nadvornik
parents: 1284
diff changeset
19 #if !GTK_CHECK_VERSION(2,12,0)
ee2b66a09a03 compilation fixes for older glib and gtk
nadvornik
parents: 1284
diff changeset
20 #define gtk_widget_set_tooltip_text(widget, text) /* ignored */
ee2b66a09a03 compilation fixes for older glib and gtk
nadvornik
parents: 1284
diff changeset
21 #endif
ee2b66a09a03 compilation fixes for older glib and gtk
nadvornik
parents: 1284
diff changeset
22
457
5e9c24d3b3a8 Add a replacement for gtk_radio_action_set_current_value() which
zas_
parents:
diff changeset
23
5e9c24d3b3a8 Add a replacement for gtk_radio_action_set_current_value() which
zas_
parents:
diff changeset
24 #endif /* COMPAT_H */
1055
1646720364cf Adding a vim modeline to all files - patch by Klaus Ethgen
nadvornik
parents: 475
diff changeset
25 /* vim: set shiftwidth=8 softtabstop=0 cindent cinoptions={1s: */