Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
GSoC
GSoC2018
macOS
vlc
Commits
1be74338
Commit
1be74338
authored
Jan 03, 2003
by
Sam Hocevar
Browse files
* ./modules/gui/gtk/gtk.c, ./modules/gui/gtk/gnome.c: fixed drag'n'drop
support in the Gtk+ and GNOME interfaces.
parent
7435437a
Changes
3
Hide whitespace changes
Inline
Side-by-side
modules/gui/gtk/common.h
View file @
1be74338
...
...
@@ -2,7 +2,7 @@
* gtk_common.h: private Gtk+ interface description
*****************************************************************************
* Copyright (C) 1999, 2000 VideoLAN
* $Id: common.h,v 1.
4
200
2/12
/0
6
1
6:34:07
sam Exp $
* $Id: common.h,v 1.
5
200
3/01
/0
3
1
4:44:46
sam Exp $
*
* Authors: Samuel Hocevar <sam@zoy.org>
*
...
...
@@ -28,7 +28,7 @@
#define DROP_ACCEPT_TEXT_PLAIN 1
#define DROP_ACCEPT_STRING 2
#define
MAX_ATEXIT
10
#define
DROP_ACCEPT_END
3
/*****************************************************************************
* intf_sys_t: description and status of Gtk+ interface
...
...
modules/gui/gtk/gnome.c
View file @
1be74338
...
...
@@ -2,7 +2,7 @@
* gnome.c : Gnome plugin for vlc
*****************************************************************************
* Copyright (C) 2000 VideoLAN
* $Id: gnome.c,v 1.
4
200
2/10/14 16:46:55
sam Exp $
* $Id: gnome.c,v 1.
5
200
3/01/03 14:44:46
sam Exp $
*
* Authors: Samuel Hocevar <sam@zoy.org>
*
...
...
@@ -10,7 +10,7 @@
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
...
...
@@ -76,7 +76,7 @@ vlc_module_begin();
TOOLBAR_LONGTEXT
);
add_integer
(
"gnome-prefs-maxh"
,
480
,
NULL
,
PREFS_MAXH_TEXT
,
PREFS_MAXH_LONGTEXT
);
set_description
(
_
(
"GNOME interface module"
)
);
set_capability
(
"interface"
,
i
);
set_callbacks
(
Open
,
Close
);
...
...
@@ -178,12 +178,12 @@ static void Run( intf_thread_t *p_intf )
/* Accept file drops on the main window */
gtk_drag_dest_set
(
GTK_WIDGET
(
p_intf
->
p_sys
->
p_window
),
GTK_DEST_DEFAULT_ALL
,
target_table
,
1
,
GDK_ACTION_COPY
);
DROP_ACCEPT_END
,
GDK_ACTION_COPY
);
/* Accept file drops on the playlist window */
gtk_drag_dest_set
(
GTK_WIDGET
(
gtk_object_get_data
(
GTK_OBJECT
(
p_intf
->
p_sys
->
p_playwin
),
"playlist_clist"
)
),
GTK_DEST_DEFAULT_ALL
,
target_table
,
1
,
GDK_ACTION_COPY
);
DROP_ACCEPT_END
,
GDK_ACTION_COPY
);
/* Get the slider object */
p_intf
->
p_sys
->
p_slider_frame
=
gtk_object_get_data
(
...
...
@@ -357,7 +357,7 @@ static void Manage( intf_thread_t *p_intf )
p_intf
->
p_sys
->
p_input
=
NULL
;
}
}
if
(
p_intf
->
p_sys
->
p_input
==
NULL
)
{
p_intf
->
p_sys
->
p_input
=
vlc_object_find
(
p_intf
,
VLC_OBJECT_INPUT
,
...
...
modules/gui/gtk/gtk.c
View file @
1be74338
...
...
@@ -2,7 +2,7 @@
* gtk.c : Gtk+ plugin for vlc
*****************************************************************************
* Copyright (C) 2000-2001 VideoLAN
* $Id: gtk.c,v 1.
9
200
2/12
/0
6
1
6:34:07
sam Exp $
* $Id: gtk.c,v 1.
10
200
3/01
/0
3
1
4:44:46
sam Exp $
*
* Authors: Samuel Hocevar <sam@zoy.org>
*
...
...
@@ -194,13 +194,13 @@ static void Run( intf_thread_t *p_intf )
/* Accept file drops on the main window */
gtk_drag_dest_set
(
GTK_WIDGET
(
p_intf
->
p_sys
->
p_window
),
GTK_DEST_DEFAULT_ALL
,
target_table
,
1
,
GDK_ACTION_COPY
);
DROP_ACCEPT_END
,
GDK_ACTION_COPY
);
/* Accept file drops on the playlist window */
gtk_drag_dest_set
(
GTK_WIDGET
(
lookup_widget
(
p_intf
->
p_sys
->
p_playwin
,
"playlist_clist"
)
),
GTK_DEST_DEFAULT_ALL
,
target_table
,
1
,
GDK_ACTION_COPY
);
DROP_ACCEPT_END
,
GDK_ACTION_COPY
);
/* Get the slider object */
p_intf
->
p_sys
->
p_slider_frame
=
GTK_FRAME
(
gtk_object_get_data
(
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment