aboutsummaryrefslogtreecommitdiffstats
path: root/embed
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2005-08-28 03:23:42 +0800
committerChristian Persch <chpe@src.gnome.org>2005-08-28 03:23:42 +0800
commit424a2bd495c0901cb51c61b671b2c966e6f9f67b (patch)
tree013472f5bea6f53f14a32312c3c3037ed07ba5c9 /embed
parentb66885343318c8027175c356dca745c6a1fdd73e (diff)
downloadgsoc2013-epiphany-424a2bd495c0901cb51c61b671b2c966e6f9f67b.tar.gz
gsoc2013-epiphany-424a2bd495c0901cb51c61b671b2c966e6f9f67b.tar.zst
gsoc2013-epiphany-424a2bd495c0901cb51c61b671b2c966e6f9f67b.zip
The focus fix isn't needed anymore for gecko >= 1.8.
2005-08-27 Christian Persch <chpe@cvs.gnome.org> * configure.ac: * embed/mozilla/EphyBrowser.cpp: * embed/mozilla/EphyBrowser.h: * embed/mozilla/mozilla-embed.cpp: The focus fix isn't needed anymore for gecko >= 1.8.
Diffstat (limited to 'embed')
-rw-r--r--embed/mozilla/EphyBrowser.cpp4
-rw-r--r--embed/mozilla/EphyBrowser.h4
-rw-r--r--embed/mozilla/mozilla-embed.cpp20
3 files changed, 14 insertions, 14 deletions
diff --git a/embed/mozilla/EphyBrowser.cpp b/embed/mozilla/EphyBrowser.cpp
index c0087a625..e7e04f2f7 100644
--- a/embed/mozilla/EphyBrowser.cpp
+++ b/embed/mozilla/EphyBrowser.cpp
@@ -1329,7 +1329,7 @@ EphyBrowser::GetDocumentType ()
return type;
}
-#ifdef GTKMOZEMBED_BROKEN_FOCUS
+#ifndef HAVE_GECKO_1_8
nsresult
EphyBrowser::FocusActivate ()
{
@@ -1345,4 +1345,4 @@ EphyBrowser::FocusDeactivate ()
return mWebBrowserFocus->Deactivate();
}
-#endif /* GTKMOZEMBED_BROKEN_FOCUS */
+#endif /* !HAVE_GECKO_1_8 */
diff --git a/embed/mozilla/EphyBrowser.h b/embed/mozilla/EphyBrowser.h
index a4a0de502..3b4fb2284 100644
--- a/embed/mozilla/EphyBrowser.h
+++ b/embed/mozilla/EphyBrowser.h
@@ -179,10 +179,10 @@ public:
EphyEmbedDocumentType GetDocumentType ();
-#ifdef GTKMOZEMBED_BROKEN_FOCUS
+#ifndef HAVE_GECKO_1_8
nsresult FocusActivate ();
nsresult FocusDeactivate ();
-#endif
+#endif /* !HAVE_GECKO_1_8 */
nsCOMPtr<nsIWebBrowser> mWebBrowser;
private:
diff --git a/embed/mozilla/mozilla-embed.cpp b/embed/mozilla/mozilla-embed.cpp
index 461bbf002..e692c590e 100644
--- a/embed/mozilla/mozilla-embed.cpp
+++ b/embed/mozilla/mozilla-embed.cpp
@@ -91,19 +91,19 @@ struct MozillaEmbedPrivate
{
EphyBrowser *browser;
MozillaEmbedLoadState load_state;
-#ifdef GTKMOZEMBED_BROKEN_FOCUS
+#ifndef HAVE_GECKO_1_8
guint focus_connected : 1;
-#endif /* GTKMOZEMBED_BROKEN_FOCUS */
+#endif /* !HAVE_GECKO_1_8 */
};
#define WINDOWWATCHER_CONTRACTID "@mozilla.org/embedcomp/window-watcher;1"
static GObjectClass *parent_class = NULL;
-#ifdef GTKMOZEMBED_BROKEN_FOCUS
+#ifndef HAVE_GECKO_1_8
static guint fiesid = 0;
static guint foesid = 0;
-#endif /* GTKMOZEMBED_BROKEN_FOCUS */
+#endif /* !HAVE_GECKO_1_8 */
static void
impl_manager_do_command (EphyCommandManager *manager,
@@ -200,7 +200,7 @@ mozilla_embed_grab_focus (GtkWidget *widget)
}
}
-#ifdef GTKMOZEMBED_BROKEN_FOCUS
+#ifndef HAVE_GECKO_1_8
static gboolean
child_focus_in_event_cb (GtkWidget *child,
GdkEventFocus *event,
@@ -220,7 +220,7 @@ child_focus_out_event_cb (GtkWidget *child,
return FALSE;
}
-#endif /* GTKMOZEMBED_BROKEN_FOCUS */
+#endif /* !HAVE_GECKO_1_8 */
static void
mozilla_embed_realize (GtkWidget *widget)
@@ -238,7 +238,7 @@ mozilla_embed_realize (GtkWidget *widget)
return;
}
-#ifdef GTKMOZEMBED_BROKEN_FOCUS
+#ifndef HAVE_GECKO_1_8
/* HACK ALERT! This depends highly on undocumented interna of
* GtkMozEmbed!
*
@@ -290,7 +290,7 @@ mozilla_embed_realize (GtkWidget *widget)
G_CONNECT_AFTER);
mpriv->focus_connected = TRUE;
-#endif /* GTKMOZEMBED_BROKEN_FOCUS */
+#endif /* !HAVE_GECKO_1_8 */
}
static GObject *
@@ -323,10 +323,10 @@ mozilla_embed_class_init (MozillaEmbedClass *klass)
widget_class->grab_focus = mozilla_embed_grab_focus;
widget_class->realize = mozilla_embed_realize;
-#ifdef GTKMOZEMBED_BROKEN_FOCUS
+#ifndef HAVE_GECKO_1_8
fiesid = g_signal_lookup ("focus-in-event", GTK_TYPE_WIDGET);
foesid = g_signal_lookup ("focus-out-event", GTK_TYPE_WIDGET);
-#endif /* GTKMOZEMBED_BROKEN_FOCUS */
+#endif /* !HAVE_GECKO_1_8 */
g_type_class_add_private (object_class, sizeof(MozillaEmbedPrivate));
}