Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 402332 Details for
Bug 481836
app-editors/brackets-29 - an open source code editor for the web
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
bracketsshell_appshell_extensions_gtk.cpp.patch
bracketsshell_appshell_extensions_gtk.cpp.patch (text/plain), 2.25 KB, created by
Nicolas Pöhlmann
on 2015-04-30 23:32:42 UTC
(
hide
)
Description:
bracketsshell_appshell_extensions_gtk.cpp.patch
Filename:
MIME Type:
Creator:
Nicolas Pöhlmann
Created:
2015-04-30 23:32:42 UTC
Size:
2.25 KB
patch
obsolete
>--- brackets-shell/appshell/appshell_extensions_gtk.cpp >+++ brackets-shell/appshell/appshell_extensions_gtk.cpp >@@ -39,6 +39,9 @@ > #include <X11/Xlib.h> > > GtkWidget* _menuWidget; >+ >+// The global ClientHandler reference. >+extern CefRefPtr<ClientHandler> g_handler; > > // Supported browsers (order matters): > // - google-chorme >@@ -532,21 +535,32 @@ > > void CloseWindow(CefRefPtr<CefBrowser> browser) > { >+ if (browser.get()) { >+ isReallyClosing = true; >+ browser->GetHost()->CloseBrowser(true); >+ >+ // //# Hack because CEF's CloseBrowser() is bad. Should emit delete_event instead of directly destroying widget >+ //GtkWidget* hwnd = gtk_widget_get_toplevel (browser->GetHost()->GetWindowHandle() ); >+ //GtkWindow* hwnd = GTK_WINDOW(gtk_widget_get_toplevel(GTK_WIDGET(g_handler->GetMainHwnd()))); >+// if(gtk_widget_is_toplevel (hwnd)) >+ //g_message("Called destroy"); >+ //gtk_widget_destroy(gtk_widget_get_toplevel(GTK_WIDGET(g_handler->GetMainHwnd()))); >+ //gtk_signal_emit_by_name(GTK_OBJECT(hwnd), "delete_event"); >+ // else >+ >+ // pass this message onto the window >+ if (g_handler && g_handler->GetMainHwnd()) { >+ GtkWidget* hwnd = gtk_widget_get_toplevel(GTK_WIDGET(g_handler->GetMainHwnd())); >+ if(gtk_widget_is_toplevel (hwnd)) >+ gtk_signal_emit_by_name(GTK_OBJECT(hwnd), "delete_event"); >+ } >+ } >+} >+ >+void BringBrowserWindowToFront(CefRefPtr<CefBrowser> browser) >+{ > if (browser.get()) { >- isReallyClosing = true; >- // //# Hack because CEF's CloseBrowser() is bad. Should emit delete_event instead of directly destroying widget >- // GtkWidget* hwnd = gtk_widget_get_toplevel (browser->GetHost()->GetWindowHandle() ); >- // if(gtk_widget_is_toplevel (hwnd)) >- // gtk_signal_emit_by_name(GTK_OBJECT(hwnd), "delete_event"); >- // else >- browser->GetHost()->CloseBrowser(true); >- } >-} >- >-void BringBrowserWindowToFront(CefRefPtr<CefBrowser> browser) >-{ >- if (browser.get()) { >- GtkWindow* hwnd = GTK_WINDOW(browser->GetHost()->GetWindowHandle()); >+ GtkWindow* hwnd = GTK_WINDOW(gtk_widget_get_toplevel(GTK_WIDGET(g_handler->GetMainHwnd()))); > if (hwnd) > gtk_window_present(hwnd); > } >@@ -833,3 +847,4 @@ > // TODO > } > >+ >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 481836
:
386324
|
388826
|
395230
|
400750
|
402328
|
402330
| 402332 |
402334
|
402336
|
402338
|
402340
|
402342
|
402344
|
402346
|
402348
|
402350
|
402352
|
402354
|
402356
|
402358
|
436222
|
442870
|
445636
|
445638
|
518886