Skip to content

Commit 25d7ddb

Browse files
CzarekCzarek
authored andcommitted
Updated the CEF patch for Linux.
1 parent 5b9874c commit 25d7ddb

1 file changed

Lines changed: 7 additions & 6 deletions

File tree

cefpython/cef1/linux/CEF-patch-for-wxPython-on-Linux.txt renamed to cefpython/cef1/linux/CEF-patch-for-Linux.txt

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,22 @@ See this topic on CEF C++ forum for more details about this CEF
22
patch to make it work with wxPython on Linux:
33
http://www.magpcss.org/ceforum/viewtopic.php?f=6&t=10641
44

5-
Do the following changes in CEF C++ sources:
5+
Do the following changes in the CEF C++ sources:
66

7-
1. CefBrowserImpl::UIT_CreateBrowser() in `libcef/browser_impl_gtk.cc`
7+
1. In `chromium/src/cef/libcef/browser_impl_gtk.cc`:
88

9-
Add this code at the end of the function:
9+
At the end of the CefBrowserImpl::UIT_CreateBrowser() function,
10+
before the return statement add the following code:
1011

1112
gtk_widget_show_all(GTK_WIDGET(window_info_.m_Widget));
1213

13-
2. WebWidgetHostGtkWidget::CreateNewWidget() in `libcef/webwidget_host_gtk.cc`
14+
2. In `chromium/src/cef/libcef/webwidget_host_gtk.cc`:
1415

15-
Replace this line:
16+
In WebWidgetHostGtkWidget::CreateNewWidget() function replace this line:
1617

1718
gtk_box_pack_start(GTK_BOX(parent_view), widget, TRUE, TRUE, 0);
1819

19-
With this code:
20+
With the following code:
2021

2122
if (GTK_IS_BOX(parent_view)) {
2223
gtk_box_pack_start(GTK_BOX(parent_view), widget, TRUE, TRUE, 0);

0 commit comments

Comments
 (0)