bygfoot/src/league_table_interface.c

88 lines
2.9 KiB
C
Raw Normal View History

2007-09-24 20:42:52 +02:00
/*
* DO NOT EDIT THIS FILE - it is generated by Glade.
*/
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include <string.h>
#include <stdio.h>
#include <gdk/gdkkeysyms.h>
#include <gtk/gtk.h>
#include "league_table_callbacks.h"
#include "league_table_interface.h"
#include "support.h"
#define GLADE_HOOKUP_OBJECT(component,widget,name) \
g_object_set_data_full (G_OBJECT (component), name, \
gtk_widget_ref (widget), (GDestroyNotify) gtk_widget_unref)
#define GLADE_HOOKUP_OBJECT_NO_REF(component,widget,name) \
g_object_set_data (G_OBJECT (component), name, widget)
GtkWidget*
create_window_league_table (void)
{
GtkWidget *window_league_table;
GtkWidget *panel_table;
2008-01-29 14:29:38 +01:00
GtkWidget *l_headline;
2007-09-24 20:42:52 +02:00
GtkWidget *hs_table2;
2008-01-29 14:29:38 +01:00
GtkWidget *hs_table1;
GtkWidget *b_ok;
2007-09-24 20:42:52 +02:00
window_league_table = gtk_window_new (GTK_WINDOW_TOPLEVEL);
gtk_window_set_title (GTK_WINDOW (window_league_table), _("League table"));
gtk_window_set_position (GTK_WINDOW (window_league_table), GTK_WIN_POS_CENTER);
gtk_window_set_modal (GTK_WINDOW (window_league_table), TRUE);
gtk_window_set_resizable (GTK_WINDOW (window_league_table), FALSE);
panel_table = gtk_fixed_new ();
gtk_widget_show (panel_table);
gtk_container_add (GTK_CONTAINER (window_league_table), panel_table);
gtk_widget_set_size_request (panel_table, 500, 290);
2008-01-29 14:29:38 +01:00
l_headline = gtk_label_new (_("Headline"));
gtk_widget_show (l_headline);
gtk_fixed_put (GTK_FIXED (panel_table), l_headline, 208, 32);
gtk_widget_set_size_request (l_headline, 90, 20);
2007-09-24 20:42:52 +02:00
2008-01-29 14:29:38 +01:00
hs_table2 = gtk_hseparator_new ();
gtk_widget_show (hs_table2);
gtk_fixed_put (GTK_FIXED (panel_table), hs_table2, 25, 88);
gtk_widget_set_size_request (hs_table2, 450, 16);
2007-09-24 20:42:52 +02:00
hs_table1 = gtk_hseparator_new ();
gtk_widget_show (hs_table1);
gtk_fixed_put (GTK_FIXED (panel_table), hs_table1, 25, 235);
gtk_widget_set_size_request (hs_table1, 450, 16);
2008-01-29 14:29:38 +01:00
b_ok = gtk_button_new_from_stock ("gtk-ok");
gtk_widget_show (b_ok);
gtk_fixed_put (GTK_FIXED (panel_table), b_ok, 376, 254);
gtk_widget_set_size_request (b_ok, 110, 25);
2007-09-24 20:42:52 +02:00
g_signal_connect ((gpointer) window_league_table, "delete_event",
2008-01-29 14:29:38 +01:00
G_CALLBACK (on_window_league_table_delete_event),
2007-09-24 20:42:52 +02:00
NULL);
g_signal_connect ((gpointer) b_ok, "clicked",
2008-01-29 14:29:38 +01:00
G_CALLBACK (on_lt_b_ok_clicked),
2007-09-24 20:42:52 +02:00
NULL);
/* Store pointers to all widgets, for use by lookup_widget(). */
GLADE_HOOKUP_OBJECT_NO_REF (window_league_table, window_league_table, "window_league_table");
GLADE_HOOKUP_OBJECT (window_league_table, panel_table, "panel_table");
2008-01-29 14:29:38 +01:00
GLADE_HOOKUP_OBJECT (window_league_table, l_headline, "l_headline");
2007-09-24 20:42:52 +02:00
GLADE_HOOKUP_OBJECT (window_league_table, hs_table2, "hs_table2");
2008-01-29 14:29:38 +01:00
GLADE_HOOKUP_OBJECT (window_league_table, hs_table1, "hs_table1");
GLADE_HOOKUP_OBJECT (window_league_table, b_ok, "b_ok");
2007-09-24 20:42:52 +02:00
return window_league_table;
}