From d6a0ad67fe44f493d31008543fee3332282b221d Mon Sep 17 00:00:00 2001 From: Rob Kendrick Date: Wed, 19 Jul 2006 13:41:57 +0000 Subject: Add simple (currently non-functional) options window for nsgtk svn path=/trunk/netsurf/; revision=2779 --- gtk/gtk_gui.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'gtk/gtk_gui.c') diff --git a/gtk/gtk_gui.c b/gtk/gtk_gui.c index cd78ba49b..6b7408c33 100644 --- a/gtk/gtk_gui.c +++ b/gtk/gtk_gui.c @@ -16,6 +16,7 @@ #include #include #include +#include #include "netsurf/content/content.h" #include "netsurf/content/fetch.h" #include "netsurf/content/urldb.h" @@ -45,6 +46,9 @@ char *adblock_stylesheet_url; struct gui_window *search_current_window = 0; +GladeXML *gladeWindows; +GtkWindow *wndChoices; + /** * Locate a shared resource file by searching known places in order. * @@ -95,6 +99,11 @@ void gui_init(int argc, char** argv) gtk_init(&argc, &argv); + gladeWindows = glade_xml_new("./gtk/netsurf.glade", NULL, NULL); + wndChoices = glade_xml_get_widget(gladeWindows, "wndChoices"); + + glade_xml_signal_autoconnect(gladeWindows); + find_resource(buf, "Choices", "Choices"); LOG(("Using '%s' as Choices file", buf)); options_read(buf); @@ -332,3 +341,8 @@ bool cookies_update(const char *domain, const struct cookie_data *data) { return true; } + +void nsgtk_choices_apply_clicked(GtkWidget *widget) { + LOG(("Apply button clicked!")); +} + -- cgit v1.2.3