GtkHtml won't compile



I can't get my program to compile that is using gtkhtml. I keep on
getting this error.

Compile Error:***************************

interface.o: In function `create_MenuWindow':
/home/sho/Projects/LnxMenu/src/interface.c:38: undefined reference to
`gtk_html_
new'
collect2: ld returned 1 exit status

Code here:*******************************

#include <gtk/gtk.h>
#include <gnome.h>

#include "callbacks.h"
#include "interface.h"
#include "support.h"

GtkWidget*
create_MenuWindow (void)
{
  GtkWidget *MenuWindow;
  GtkWidget *Html;
  GtkWidget *sw;
  MenuWindow = gtk_window_new (GTK_WINDOW_POPUP);
  gtk_widget_set_name (MenuWindow, "MenuWindow");
  gtk_object_set_data (GTK_OBJECT (MenuWindow), "MenuWindow",
MenuWindow);
  gtk_widget_set_usize (MenuWindow, 318, 414);
  gtk_window_set_title (GTK_WINDOW (MenuWindow), _("LnxMenu"));
  gtk_window_set_position (GTK_WINDOW (MenuWindow), GTK_WIN_POS_CENTER);
  gtk_window_set_default_size (GTK_WINDOW (MenuWindow), 318, 414);
  gtk_window_set_policy (GTK_WINDOW (MenuWindow), TRUE, TRUE, TRUE);
	
  Html = gtk_html_new ();
//  gtk_html_set_default_content_type (gtk_html (Html),
//  				   "text/html; charset=utf-8");
  gtk_object_set_data_full (GTK_OBJECT (MenuWindow), "Html", Html,
                            (GtkDestroyNotify) gtk_widget_unref);
  sw = gtk_scrolled_window_new (NULL, NULL);
  gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (sw),
				GTK_POLICY_NEVER,
				GTK_POLICY_NEVER);
  gtk_container_add (GTK_CONTAINER (sw), GTK_WIDGET (Html));
  gtk_widget_set_usize (GTK_WIDGET (Html), 0, 48);
  gtk_box_pack_start (GTK_BOX (MenuWindow), sw, FALSE, FALSE, 0);
/*
  gtk_signal_connect (GTK_OBJECT (Html), "url_requested",
  		    GTK_SIGNAL_FUNC (handle_url_cb), view);

  gtk_signal_connect (GTK_OBJECT (Html), "link_clicked",
		    GTK_SIGNAL_FUNC (handle_link_cb), view);

  gtk_signal_connect (GTK_OBJECT (Html), "size_allocate",
		    GTK_SIGNAL_FUNC (main_allocate_cb), view);*/

  /*gtk_html_allow_selection (Html, FALSE);*/
  gtk_widget_show(Html);

  return MenuWindow;
}

How do I call a html file to use in the program upon load up? example:
url="/home/user/.program/html/index.html"
Could anyone give me a nice template of a gtkhtml program that I could
use? I can't seem to find all the functions to use. I have been scouting
around gnome CVS for days and can only get a little.

Thank you,
Jason Brock






[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]