From 24297d7942797bf653bbfa610e447877a3948f07 Mon Sep 17 00:00:00 2001 From: Xan Lopez Date: Sat, 9 Mar 2013 10:58:40 +0100 Subject: pdm-dialog: remove compiler warnings --- src/pdm-dialog.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/pdm-dialog.c b/src/pdm-dialog.c index 89075e81c..33a5c46a8 100644 --- a/src/pdm-dialog.c +++ b/src/pdm-dialog.c @@ -520,7 +520,7 @@ pdm_cmd_delete_selection (PdmActionInfo *action) gtk_tree_model_get_iter (model, &iter, path); gtk_tree_model_get_value (model, &iter, action->data_col, &val); #ifdef HAVE_WEBKIT2 - action->remove (action, g_value_get_string (&val)); + action->remove (action, (gpointer)g_value_get_string (&val)); #else action->remove (action, G_VALUE_HOLDS_OBJECT (&val) ? g_value_get_object (&val) : g_value_get_boxed (&val)); #endif @@ -696,6 +696,7 @@ cookies_properties_clicked_cb (GtkWidget *button, g_list_free (l); } +#ifndef HAVE_WEBKIT2 static void cookies_treeview_selection_changed_cb (GtkTreeSelection *selection, PdmDialog *dialog) @@ -709,6 +710,7 @@ cookies_treeview_selection_changed_cb (GtkTreeSelection *selection, widget = ephy_dialog_get_control (d, "cookies_properties_button"); gtk_widget_set_sensitive (widget, has_selection); } +#endif static gboolean cookie_search_equal (GtkTreeModel *model, -- cgit v1.2.3