From b8122d51f8232a43c15a9413abf53046190eb516 Mon Sep 17 00:00:00 2001 From: Liam Girdwood Date: Mon, 7 Jul 2008 21:43:18 +0100 Subject: [PATCH] ui: glade - added initial glade support - needs support files. --- src/main.c | 3 +++ src/ui/glade.c | 4 ++-- src/ui/glade.h | 28 ++++++++++++++++++++++++++++ 3 files changed, 33 insertions(+), 2 deletions(-) create mode 100644 src/ui/glade.h diff --git a/src/main.c b/src/main.c index 8a00550..402384e 100644 --- a/src/main.c +++ b/src/main.c @@ -26,6 +26,7 @@ #include "db/db.h" #include "sky/sky.h" #include "sky/legend.h" +#include "ui/glade.h" static gboolean menu_help_clicked_event(GtkWidget *widget, gpointer user_data) @@ -133,6 +134,8 @@ int main (int argc, char **argv) gtk_legend, FALSE, FALSE, 0); + load_glade(); + gtk_widget_show_all(window); sky_connect_signals(gtk_sky); sky_set_legend(gtk_sky, gtk_legend); diff --git a/src/ui/glade.c b/src/ui/glade.c index b8fc27f..d220015 100644 --- a/src/ui/glade.c +++ b/src/ui/glade.c @@ -55,7 +55,7 @@ static struct nova_ui_glade nova_dialogs[] = { * * Loads/Reloads dialog table with Nova's glade interfaces. */ -static int load_glade(void) +int load_glade(void) { gint i = 0; @@ -92,7 +92,7 @@ static int load_glade(void) return 1; } -static int load_glade_splash(void) +int load_glade_splash(void) { GString* interface = NULL; diff --git a/src/ui/glade.h b/src/ui/glade.h new file mode 100644 index 0000000..50f790b --- /dev/null +++ b/src/ui/glade.h @@ -0,0 +1,28 @@ +/* + * Copyright (C) 2008 Liam Girdwood + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, + * Boston, MA 02111-1307, USA. + */ + +#ifndef GLADE_H_ +#define GLADE_H_ + +#include + +gint load_glade(void); +GtkWidget* nova_get_dialog(gchar* widget); + +#endif /*GCONF_H_*/ -- 2.11.4.GIT