mirror of
https://github.com/tstellar/bygfoot.git
synced 2024-12-16 02:11:23 +01:00
Converted the last part of bygfoot_misc2.glade and bygfoot_options.glade to GtkBuilder format
This commit is contained in:
parent
6cb084290c
commit
f0dee1dc84
@ -36,7 +36,9 @@ src/user.c
|
||||
src/window.c
|
||||
src/xml.c
|
||||
src/youth_academy.c
|
||||
support_files/bygfoot.glade
|
||||
support_files/bygfoot_misc.glade
|
||||
support_files/bygfoot_misc2.glade
|
||||
support_files/bygfoot_options.glade
|
||||
support_files/bygfoot_misc3.glade
|
||||
support_files/bygfoot_training.glade
|
||||
support_files/bygfoot_misc.glade
|
||||
support_files/bygfoot.glade
|
||||
|
1864
po/bygfoot.pot
1864
po/bygfoot.pot
File diff suppressed because it is too large
Load Diff
2074
po/pt_BR.po
2074
po/pt_BR.po
File diff suppressed because it is too large
Load Diff
2050
po/pt_PT.po
2050
po/pt_PT.po
File diff suppressed because it is too large
Load Diff
@ -222,217 +222,16 @@ GtkWidget*
|
||||
create_window_mmatches (void)
|
||||
{
|
||||
GtkWidget *window_mmatches;
|
||||
GtkWidget *vbox27;
|
||||
GtkWidget *hbox27;
|
||||
GtkWidget *label54;
|
||||
GtkWidget *entry_mm_file;
|
||||
GtkWidget *button_mm_file;
|
||||
GtkWidget *button_mm_reload;
|
||||
GtkWidget *alignment11;
|
||||
GtkWidget *hbox31;
|
||||
GtkWidget *image18;
|
||||
GtkWidget *label58;
|
||||
GtkWidget *button_mm_import;
|
||||
GtkWidget *alignment15;
|
||||
GtkWidget *hbox37;
|
||||
GtkWidget *image22;
|
||||
GtkWidget *label62;
|
||||
GtkWidget *scrolledwindow5;
|
||||
GtkWidget *treeview_mmatches;
|
||||
GtkWidget *hbox34;
|
||||
GtkWidget *button_mm_save_close;
|
||||
GtkWidget *alignment13;
|
||||
GtkWidget *hbox33;
|
||||
GtkWidget *image20;
|
||||
GtkWidget *label60;
|
||||
GtkWidget *button_mm_reload_close;
|
||||
GtkWidget *alignment14;
|
||||
GtkWidget *hbox35;
|
||||
GtkWidget *image21;
|
||||
GtkWidget *label61;
|
||||
GtkTooltips *tooltips;
|
||||
|
||||
tooltips = gtk_tooltips_new ();
|
||||
|
||||
window_mmatches = gtk_window_new (GTK_WINDOW_TOPLEVEL);
|
||||
gtk_container_set_border_width (GTK_CONTAINER (window_mmatches), 5);
|
||||
gtk_window_set_position (GTK_WINDOW (window_mmatches), GTK_WIN_POS_CENTER);
|
||||
gtk_window_set_modal (GTK_WINDOW (window_mmatches), TRUE);
|
||||
gtk_window_set_default_size (GTK_WINDOW (window_mmatches), 600, 500);
|
||||
|
||||
vbox27 = gtk_vbox_new (FALSE, 3);
|
||||
gtk_widget_show (vbox27);
|
||||
gtk_container_add (GTK_CONTAINER (window_mmatches), vbox27);
|
||||
|
||||
hbox27 = gtk_hbox_new (FALSE, 3);
|
||||
gtk_widget_show (hbox27);
|
||||
gtk_box_pack_start (GTK_BOX (vbox27), hbox27, FALSE, TRUE, 0);
|
||||
|
||||
label54 = gtk_label_new (_("Current file"));
|
||||
gtk_widget_show (label54);
|
||||
gtk_box_pack_start (GTK_BOX (hbox27), label54, FALSE, FALSE, 0);
|
||||
|
||||
entry_mm_file = gtk_entry_new ();
|
||||
gtk_widget_show (entry_mm_file);
|
||||
gtk_box_pack_start (GTK_BOX (hbox27), entry_mm_file, TRUE, TRUE, 0);
|
||||
|
||||
button_mm_file = gtk_button_new_from_stock ("gtk-open");
|
||||
gtk_widget_show (button_mm_file);
|
||||
gtk_box_pack_start (GTK_BOX (hbox27), button_mm_file, FALSE, FALSE, 0);
|
||||
gtk_tooltips_set_tip (tooltips, button_mm_file, _("Open a memorable matches file"), NULL);
|
||||
|
||||
button_mm_reload = gtk_button_new ();
|
||||
gtk_widget_show (button_mm_reload);
|
||||
gtk_box_pack_start (GTK_BOX (hbox27), button_mm_reload, FALSE, FALSE, 0);
|
||||
gtk_tooltips_set_tip (tooltips, button_mm_reload, _("Reload matches from file"), NULL);
|
||||
|
||||
alignment11 = gtk_alignment_new (0.5, 0.5, 0, 0);
|
||||
gtk_widget_show (alignment11);
|
||||
gtk_container_add (GTK_CONTAINER (button_mm_reload), alignment11);
|
||||
|
||||
hbox31 = gtk_hbox_new (FALSE, 2);
|
||||
gtk_widget_show (hbox31);
|
||||
gtk_container_add (GTK_CONTAINER (alignment11), hbox31);
|
||||
|
||||
image18 = gtk_image_new_from_stock ("gtk-refresh", GTK_ICON_SIZE_BUTTON);
|
||||
gtk_widget_show (image18);
|
||||
gtk_box_pack_start (GTK_BOX (hbox31), image18, FALSE, FALSE, 0);
|
||||
|
||||
label58 = gtk_label_new_with_mnemonic (_("Reload"));
|
||||
gtk_widget_show (label58);
|
||||
gtk_box_pack_start (GTK_BOX (hbox31), label58, FALSE, FALSE, 0);
|
||||
|
||||
button_mm_import = gtk_button_new ();
|
||||
gtk_widget_show (button_mm_import);
|
||||
gtk_box_pack_start (GTK_BOX (hbox27), button_mm_import, FALSE, FALSE, 0);
|
||||
gtk_tooltips_set_tip (tooltips, button_mm_import, _("Import the matches from a memorable matches file"), NULL);
|
||||
|
||||
alignment15 = gtk_alignment_new (0.5, 0.5, 0, 0);
|
||||
gtk_widget_show (alignment15);
|
||||
gtk_container_add (GTK_CONTAINER (button_mm_import), alignment15);
|
||||
|
||||
hbox37 = gtk_hbox_new (FALSE, 2);
|
||||
gtk_widget_show (hbox37);
|
||||
gtk_container_add (GTK_CONTAINER (alignment15), hbox37);
|
||||
|
||||
image22 = gtk_image_new_from_stock ("gtk-paste", GTK_ICON_SIZE_BUTTON);
|
||||
gtk_widget_show (image22);
|
||||
gtk_box_pack_start (GTK_BOX (hbox37), image22, FALSE, FALSE, 0);
|
||||
|
||||
label62 = gtk_label_new_with_mnemonic (_("Import file"));
|
||||
gtk_widget_show (label62);
|
||||
gtk_box_pack_start (GTK_BOX (hbox37), label62, FALSE, FALSE, 0);
|
||||
|
||||
scrolledwindow5 = gtk_scrolled_window_new (NULL, NULL);
|
||||
gtk_widget_show (scrolledwindow5);
|
||||
gtk_box_pack_start (GTK_BOX (vbox27), scrolledwindow5, TRUE, TRUE, 0);
|
||||
gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolledwindow5), GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC);
|
||||
gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (scrolledwindow5), GTK_SHADOW_IN);
|
||||
|
||||
treeview_mmatches = gtk_tree_view_new ();
|
||||
gtk_widget_show (treeview_mmatches);
|
||||
gtk_container_add (GTK_CONTAINER (scrolledwindow5), treeview_mmatches);
|
||||
gtk_tree_view_set_enable_search (GTK_TREE_VIEW (treeview_mmatches), FALSE);
|
||||
|
||||
hbox34 = gtk_hbox_new (FALSE, 3);
|
||||
gtk_widget_show (hbox34);
|
||||
gtk_box_pack_start (GTK_BOX (vbox27), hbox34, FALSE, FALSE, 0);
|
||||
|
||||
button_mm_save_close = gtk_button_new ();
|
||||
gtk_widget_show (button_mm_save_close);
|
||||
gtk_box_pack_start (GTK_BOX (hbox34), button_mm_save_close, TRUE, TRUE, 0);
|
||||
gtk_tooltips_set_tip (tooltips, button_mm_save_close, _("Save changes to file and close"), NULL);
|
||||
|
||||
alignment13 = gtk_alignment_new (0.5, 0.5, 0, 0);
|
||||
gtk_widget_show (alignment13);
|
||||
gtk_container_add (GTK_CONTAINER (button_mm_save_close), alignment13);
|
||||
|
||||
hbox33 = gtk_hbox_new (FALSE, 2);
|
||||
gtk_widget_show (hbox33);
|
||||
gtk_container_add (GTK_CONTAINER (alignment13), hbox33);
|
||||
|
||||
image20 = gtk_image_new_from_stock ("gtk-close", GTK_ICON_SIZE_BUTTON);
|
||||
gtk_widget_show (image20);
|
||||
gtk_box_pack_start (GTK_BOX (hbox33), image20, FALSE, FALSE, 0);
|
||||
|
||||
label60 = gtk_label_new_with_mnemonic (_("Save and close"));
|
||||
gtk_widget_show (label60);
|
||||
gtk_box_pack_start (GTK_BOX (hbox33), label60, FALSE, FALSE, 0);
|
||||
|
||||
button_mm_reload_close = gtk_button_new ();
|
||||
gtk_widget_show (button_mm_reload_close);
|
||||
gtk_box_pack_start (GTK_BOX (hbox34), button_mm_reload_close, TRUE, TRUE, 0);
|
||||
gtk_tooltips_set_tip (tooltips, button_mm_reload_close, _("Reload matches from file and close"), NULL);
|
||||
|
||||
alignment14 = gtk_alignment_new (0.5, 0.5, 0, 0);
|
||||
gtk_widget_show (alignment14);
|
||||
gtk_container_add (GTK_CONTAINER (button_mm_reload_close), alignment14);
|
||||
|
||||
hbox35 = gtk_hbox_new (FALSE, 2);
|
||||
gtk_widget_show (hbox35);
|
||||
gtk_container_add (GTK_CONTAINER (alignment14), hbox35);
|
||||
|
||||
image21 = gtk_image_new_from_stock ("gtk-refresh", GTK_ICON_SIZE_BUTTON);
|
||||
gtk_widget_show (image21);
|
||||
gtk_box_pack_start (GTK_BOX (hbox35), image21, FALSE, FALSE, 0);
|
||||
|
||||
label61 = gtk_label_new_with_mnemonic (_("Reload and close"));
|
||||
gtk_widget_show (label61);
|
||||
gtk_box_pack_start (GTK_BOX (hbox35), label61, FALSE, FALSE, 0);
|
||||
|
||||
g_signal_connect ((gpointer) window_mmatches, "delete_event",
|
||||
G_CALLBACK (on_window_mmatches_delete_event),
|
||||
NULL);
|
||||
g_signal_connect ((gpointer) button_mm_file, "clicked",
|
||||
G_CALLBACK (on_button_mm_file_clicked),
|
||||
NULL);
|
||||
g_signal_connect ((gpointer) button_mm_reload, "clicked",
|
||||
G_CALLBACK (on_button_mm_reload_clicked),
|
||||
NULL);
|
||||
g_signal_connect ((gpointer) button_mm_import, "clicked",
|
||||
G_CALLBACK (on_button_mm_import_clicked),
|
||||
NULL);
|
||||
g_signal_connect ((gpointer) treeview_mmatches, "button_press_event",
|
||||
G_CALLBACK (on_treeview_mmatches_button_press_event),
|
||||
NULL);
|
||||
g_signal_connect ((gpointer) button_mm_save_close, "clicked",
|
||||
G_CALLBACK (on_button_mm_save_close_clicked),
|
||||
NULL);
|
||||
g_signal_connect ((gpointer) button_mm_reload_close, "clicked",
|
||||
G_CALLBACK (on_button_mm_reload_close_clicked),
|
||||
NULL);
|
||||
GtkBuilder *builder;
|
||||
builder = load_ui(file_find_support_file("bygfoot_misc2.glade", TRUE));
|
||||
window_mmatches = GTK_WIDGET (gtk_builder_get_object (builder, "window_mmatches"));
|
||||
|
||||
/* Store pointers to all widgets, for use by lookup_widget(). */
|
||||
GLADE_HOOKUP_OBJECT_NO_REF (window_mmatches, window_mmatches, "window_mmatches");
|
||||
GLADE_HOOKUP_OBJECT (window_mmatches, vbox27, "vbox27");
|
||||
GLADE_HOOKUP_OBJECT (window_mmatches, hbox27, "hbox27");
|
||||
GLADE_HOOKUP_OBJECT (window_mmatches, label54, "label54");
|
||||
GLADE_HOOKUP_OBJECT (window_mmatches, entry_mm_file, "entry_mm_file");
|
||||
GLADE_HOOKUP_OBJECT (window_mmatches, button_mm_file, "button_mm_file");
|
||||
GLADE_HOOKUP_OBJECT (window_mmatches, button_mm_reload, "button_mm_reload");
|
||||
GLADE_HOOKUP_OBJECT (window_mmatches, alignment11, "alignment11");
|
||||
GLADE_HOOKUP_OBJECT (window_mmatches, hbox31, "hbox31");
|
||||
GLADE_HOOKUP_OBJECT (window_mmatches, image18, "image18");
|
||||
GLADE_HOOKUP_OBJECT (window_mmatches, label58, "label58");
|
||||
GLADE_HOOKUP_OBJECT (window_mmatches, button_mm_import, "button_mm_import");
|
||||
GLADE_HOOKUP_OBJECT (window_mmatches, alignment15, "alignment15");
|
||||
GLADE_HOOKUP_OBJECT (window_mmatches, hbox37, "hbox37");
|
||||
GLADE_HOOKUP_OBJECT (window_mmatches, image22, "image22");
|
||||
GLADE_HOOKUP_OBJECT (window_mmatches, label62, "label62");
|
||||
GLADE_HOOKUP_OBJECT (window_mmatches, scrolledwindow5, "scrolledwindow5");
|
||||
GLADE_HOOKUP_OBJECT (window_mmatches, treeview_mmatches, "treeview_mmatches");
|
||||
GLADE_HOOKUP_OBJECT (window_mmatches, hbox34, "hbox34");
|
||||
GLADE_HOOKUP_OBJECT (window_mmatches, button_mm_save_close, "button_mm_save_close");
|
||||
GLADE_HOOKUP_OBJECT (window_mmatches, alignment13, "alignment13");
|
||||
GLADE_HOOKUP_OBJECT (window_mmatches, hbox33, "hbox33");
|
||||
GLADE_HOOKUP_OBJECT (window_mmatches, image20, "image20");
|
||||
GLADE_HOOKUP_OBJECT (window_mmatches, label60, "label60");
|
||||
GLADE_HOOKUP_OBJECT (window_mmatches, button_mm_reload_close, "button_mm_reload_close");
|
||||
GLADE_HOOKUP_OBJECT (window_mmatches, alignment14, "alignment14");
|
||||
GLADE_HOOKUP_OBJECT (window_mmatches, hbox35, "hbox35");
|
||||
GLADE_HOOKUP_OBJECT (window_mmatches, image21, "image21");
|
||||
GLADE_HOOKUP_OBJECT (window_mmatches, label61, "label61");
|
||||
GLADE_HOOKUP_OBJECT_NO_REF (window_mmatches, tooltips, "tooltips");
|
||||
GTK_HOOKUP_OBJECT (window_mmatches, builder, "treeview_mmatches");
|
||||
GTK_HOOKUP_OBJECT (window_mmatches, builder, "entry_mm_file");
|
||||
|
||||
/* free memory used by GtkBuilder object */
|
||||
g_object_unref (G_OBJECT (builder));
|
||||
|
||||
return window_mmatches;
|
||||
}
|
||||
|
@ -1,3 +1,28 @@
|
||||
/*
|
||||
misc_interface.c
|
||||
|
||||
Bygfoot Football Manager -- a small and simple GTK2-based
|
||||
football management game.
|
||||
|
||||
http://bygfoot.sourceforge.net
|
||||
|
||||
Copyright (C) 2005 Gyözö Both (gyboth@bygfoot.com)
|
||||
|
||||
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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
*/
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
# include <config.h>
|
||||
#endif
|
||||
@ -16,13 +41,6 @@
|
||||
#include "support.h"
|
||||
#include "file.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_startup (void)
|
||||
{
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -497,6 +497,7 @@
|
||||
<object class="GtkSpinButton" id="spinbutton1">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">True</property>
|
||||
<property name="adjustment">adjustment1</property>
|
||||
<property name="climb_rate">1</property>
|
||||
<property name="numeric">True</property>
|
||||
<signal name="activate" handler="on_spinbutton1_activate"/>
|
||||
@ -529,6 +530,7 @@
|
||||
<object class="GtkSpinButton" id="spinbutton2">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">True</property>
|
||||
<property name="adjustment">adjustment2</property>
|
||||
<property name="climb_rate">1</property>
|
||||
<property name="numeric">True</property>
|
||||
<signal name="activate" handler="on_spinbutton2_activate"/>
|
||||
@ -1841,4 +1843,14 @@
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
<object class="GtkAdjustment" id="adjustment1">
|
||||
<property name="upper">100000000</property>
|
||||
<property name="step_increment">1</property>
|
||||
<property name="page_increment">10</property>
|
||||
</object>
|
||||
<object class="GtkAdjustment" id="adjustment2">
|
||||
<property name="upper">100000000</property>
|
||||
<property name="step_increment">1</property>
|
||||
<property name="page_increment">10</property>
|
||||
</object>
|
||||
</interface>
|
||||
|
@ -3,7 +3,6 @@
|
||||
<requires lib="gtk+" version="2.16"/>
|
||||
<!-- interface-naming-policy toplevel-contextual -->
|
||||
<object class="GtkWindow" id="window_options">
|
||||
<property name="visible">True</property>
|
||||
<property name="border_width">5</property>
|
||||
<property name="window_position">center</property>
|
||||
<signal name="delete_event" handler="on_window_options_delete_event"/>
|
||||
@ -2433,7 +2432,6 @@
|
||||
</child>
|
||||
</object>
|
||||
<object class="GtkWindow" id="window_constants">
|
||||
<property name="visible">True</property>
|
||||
<property name="border_width">5</property>
|
||||
<property name="window_position">center</property>
|
||||
<property name="default_width">650</property>
|
Loading…
Reference in New Issue
Block a user