diff options
author | Christian Persch <chpe@cvs.gnome.org> | 2005-01-31 21:53:05 +0800 |
---|---|---|
committer | Christian Persch <chpe@src.gnome.org> | 2005-01-31 21:53:05 +0800 |
commit | 70e3f1ac4b6cba0af0bb3bf3c4cb2dadacbe1da6 (patch) | |
tree | 94dd07598766b64fa293d544234f8f809a938fa7 /embed | |
parent | f840d514640c5790e76cb7572513204be1bb375f (diff) | |
download | gsoc2013-epiphany-70e3f1ac4b6cba0af0bb3bf3c4cb2dadacbe1da6.tar.gz gsoc2013-epiphany-70e3f1ac4b6cba0af0bb3bf3c4cb2dadacbe1da6.tar.zst gsoc2013-epiphany-70e3f1ac4b6cba0af0bb3bf3c4cb2dadacbe1da6.zip |
Add title signal handler for XUL dialogues.
2005-01-31 Christian Persch <chpe@cvs.gnome.org>
* embed/mozilla/mozilla-embed.cpp:
Add title signal handler for XUL dialogues.
Diffstat (limited to 'embed')
-rw-r--r-- | embed/mozilla/mozilla-embed.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
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); } |