Enabled DnD also for the main notebook widget to drop files in the main area of Geany.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1005 ea778897-0a13-0410-b9d1-a72fbfd435f5
This commit is contained in:
parent
99806172b2
commit
6077f3c420
@ -1,3 +1,9 @@
|
||||
2006-11-16 Enrico Tröger <enrico.troeger@uvena.de>
|
||||
|
||||
* src/main.c: Enabled DnD also for the main notebook widget to drop
|
||||
files in the main area of Geany.
|
||||
|
||||
|
||||
2006-11-15 Enrico Tröger <enrico.troeger@uvena.de>
|
||||
|
||||
* src/vte.c: Don't unload the VTE module on exit to avoid crashes on
|
||||
|
@ -565,8 +565,13 @@ gint main(gint argc, gchar **argv)
|
||||
gtk_drag_dest_set(app->window, GTK_DEST_DEFAULT_ALL, targets,
|
||||
G_N_ELEMENTS(targets),
|
||||
GDK_ACTION_COPY | GDK_ACTION_MOVE | GDK_ACTION_LINK | GDK_ACTION_ASK);
|
||||
gtk_drag_dest_set(app->notebook, GTK_DEST_DEFAULT_ALL, targets,
|
||||
G_N_ELEMENTS(targets),
|
||||
GDK_ACTION_COPY | GDK_ACTION_MOVE | GDK_ACTION_LINK | GDK_ACTION_ASK);
|
||||
g_signal_connect(G_OBJECT(app->window), "drag-data-received",
|
||||
G_CALLBACK(on_window_drag_data_received), NULL);
|
||||
g_signal_connect(G_OBJECT(app->notebook), "drag-data-received",
|
||||
G_CALLBACK(on_window_drag_data_received), NULL);
|
||||
}
|
||||
|
||||
treeviews_prepare_openfiles();
|
||||
|
Loading…
x
Reference in New Issue
Block a user