diff options
Diffstat (limited to 'gtk/gtk_gui.c')
-rw-r--r-- | gtk/gtk_gui.c | 14 |
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!")); +} + |