Ejemplo n.º 1
0
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);
    }
}
Ejemplo n.º 2
0
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);
  }
}
Ejemplo n.º 3
0
/// 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;
}
Ejemplo n.º 4
0
static char *
impl_get_title (GaleonEmbed *embed)
{
	return gtk_moz_embed_get_title (GTK_MOZ_EMBED(embed));
}