gtkieembed r209 - in trunk: . src



Author: hiikezoe
Date: Tue Feb  3 06:22:22 2009
New Revision: 209
URL: http://svn.gnome.org/viewvc/gtkieembed?rev=209&view=rev

Log:
	* src/ie-bridge.[cpp|h]: Added _ie_bridge_ready() and
	_ie_bridge_is_ready().
	* src/ie-browser-event-dispatcher.[cpp|h]: Invoke _ie_bridge_ready()
	in ::DocumentComplete.



Modified:
   trunk/ChangeLog
   trunk/src/ie-bridge.cpp
   trunk/src/ie-bridge.h
   trunk/src/ie-browser-event-dispatcher.cpp
   trunk/src/ie-browser-event-dispatcher.h

Modified: trunk/src/ie-bridge.cpp
==============================================================================
--- trunk/src/ie-bridge.cpp	(original)
+++ trunk/src/ie-bridge.cpp	Tue Feb  3 06:22:22 2009
@@ -51,6 +51,7 @@
     GtkWidget *widget;
     gboolean can_go_forward;
     gboolean can_go_back;
+    gboolean ready;
 
     IWebBrowser2 *web_browser;
     IEBrowserEventDispatcher *browser_event_dispatcher;
@@ -217,6 +218,7 @@
     priv->browser_event_dispatcher = NULL;
     priv->browser_event_cookie = 0;
     priv->document_event_cookie = 0;
+    priv->ready = FALSE;
 
     priv->document_event_dispatcher = new IEDocumentEventDispatcher (ie);
 }
@@ -939,6 +941,18 @@
 
 }
 
+void
+_ie_bridge_ready (IEBridge *ie)
+{
+    IE_BRIDGE_GET_PRIVATE (ie)->ready = TRUE;
+}
+
+gboolean
+_ie_bridge_is_ready (IEBridge *ie)
+{
+    return IE_BRIDGE_GET_PRIVATE (ie)->ready;
+}
+
 gpointer
 _ie_bridge_get_browser_object (IEBridge *ie)
 {

Modified: trunk/src/ie-bridge.h
==============================================================================
--- trunk/src/ie-bridge.h	(original)
+++ trunk/src/ie-bridge.h	Tue Feb  3 06:22:22 2009
@@ -144,6 +144,8 @@
 gboolean    _ie_bridge_mouse_up         (IEBridge *ie);
 gboolean    _ie_bridge_mouse_click      (IEBridge *ie);
 gboolean    _ie_bridge_is_mapped        (IEBridge *ie);
+void        _ie_bridge_ready            (IEBridge *ie);
+gboolean    _ie_bridge_is_ready         (IEBridge *ie);
 gboolean    _ie_bridge_get_use_context_menu
                                         (IEBridge *ie);
 void        _ie_bridge_selection_changed

Modified: trunk/src/ie-browser-event-dispatcher.cpp
==============================================================================
--- trunk/src/ie-browser-event-dispatcher.cpp	(original)
+++ trunk/src/ie-browser-event-dispatcher.cpp	Tue Feb  3 06:22:22 2009
@@ -25,6 +25,7 @@
 {
     mBridge = bridge;
     mRef = 0;
+    mReady = FALSE;
 }
 
 IEBrowserEventDispatcher::~IEBrowserEventDispatcher ()
@@ -286,6 +287,10 @@
         _ie_bridge_connect_document_event_dispatcher (mBridge);
         _ie_bridge_net_stop (mBridge);
     }
+    if (!mReady) {
+        mReady = TRUE;
+        _ie_bridge_ready (mBridge);
+    }
 }
 
 void

Modified: trunk/src/ie-browser-event-dispatcher.h
==============================================================================
--- trunk/src/ie-browser-event-dispatcher.h	(original)
+++ trunk/src/ie-browser-event-dispatcher.h	Tue Feb  3 06:22:22 2009
@@ -58,6 +58,7 @@
  private:
      IEBridge *mBridge;
      ULONG mRef;
+     BOOL mReady;
 };
 
 #endif /* __IE_BROWSER_EVENT_DISPATCHER__ */



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]