[gnome-session] [capplet] Use gtk_drag_dest_add_uri_targets() to simplify code
- From: Vincent Untz <vuntz src gnome org>
- To: svn-commits-list gnome org
- Subject: [gnome-session] [capplet] Use gtk_drag_dest_add_uri_targets() to simplify code
- Date: Wed, 24 Jun 2009 13:55:45 +0000 (UTC)
commit ba292b37844994d0a71de2e779837221d6f9f238
Author: Vincent Untz <vuntz gnome org>
Date: Tue Jun 23 14:43:07 2009 +0200
[capplet] Use gtk_drag_dest_add_uri_targets() to simplify code
capplet/gsm-properties-dialog.c | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/capplet/gsm-properties-dialog.c b/capplet/gsm-properties-dialog.c
index 7506592..d51d903 100644
--- a/capplet/gsm-properties-dialog.c
+++ b/capplet/gsm-properties-dialog.c
@@ -458,7 +458,6 @@ setup_dialog (GsmPropertiesDialog *dialog)
GtkCellRenderer *renderer;
GtkTreeSelection *selection;
GConfClient *client;
- static const GtkTargetEntry drag_targets[] = { { "text/uri-list", 0, 0 } };
gtk_dialog_add_buttons (GTK_DIALOG (dialog),
GTK_STOCK_HELP, GTK_RESPONSE_HELP,
@@ -544,9 +543,9 @@ setup_dialog (GsmPropertiesDialog *dialog)
gtk_drag_dest_set (GTK_WIDGET (treeview),
GTK_DEST_DEFAULT_ALL,
- drag_targets,
- G_N_ELEMENTS (drag_targets),
+ NULL, 0,
GDK_ACTION_COPY);
+ gtk_drag_dest_add_uri_targets (GTK_WIDGET (treeview));
g_signal_connect (treeview,
"drag-data-received",
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]