Problems compiling



I am making an app that uses gtkhtml, and can't get it to compile. Where can I go for documentation for gtkhtml. How can I call the path of the html file that is specified in a config file in the program using gtkhtml? The Html file is in the program directory and not compiled in. The config file is also in the programs directory and specifies what the path is to the html file. My program is listed below that won't compile. If you can suggest anything I will be grateful.

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);
 // url = "/alt_dir/index.html" ***this is the problem
  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_widget_show(Html);




return MenuWindow;
}

If anyone knows of a standard layout that shows me all that I could use in gtkhtml I would appreciate it?
Thank you  -Jason Brock -sho ev1 net





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