static void title_changed_cb (GtkMozEmbed *embed, WebBrowserObject *browser) { char *title = gtk_moz_embed_get_title(embed); if (title) { gtk_window_set_title(GTK_WINDOW(browser->toplevel), title); g_free(title); } }
void title_changed_cb(GtkMozEmbed *embed, MinimoBrowser *browser) { char *newTitle; newTitle = gtk_moz_embed_get_title(embed); if(newTitle) { gtk_window_set_title(GTK_WINDOW(browser->topLevelWindow), newTitle); g_free(newTitle); } }
/// Returns the currently displayed document's title. string MozillaRenderer::getTitle(void) { if ((m_htmlWidget == NULL) || (m_rendering == false)) { return ""; } char *title = gtk_moz_embed_get_title(GTK_MOZ_EMBED(m_htmlWidget)); if (title == NULL) { return ""; } string titleStr = title; free(title); return titleStr; }
static char * impl_get_title (GaleonEmbed *embed) { return gtk_moz_embed_get_title (GTK_MOZ_EMBED(embed)); }