Exemple #1
0
static	void
SetPandaHTML(
	GtkWidget		*widget,
	WidgetData	*wdata,
	_HTML			*data)
{
ENTER_FUNC;
	SetCommon(widget,wdata);
	if (data->uri != NULL) {
		gtk_panda_html_set_uri (GTK_PANDA_HTML(widget), data->uri);
	}
LEAVE_FUNC;
}
Exemple #2
0
static GtkWidget *
panda_html_new(GladeXML *xml, GladeWidgetInfo *info)
{
	GtkWidget *widget;
	GList *tmp;
	char *uri = NULL;

	for (tmp = info->attributes; tmp; tmp = tmp->next) {
		GladeAttribute *attr = tmp->data;
		if (strcmp (attr->name, "uri") == 0) {
			uri = attr->value;
		}
	}

	widget = gtk_panda_html_new();
	gtk_panda_html_set_uri (GTK_PANDA_HTML (widget), uri);
	return widget;
}