diff --git a/Gruntfile.js b/Gruntfile.js index 8758a8f1e..3335e0664 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -38,7 +38,7 @@ module.exports = function (grunt) { } if (platform === "linux") { - cef_version = "3.2704.1414"; + cef_version = "3.2785.1486"; } grunt.initConfig({ diff --git a/appshell/appshell_extensions.js b/appshell/appshell_extensions.js index 91a945444..ebfbf6155 100644 --- a/appshell/appshell_extensions.js +++ b/appshell/appshell_extensions.js @@ -942,5 +942,8 @@ if (!appshell.app) { // Alias the appshell object to brackets. This is temporary and should be removed. - brackets = appshell; + // The following is now moved to Global.js as newer versions of CEF crash upon + // eval of this statement. + //brackets = appshell; + })(); diff --git a/appshell/browser/root_window_gtk.cc b/appshell/browser/root_window_gtk.cc index b22c63509..d566bbdd3 100644 --- a/appshell/browser/root_window_gtk.cc +++ b/appshell/browser/root_window_gtk.cc @@ -360,6 +360,36 @@ void RootWindowGtk::CreateRootWindow(const CefBrowserSettings& settings) { } } +// The following function makes sure we repaginate +// the content once the window is shown first. The +// problem was that the view port was not getting +// updated and a fake resize was required for the +// content to repaginate. +void DelayedResize(GtkWidget* window_) { + if(window_){ + GtkWindow* window = GTK_WINDOW(window_); + GdkWindow* gdk_window = gtk_widget_get_window(window_); + + gint x; + gint y; + gint width; + gint height; + gint depth; + + gdk_window_get_geometry (gdk_window, + &x, + &y, + &width, + &height, + &depth); + + // A hack to repaginate the content inside the window. + // Nudge the width and height by one pixel, so that the + // resize is not noticeable. + gdk_window_resize (gdk_window, width + 1, height + 1); + } +} + void RootWindowGtk::OnBrowserCreated(CefRefPtr browser) { REQUIRE_MAIN_THREAD(); @@ -367,6 +397,9 @@ void RootWindowGtk::OnBrowserCreated(CefRefPtr browser) { // created. if (is_popup_) CreateRootWindow(CefBrowserSettings()); + + // Post a message to CEF queue for delated resize. + CefPostTask(TID_UI, base::Bind(&DelayedResize, window_)); } void RootWindowGtk::OnBrowserWindowDestroyed() { diff --git a/appshell/client_handler.cpp b/appshell/client_handler.cpp index 18698d2f6..9add38a83 100644 --- a/appshell/client_handler.cpp +++ b/appshell/client_handler.cpp @@ -202,7 +202,11 @@ bool ClientHandler::OnDragEnter(CefRefPtr browser, } void ClientHandler::OnLoadStart(CefRefPtr browser, - CefRefPtr frame) { + CefRefPtr frame + #ifdef OS_LINUX + ,TransitionType transition_type + #endif + ) { CEF_REQUIRE_UI_THREAD(); if (m_BrowserId == browser->GetIdentifier() && frame->IsMain()) { diff --git a/appshell/client_handler.h b/appshell/client_handler.h index ed6ade301..b9a516c99 100644 --- a/appshell/client_handler.h +++ b/appshell/client_handler.h @@ -126,7 +126,11 @@ virtual bool OnBeforePopup(CefRefPtr browser, // CefLoadHandler methods virtual void OnLoadStart(CefRefPtr browser, - CefRefPtr frame) OVERRIDE; + CefRefPtr frame + #ifdef OS_LINUX + ,TransitionType transition_type + #endif + ) OVERRIDE; virtual void OnLoadEnd(CefRefPtr browser, CefRefPtr frame, int httpStatusCode) OVERRIDE; diff --git a/appshell/mac/Info.plist b/appshell/mac/Info.plist index ed814ba25..88199905f 100644 --- a/appshell/mac/Info.plist +++ b/appshell/mac/Info.plist @@ -19,9 +19,9 @@ CFBundleSignature ???? CFBundleVersion - 1.11.0 + 1.12.0 CFBundleShortVersionString - 1.11.0 + 1.12.0 NSMainNibFile MainMenu NSPrincipalClass diff --git a/appshell/version.rc b/appshell/version.rc index 5fedc3191..a8ae8b0f9 100644 --- a/appshell/version.rc +++ b/appshell/version.rc @@ -31,7 +31,7 @@ LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US // VS_VERSION_INFO VERSIONINFO -FILEVERSION 1,11,0,0 +FILEVERSION 1,12,0,0 /* PRODUCTVERSION 1,0,0,0 */ FILEOS VOS__WINDOWS32 FILETYPE VFT_APP @@ -42,7 +42,7 @@ BEGIN BEGIN VALUE "CompanyName", "brackets.io\0" VALUE "FileDescription", "\0" - VALUE "FileVersion", "Release 1.11.0\0" + VALUE "FileVersion", "Release 1.12.0\0" VALUE "ProductName", APP_NAME "\0" VALUE "ProductVersion", "\0" VALUE "LegalCopyright", "(c) 2012 Adobe Systems, Inc.\0" diff --git a/appshell/version_linux.h b/appshell/version_linux.h index 970a8408a..56d908c87 100644 --- a/appshell/version_linux.h +++ b/appshell/version_linux.h @@ -1 +1 @@ -#define APP_VERSION "1.11.0.0" +#define APP_VERSION "1.12.0.0" diff --git a/installer/mac/buildInstaller.sh b/installer/mac/buildInstaller.sh index 07f1bcefa..e3bc6597d 100755 --- a/installer/mac/buildInstaller.sh +++ b/installer/mac/buildInstaller.sh @@ -2,7 +2,7 @@ # config releaseName="Brackets" -version="1.11" +version="1.12" dmgName="${releaseName} Release ${version}" format="bzip2" encryption="none" diff --git a/installer/win/brackets-win-install-build.xml b/installer/win/brackets-win-install-build.xml index 613b8d381..9216c3267 100644 --- a/installer/win/brackets-win-install-build.xml +++ b/installer/win/brackets-win-install-build.xml @@ -12,7 +12,7 @@ default="build.mul"> - + diff --git a/package.json b/package.json index 7ec5d0e45..671a22d66 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "Brackets-Shell", - "version": "1.11.0-0", + "version": "1.12.0-0", "homepage": "http://brackets.io", "issues": { "url": "http://github.com/adobe/brackets-shell/issues"