summaryrefslogtreecommitdiff
path: root/gtk/gtk_gui.c
diff options
context:
space:
mode:
authorRob Kendrick <rjek@netsurf-browser.org>2006-07-19 13:41:57 +0000
committerRob Kendrick <rjek@netsurf-browser.org>2006-07-19 13:41:57 +0000
commitd6a0ad67fe44f493d31008543fee3332282b221d (patch)
treeb78f03cf3ab4608970bfd7d00adba692a889395e /gtk/gtk_gui.c
parent748e38ab87b917e6e86cbdc1471b245ea7d7054a (diff)
downloadnetsurf-d6a0ad67fe44f493d31008543fee3332282b221d.tar.gz
netsurf-d6a0ad67fe44f493d31008543fee3332282b221d.tar.bz2
Add simple (currently non-functional) options window for nsgtk
svn path=/trunk/netsurf/; revision=2779
Diffstat (limited to 'gtk/gtk_gui.c')
-rw-r--r--gtk/gtk_gui.c14
1 files changed, 14 insertions, 0 deletions
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 <curl/curl.h>
#include <gdk/gdkkeysyms.h>
#include <gtk/gtk.h>
+#include <glade/glade.h>
#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!"));
+}
+