Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Alchemy Viewer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package registry
Operate
Terraform modules
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Silent mode is enabled
All outbound communications are blocked.
Learn more
.
Show more breadcrumbs
Alchemy Viewer
Alchemy Viewer
Commits
81597463
Commit
81597463
authored
14 years ago
by
Tofu Linden
Browse files
Options
Downloads
Plain Diff
hairy merge of glib restoration
parents
b04ca1b0
7295e1ee
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
indra/media_plugins/webkit/CMakeLists.txt
+6
-4
6 additions, 4 deletions
indra/media_plugins/webkit/CMakeLists.txt
indra/media_plugins/webkit/media_plugin_webkit.cpp
+14
-1
14 additions, 1 deletion
indra/media_plugins/webkit/media_plugin_webkit.cpp
with
20 additions
and
5 deletions
indra/media_plugins/webkit/CMakeLists.txt
+
6
−
4
View file @
81597463
...
@@ -50,8 +50,10 @@ set(media_plugin_webkit_LINK_LIBRARIES
...
@@ -50,8 +50,10 @@ set(media_plugin_webkit_LINK_LIBRARIES
)
)
# Select which VolumeCatcher implementation to use
# Select which VolumeCatcher implementation to use
if
(
LINUX AND PULSEAUDIO
)
if
(
LINUX
)
if
(
PULSEAUDIO
)
list
(
APPEND media_plugin_webkit_SOURCE_FILES linux_volume_catcher.cpp
)
list
(
APPEND media_plugin_webkit_SOURCE_FILES linux_volume_catcher.cpp
)
endif
(
PULSEAUDIO
)
list
(
APPEND media_plugin_webkit_LINK_LIBRARIES
list
(
APPEND media_plugin_webkit_LINK_LIBRARIES
${
UI_LIBRARIES
}
# for glib/GTK
${
UI_LIBRARIES
}
# for glib/GTK
)
)
...
@@ -65,10 +67,10 @@ elseif (DARWIN)
...
@@ -65,10 +67,10 @@ elseif (DARWIN)
)
)
elseif
(
WINDOWS
)
elseif
(
WINDOWS
)
list
(
APPEND media_plugin_webkit_SOURCE_FILES windows_volume_catcher.cpp
)
list
(
APPEND media_plugin_webkit_SOURCE_FILES windows_volume_catcher.cpp
)
else
(
LINUX
AND PULSEAUDIO
)
else
(
LINUX
)
# All other platforms use the dummy volume catcher for now.
# All other platforms use the dummy volume catcher for now.
list
(
APPEND media_plugin_webkit_SOURCE_FILES dummy_volume_catcher.cpp
)
list
(
APPEND media_plugin_webkit_SOURCE_FILES dummy_volume_catcher.cpp
)
endif
(
LINUX
AND PULSEAUDIO
)
endif
(
LINUX
)
set_source_files_properties
(
${
media_plugin_webkit_HEADER_FILES
}
set_source_files_properties
(
${
media_plugin_webkit_HEADER_FILES
}
PROPERTIES HEADER_FILE_ONLY TRUE
)
PROPERTIES HEADER_FILE_ONLY TRUE
)
...
...
This diff is collapsed.
Click to expand it.
indra/media_plugins/webkit/media_plugin_webkit.cpp
+
14
−
1
View file @
81597463
...
@@ -46,6 +46,9 @@
...
@@ -46,6 +46,9 @@
// set to 1 if you're using the version of llqtwebkit that's QPixmap-ified
// set to 1 if you're using the version of llqtwebkit that's QPixmap-ified
#if LL_LINUX
#if LL_LINUX
# define LL_QTWEBKIT_USES_PIXMAPS 0
# define LL_QTWEBKIT_USES_PIXMAPS 0
extern
"C"
{
# include <glib.h>
}
#else
#else
# define LL_QTWEBKIT_USES_PIXMAPS 0
# define LL_QTWEBKIT_USES_PIXMAPS 0
#endif // LL_LINUX
#endif // LL_LINUX
...
@@ -129,6 +132,16 @@ class MediaPluginWebKit :
...
@@ -129,6 +132,16 @@ class MediaPluginWebKit :
//
//
void
update
(
int
milliseconds
)
void
update
(
int
milliseconds
)
{
{
#if LL_LINUX
// pump glib generously, as Linux browser plugins are on the
// glib main loop, even if the browser itself isn't - ugh
//*TODO: shouldn't this be transparent if Qt was compiled with
// glib mainloop integration? investigate.
GMainContext
*
mainc
=
g_main_context_default
();
while
(
g_main_context_iteration
(
mainc
,
FALSE
));
#endif // LL_LINUX
// pump qt
LLQtWebKit
::
getInstance
()
->
pump
(
milliseconds
);
LLQtWebKit
::
getInstance
()
->
pump
(
milliseconds
);
mVolumeCatcher
.
pump
();
mVolumeCatcher
.
pump
();
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment