summaryrefslogtreecommitdiff
path: root/gtk/gtkselection.c
diff options
context:
space:
mode:
authorManish Singh <yosh@gimp.org>2004-08-26 00:20:25 +0000
committerManish Singh <yosh@src.gnome.org>2004-08-26 00:20:25 +0000
commit95674320d9b0b520db607b387614238fb3d085cb (patch)
tree48e64428e379e80d6c6a375466863bad34dc025d /gtk/gtkselection.c
parentb73a8cc0b4b7fa42ed3d5865c4bf661335da5790 (diff)
downloadgdk-pixbuf-95674320d9b0b520db607b387614238fb3d085cb.tar.gz
initialize path so we don't potentially use an undefined pointer.
Wed Aug 25 17:14:58 2004 Manish Singh <yosh@gimp.org> * gtk/gtktreeview.c (gtk_tree_view_search_activate): initialize path so we don't potentially use an undefined pointer. * gtk/gtkfilechooserdefault.c (shortcuts_list_create): add G_CALLBACK cast for tree_view_keybinding_cb. * gtk/gtkfilechooserdefault.c (location_entry_create): cast to GTK_FILE_CHOOSER_ENTRY for _gtk_file_chooser_entry_set_file_part() calls. * gtk/gtkcellrenderercombo.c (gtk_cell_renderer_combo_start_editing): cast to GTK_COMBO_BOX for gtk_combo_box_set_active_iter() call. * gtk/gtkselection.c (selection_get_text_plain): make len a gsize, since that's what g_convert_with_fallback() expects.
Diffstat (limited to 'gtk/gtkselection.c')
-rw-r--r--gtk/gtkselection.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtkselection.c b/gtk/gtkselection.c
index 1e3a1b06c..d0ec8b8bc 100644
--- a/gtk/gtkselection.c
+++ b/gtk/gtkselection.c
@@ -1014,7 +1014,7 @@ selection_get_text_plain (GtkSelectionData *selection_data)
{
const gchar *charset = NULL;
gchar *str, *result;
- gint len;
+ gsize len;
GError *error = NULL;
str = g_strdup (selection_data->data);