aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog6
-rw-r--r--embed/mozilla/mozilla-embed.cpp14
2 files changed, 20 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index edfc8b34f..901975b15 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
2005-01-31 Christian Persch <chpe@cvs.gnome.org>
+ * embed/mozilla/mozilla-embed.cpp:
+
+ Add title signal handler for XUL dialogues.
+
+2005-01-31 Christian Persch <chpe@cvs.gnome.org>
+
* src/Makefile.am:
* src/ephy-window.c: (ephy_window_get_type),
(ephy_window_link_iface_init), (ephy_window_open_link),
diff --git a/embed/mozilla/mozilla-embed.cpp b/embed/mozilla/mozilla-embed.cpp
index fc77d32ae..379e0f90f 100644
--- a/embed/mozilla/mozilla-embed.cpp
+++ b/embed/mozilla/mozilla-embed.cpp
@@ -1104,6 +1104,17 @@ xul_new_window_cb (GtkMozEmbed *embed,
*retval = _mozilla_embed_new_xul_dialog ();
}
+static void
+xul_title_cb (GtkMozEmbed *embed,
+ GtkWindow *window)
+{
+ char *title;
+
+ title = gtk_moz_embed_get_title (embed);
+ gtk_window_set_title (window, title);
+ g_free (title);
+}
+
GtkMozEmbed *
_mozilla_embed_new_xul_dialog (void)
{
@@ -1126,6 +1137,9 @@ _mozilla_embed_new_xul_dialog (void)
g_signal_connect_object (embed, "new_window",
G_CALLBACK (xul_new_window_cb),
NULL, (GConnectFlags) 0);
+ g_signal_connect_object (embed, "title",
+ G_CALLBACK (xul_title_cb),
+ window, (GConnectFlags) 0);
return GTK_MOZ_EMBED (embed);
}