Don't add the same target atom twice. (#516087, Christian Persch)

2008-02-15  Matthias Clasen  <mclasen@redhat.com>

        * gtk/gtkselection.c (gtk_target_list_add_text_targets): Don't
        add the same target atom twice.  (#516087, Christian Persch)

svn path=/trunk/; revision=19589
This commit is contained in:
Matthias Clasen 2008-02-16 01:37:47 +00:00 committed by Matthias Clasen
parent f27fe11cb8
commit 3b3122ee06
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2008-02-15 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkselection.c (gtk_target_list_add_text_targets): Don't
add the same target atom twice. (#516087, Christian Persch)
2008-02-15 Matthias Clasen <mclasen@redhat.com>
* tests/testfilechooser.c: Add a --backend option.

View File

@ -338,7 +338,8 @@ gtk_target_list_add_text_targets (GtkTargetList *list,
gtk_target_list_add (list, text_atom, 0, info);
gtk_target_list_add (list, GDK_TARGET_STRING, 0, info);
gtk_target_list_add (list, text_plain_utf8_atom, 0, info);
gtk_target_list_add (list, text_plain_locale_atom, 0, info);
if (!g_get_charset (NULL))
gtk_target_list_add (list, text_plain_locale_atom, 0, info);
gtk_target_list_add (list, text_plain_atom, 0, info);
}