Ticket #24622: patch-quartz-WebCore-plugins-gtk-PluginViewGtk.cpp.diff
File patch-quartz-WebCore-plugins-gtk-PluginViewGtk.cpp.diff, 1.3 KB (added by elelay (Eric Le Lay), 15 years ago) |
---|
-
WebCore/plugins/gtk/PluginViewGtk.cpp
old new 59 59 #include "runtime_root.h" 60 60 #include <runtime/JSLock.h> 61 61 #include <runtime/JSValue.h> 62 #include "NotImplemented.h" 62 63 63 64 #include <gdkconfig.h> 64 65 #include <gtk/gtk.h> 65 66 67 #undef XP_UNIX 68 66 69 #if defined(XP_UNIX) 67 70 #include "gtk2xtbin.h" 68 71 #define Bool int // this got undefined somewhere … … 440 443 event->setDefaultHandled(); 441 444 } 442 445 443 #if defined(XP_UNIX)444 446 void PluginView::handleFocusInEvent() 445 447 { 448 #if defined(XP_UNIX) 446 449 XEvent npEvent; 447 450 initXEvent(&npEvent); 448 451 … … 452 455 event.detail = NotifyDetailNone; 453 456 454 457 dispatchNPEvent(npEvent); 458 #endif 455 459 } 456 460 457 461 void PluginView::handleFocusOutEvent() 458 462 { 463 #if defined(XP_UNIX) 459 464 XEvent npEvent; 460 465 initXEvent(&npEvent); 461 466 … … 465 470 event.detail = NotifyDetailNone; 466 471 467 472 dispatchNPEvent(npEvent); 468 }469 473 #endif 474 } 470 475 471 476 void PluginView::setParent(ScrollView* parent) 472 477 { … … 794 799 } 795 800 796 801 if (m_isWindowed) { 797 #if defined(XP_UNIX)798 802 GtkWidget* pageClient = m_parentFrame->view()->hostWindow()->platformPageClient(); 803 #if defined(XP_UNIX) 799 804 800 805 if (m_needsXEmbed) { 801 806 // If our parent is not anchored the startup process will