rdmenezes / cefpython

Automatically exported from code.google.com/p/cefpython
1 stars 0 forks source link

CEF3: PyGTK example on Linux #95

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
See: https://groups.google.com/d/msg/cefpython/Bdrurn1g3jI/X7AYduGZxckJ

Original issue reported on code.google.com by czarek.t...@gmail.com on 26 Nov 2013 at 6:30

GoogleCodeExporter commented 9 years ago

Original comment by czarek.t...@gmail.com on 10 Jan 2014 at 6:44

GoogleCodeExporter commented 9 years ago
Here's a pytgtk.py example working (tested in Ubuntu 14.04, x86_64), derived 
from cef1 pygtk example.

This is the diff output:
marcelo@marcelo-notebook:~$ diff pygtk.py ~/pygtk_cef1.py 
14c14
<     from cefpython3 import cefpython
---
>     from cefpython1 import cefpython
15a16,17
> import pygtk
> pygtk.require('2.0')
106c108
<             navigateUrl="file://"+GetApplicationPath("example.html"))
---
>             navigateUrl="file://"+GetApplicationPath("cefsimple.html"))
181,182c183
<         "resources_dir_path": cefpython.GetModuleDirectory(),
<         "browser_subprocess_path": "%s/%s" % (cefpython.GetModuleDirectory(), 
"subprocess")
---
>         "resources_dir_path": cefpython.GetModuleDirectory()

Regards

Original comment by fernandezm on 16 Jul 2014 at 6:48

Attachments:

GoogleCodeExporter commented 9 years ago
Checking out the source code, it seems not necessary to disable plugins in 
Linux+GTK for CEF 3, because Flash plugin works fine... so I'd change this 
lines from the example I've just submitted:

            # Flash will crash app in CEF 1 on Linux, setting                    
            # plugins_disabled to True.                                          
            browserSettings={"plugins_disabled": True},

To this:
            browserSettings={},

Regards

Original comment by fernandezm on 16 Jul 2014 at 7:08

GoogleCodeExporter commented 9 years ago
@fernandezm Thank you for the patch.

Fixed in revision c15b11067f9e.

Original comment by czarek.t...@gmail.com on 28 Jul 2014 at 11:07