1
1
mirror of https://github.com/tstellar/bygfoot.git synced 2024-12-16 10:21:15 +01:00

Solved gtk warnings for spin buttons. GTK complained about a deprecated method

This commit is contained in:
gunnar_g 2008-10-31 15:27:43 +00:00
parent 37a12baf55
commit e03374deaa
6 changed files with 40 additions and 40 deletions

View File

@ -1507,7 +1507,7 @@
<property name="update_policy">GTK_UPDATE_ALWAYS</property>
<property name="snap_to_ticks">False</property>
<property name="wrap">False</property>
<property name="adjustment">0 0 30 1 10 10</property>
<property name="adjustment">0 0 30 1 10 0</property>
<signal name="value_changed" handler="on_spinbutton_speed_value_changed" last_modification_time="Mon, 10 Jan 2005 15:04:50 GMT"/>
<signal name="button_press_event" handler="on_spinbutton_speed_button_press_event" last_modification_time="Thu, 19 May 2005 18:01:49 GMT"/>
</widget>
@ -1587,7 +1587,7 @@
<property name="update_policy">GTK_UPDATE_ALWAYS</property>
<property name="snap_to_ticks">False</property>
<property name="wrap">False</property>
<property name="adjustment">1 1 7 1 10 10</property>
<property name="adjustment">1 1 7 1 10 0</property>
<signal name="value_changed" handler="on_spinbutton_verbosity_value_changed" last_modification_time="Thu, 19 May 2005 08:16:48 GMT"/>
</widget>
<packing>
@ -2071,7 +2071,7 @@
<property name="update_policy">GTK_UPDATE_ALWAYS</property>
<property name="snap_to_ticks">False</property>
<property name="wrap">False</property>
<property name="adjustment">1 0 100 0.10000000149 10 10</property>
<property name="adjustment">1 0 100 0.10000000149 10 0</property>
</widget>
<packing>
<property name="left_attach">1</property>
@ -2236,7 +2236,7 @@
<property name="update_policy">GTK_UPDATE_ALWAYS</property>
<property name="snap_to_ticks">False</property>
<property name="wrap">False</property>
<property name="adjustment">0 0 10000 1 100 10</property>
<property name="adjustment">0 0 10000 1 100 0</property>
<signal name="value_changed" handler="on_spinbutton_capacity_value_changed" last_modification_time="Thu, 17 Mar 2005 13:40:45 GMT"/>
<signal name="button_press_event" handler="on_spinbutton_capacity_button_press_event" last_modification_time="Thu, 17 Mar 2005 20:19:07 GMT"/>
</widget>
@ -2409,7 +2409,7 @@
<property name="update_policy">GTK_UPDATE_ALWAYS</property>
<property name="snap_to_ticks">False</property>
<property name="wrap">False</property>
<property name="adjustment">0 0 100 1 5 10</property>
<property name="adjustment">0 0 100 1 5 0</property>
<signal name="value_changed" handler="on_spinbutton_safety_value_changed" last_modification_time="Thu, 17 Mar 2005 13:40:49 GMT"/>
<signal name="button_press_event" handler="on_spinbutton_capacity_button_press_event" last_modification_time="Thu, 17 Mar 2005 20:21:27 GMT"/>
</widget>

View File

@ -944,7 +944,7 @@
<property name="update_policy">GTK_UPDATE_ALWAYS</property>
<property name="snap_to_ticks">False</property>
<property name="wrap">False</property>
<property name="adjustment">1 0 100000000 10 1000 10</property>
<property name="adjustment">1 0 100000000 10 1000 0</property>
<signal name="activate" handler="on_spinbutton1_activate" last_modification_time="Sat, 28 May 2005 07:51:46 GMT"/>
</widget>
<packing>
@ -1002,7 +1002,7 @@
<property name="update_policy">GTK_UPDATE_ALWAYS</property>
<property name="snap_to_ticks">False</property>
<property name="wrap">False</property>
<property name="adjustment">1 0 100000000 1 100 10</property>
<property name="adjustment">1 0 100000000 1 100 0</property>
<signal name="activate" handler="on_spinbutton2_activate" last_modification_time="Sat, 28 May 2005 07:51:56 GMT"/>
</widget>
<packing>
@ -1372,7 +1372,7 @@
<property name="update_policy">GTK_UPDATE_ALWAYS</property>
<property name="snap_to_ticks">False</property>
<property name="wrap">False</property>
<property name="adjustment">1 1 1000000 1 100 10</property>
<property name="adjustment">1 1 1000000 1 100 0</property>
</widget>
<packing>
<property name="left_attach">1</property>
@ -1393,7 +1393,7 @@
<property name="update_policy">GTK_UPDATE_ALWAYS</property>
<property name="snap_to_ticks">False</property>
<property name="wrap">False</property>
<property name="adjustment">1 1 1000000 1 100 10</property>
<property name="adjustment">1 1 1000000 1 100 0</property>
</widget>
<packing>
<property name="left_attach">1</property>
@ -1414,7 +1414,7 @@
<property name="update_policy">GTK_UPDATE_ALWAYS</property>
<property name="snap_to_ticks">False</property>
<property name="wrap">False</property>
<property name="adjustment">1 1 1000000 1 100 10</property>
<property name="adjustment">1 1 1000000 1 100 0</property>
</widget>
<packing>
<property name="left_attach">1</property>
@ -1435,7 +1435,7 @@
<property name="update_policy">GTK_UPDATE_ALWAYS</property>
<property name="snap_to_ticks">False</property>
<property name="wrap">False</property>
<property name="adjustment">1 1 1000000 1 100 10</property>
<property name="adjustment">1 1 1000000 1 100 0</property>
</widget>
<packing>
<property name="left_attach">1</property>

View File

@ -286,7 +286,7 @@
<property name="update_policy">GTK_UPDATE_ALWAYS</property>
<property name="snap_to_ticks">False</property>
<property name="wrap">False</property>
<property name="adjustment">1 1 20 1 10 10</property>
<property name="adjustment">1 1 20 1 10 0</property>
</widget>
<packing>
<property name="padding">0</property>
@ -331,7 +331,7 @@
<property name="update_policy">GTK_UPDATE_ALWAYS</property>
<property name="snap_to_ticks">False</property>
<property name="wrap">False</property>
<property name="adjustment">1 0 100 1 10 10</property>
<property name="adjustment">1 0 100 1 10 0</property>
</widget>
<packing>
<property name="padding">0</property>
@ -694,7 +694,7 @@
<property name="update_policy">GTK_UPDATE_ALWAYS</property>
<property name="snap_to_ticks">False</property>
<property name="wrap">False</property>
<property name="adjustment">1 0 3 1 10 10</property>
<property name="adjustment">1 0 3 1 10 0</property>
</widget>
<packing>
<property name="left_attach">1</property>
@ -717,7 +717,7 @@
<property name="update_policy">GTK_UPDATE_ALWAYS</property>
<property name="snap_to_ticks">False</property>
<property name="wrap">False</property>
<property name="adjustment">1 1 100 1 10 10</property>
<property name="adjustment">1 1 100 1 10 0</property>
</widget>
<packing>
<property name="left_attach">1</property>
@ -939,7 +939,7 @@
<property name="update_policy">GTK_UPDATE_ALWAYS</property>
<property name="snap_to_ticks">False</property>
<property name="wrap">False</property>
<property name="adjustment">0 0 40 1 10 10</property>
<property name="adjustment">0 0 40 1 10 0</property>
</widget>
<packing>
<property name="left_attach">1</property>
@ -962,7 +962,7 @@
<property name="update_policy">GTK_UPDATE_ALWAYS</property>
<property name="snap_to_ticks">False</property>
<property name="wrap">False</property>
<property name="adjustment">1 1 7 1 10 10</property>
<property name="adjustment">1 1 7 1 10 0</property>
</widget>
<packing>
<property name="left_attach">1</property>
@ -1223,7 +1223,7 @@
<property name="update_policy">GTK_UPDATE_ALWAYS</property>
<property name="snap_to_ticks">False</property>
<property name="wrap">False</property>
<property name="adjustment">1 0 24 1 10 10</property>
<property name="adjustment">1 0 24 1 10 0</property>
</widget>
<packing>
<property name="padding">0</property>
@ -2967,7 +2967,7 @@
<property name="update_policy">GTK_UPDATE_ALWAYS</property>
<property name="snap_to_ticks">False</property>
<property name="wrap">False</property>
<property name="adjustment">1 1 100 100 1000 10</property>
<property name="adjustment">1 1 100 100 1000 0</property>
</widget>
<packing>
<property name="padding">0</property>
@ -3143,7 +3143,7 @@
<property name="update_policy">GTK_UPDATE_ALWAYS</property>
<property name="snap_to_ticks">False</property>
<property name="wrap">False</property>
<property name="adjustment">1 0 10 1 10 10</property>
<property name="adjustment">1 0 10 1 10 0</property>
<signal name="value_changed" handler="on_spinbutton_recreation_value_changed" last_modification_time="Sat, 03 May 2008 14:10:23 GMT"/>
</widget>
<packing>

View File

@ -417,7 +417,7 @@ create_window_digits (void)
gtk_widget_show (label_1);
gtk_box_pack_start (GTK_BOX (vbox15), label_1, FALSE, FALSE, 0);
spinbutton1_adj = gtk_adjustment_new (1, 0, 100000000, 10, 1000, 10);
spinbutton1_adj = gtk_adjustment_new (1, 0, 100000000, 10, 1000, 0);
spinbutton1 = gtk_spin_button_new (GTK_ADJUSTMENT (spinbutton1_adj), 1, 0);
gtk_widget_show (spinbutton1);
gtk_box_pack_start (GTK_BOX (vbox15), spinbutton1, FALSE, FALSE, 0);
@ -431,7 +431,7 @@ create_window_digits (void)
gtk_widget_show (label_2);
gtk_box_pack_start (GTK_BOX (vbox16), label_2, FALSE, FALSE, 0);
spinbutton2_adj = gtk_adjustment_new (1, 0, 100000000, 1, 100, 10);
spinbutton2_adj = gtk_adjustment_new (1, 0, 100000000, 1, 100, 0);
spinbutton2 = gtk_spin_button_new (GTK_ADJUSTMENT (spinbutton2_adj), 1, 0);
gtk_widget_show (spinbutton2);
gtk_box_pack_start (GTK_BOX (vbox16), spinbutton2, FALSE, FALSE, 0);
@ -652,7 +652,7 @@ create_window_contract (void)
radiobutton_contract1_group = gtk_radio_button_get_group (GTK_RADIO_BUTTON (radiobutton_contract2));
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (radiobutton_contract2), TRUE);
spinbutton_contract1_adj = gtk_adjustment_new (1, 1, 1000000, 1, 100, 10);
spinbutton_contract1_adj = gtk_adjustment_new (1, 1, 1000000, 1, 100, 0);
spinbutton_contract1 = gtk_spin_button_new (GTK_ADJUSTMENT (spinbutton_contract1_adj), 1, 0);
gtk_widget_show (spinbutton_contract1);
gtk_table_attach (GTK_TABLE (table1), spinbutton_contract1, 1, 2, 0, 1,
@ -660,21 +660,21 @@ create_window_contract (void)
(GtkAttachOptions) (0), 0, 0);
gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (spinbutton_contract1), TRUE);
spinbutton_contract2_adj = gtk_adjustment_new (1, 1, 1000000, 1, 100, 10);
spinbutton_contract2_adj = gtk_adjustment_new (1, 1, 1000000, 1, 100, 0);
spinbutton_contract2 = gtk_spin_button_new (GTK_ADJUSTMENT (spinbutton_contract2_adj), 1, 0);
gtk_widget_show (spinbutton_contract2);
gtk_table_attach (GTK_TABLE (table1), spinbutton_contract2, 1, 2, 1, 2,
(GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
(GtkAttachOptions) (0), 0, 0);
spinbutton_contract3_adj = gtk_adjustment_new (1, 1, 1000000, 1, 100, 10);
spinbutton_contract3_adj = gtk_adjustment_new (1, 1, 1000000, 1, 100, 0);
spinbutton_contract3 = gtk_spin_button_new (GTK_ADJUSTMENT (spinbutton_contract3_adj), 1, 0);
gtk_widget_show (spinbutton_contract3);
gtk_table_attach (GTK_TABLE (table1), spinbutton_contract3, 1, 2, 2, 3,
(GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
(GtkAttachOptions) (0), 0, 0);
spinbutton_contract4_adj = gtk_adjustment_new (1, 1, 1000000, 1, 100, 10);
spinbutton_contract4_adj = gtk_adjustment_new (1, 1, 1000000, 1, 100, 0);
spinbutton_contract4 = gtk_spin_button_new (GTK_ADJUSTMENT (spinbutton_contract4_adj), 1, 0);
gtk_widget_show (spinbutton_contract4);
gtk_table_attach (GTK_TABLE (table1), spinbutton_contract4, 1, 2, 3, 4,

View File

@ -696,7 +696,7 @@ create_window_live (void)
gtk_table_set_row_spacings (GTK_TABLE (table2), 1);
gtk_table_set_col_spacings (GTK_TABLE (table2), 3);
spinbutton_speed_adj = gtk_adjustment_new (0, 0, 30, 1, 10, 10);
spinbutton_speed_adj = gtk_adjustment_new (0, 0, 30, 1, 10, 0);
spinbutton_speed = gtk_spin_button_new (GTK_ADJUSTMENT (spinbutton_speed_adj), 1, 0);
gtk_widget_show (spinbutton_speed);
gtk_table_attach (GTK_TABLE (table2), spinbutton_speed, 1, 2, 1, 2,
@ -718,7 +718,7 @@ create_window_live (void)
(GtkAttachOptions) (GTK_FILL),
(GtkAttachOptions) (0), 0, 0);
spinbutton_verbosity_adj = gtk_adjustment_new (1, 1, 7, 1, 10, 10);
spinbutton_verbosity_adj = gtk_adjustment_new (1, 1, 7, 1, 10, 0);
spinbutton_verbosity = gtk_spin_button_new (GTK_ADJUSTMENT (spinbutton_verbosity_adj), 1, 0);
gtk_widget_show (spinbutton_verbosity);
gtk_table_attach (GTK_TABLE (table2), spinbutton_verbosity, 0, 1, 1, 2,
@ -1004,7 +1004,7 @@ create_window_stadium (void)
gtk_table_set_row_spacings (GTK_TABLE (table3), 3);
gtk_table_set_col_spacings (GTK_TABLE (table3), 3);
spin_ticket_price_adj = gtk_adjustment_new (1, 0, 100, 0.10000000149, 10, 10);
spin_ticket_price_adj = gtk_adjustment_new (1, 0, 100, 0.10000000149, 10, 0);
spin_ticket_price = gtk_spin_button_new (GTK_ADJUSTMENT (spin_ticket_price_adj), 1, 2);
gtk_widget_show (spin_ticket_price);
gtk_table_attach (GTK_TABLE (table3), spin_ticket_price, 1, 2, 1, 2,
@ -1052,7 +1052,7 @@ create_window_stadium (void)
gtk_widget_show (label91);
gtk_box_pack_start (GTK_BOX (vbox44), label91, FALSE, FALSE, 0);
spinbutton_capacity_adj = gtk_adjustment_new (0, 0, 10000, 1, 100, 10);
spinbutton_capacity_adj = gtk_adjustment_new (0, 0, 10000, 1, 100, 0);
spinbutton_capacity = gtk_spin_button_new (GTK_ADJUSTMENT (spinbutton_capacity_adj), 1, 0);
gtk_widget_show (spinbutton_capacity);
gtk_box_pack_start (GTK_BOX (vbox44), spinbutton_capacity, FALSE, FALSE, 0);
@ -1086,7 +1086,7 @@ create_window_stadium (void)
gtk_widget_show (label92);
gtk_box_pack_start (GTK_BOX (vbox45), label92, FALSE, FALSE, 0);
spinbutton_safety_adj = gtk_adjustment_new (0, 0, 100, 1, 5, 10);
spinbutton_safety_adj = gtk_adjustment_new (0, 0, 100, 1, 5, 0);
spinbutton_safety = gtk_spin_button_new (GTK_ADJUSTMENT (spinbutton_safety_adj), 1, 0);
gtk_widget_show (spinbutton_safety);
gtk_box_pack_start (GTK_BOX (vbox45), spinbutton_safety, FALSE, FALSE, 0);

View File

@ -301,7 +301,7 @@ create_window_options (void)
gtk_widget_show (label6);
gtk_box_pack_start (GTK_BOX (hbox3), label6, FALSE, FALSE, 0);
spinbutton_autosave_adj = gtk_adjustment_new (1, 1, 20, 1, 10, 10);
spinbutton_autosave_adj = gtk_adjustment_new (1, 1, 20, 1, 10, 0);
spinbutton_autosave = gtk_spin_button_new (GTK_ADJUSTMENT (spinbutton_autosave_adj), 1, 0);
gtk_widget_show (spinbutton_autosave);
gtk_box_pack_start (GTK_BOX (hbox3), spinbutton_autosave, FALSE, TRUE, 0);
@ -312,7 +312,7 @@ create_window_options (void)
gtk_widget_show (label36);
gtk_box_pack_start (GTK_BOX (hbox3), label36, FALSE, FALSE, 0);
spinbutton_autosave_files_adj = gtk_adjustment_new (1, 0, 100, 1, 10, 10);
spinbutton_autosave_files_adj = gtk_adjustment_new (1, 0, 100, 1, 10, 0);
spinbutton_autosave_files = gtk_spin_button_new (GTK_ADJUSTMENT (spinbutton_autosave_files_adj), 1, 0);
gtk_widget_show (spinbutton_autosave_files);
gtk_box_pack_start (GTK_BOX (hbox3), spinbutton_autosave_files, TRUE, TRUE, 0);
@ -408,7 +408,7 @@ create_window_options (void)
(GtkAttachOptions) (0), 0, 0);
gtk_tooltips_set_tip (tooltips, checkbutton_autosave, _("Whether to automatically save the game regularly"), NULL);
spinbutton_precision_adj = gtk_adjustment_new (1, 0, 3, 1, 10, 10);
spinbutton_precision_adj = gtk_adjustment_new (1, 0, 3, 1, 10, 0);
spinbutton_precision = gtk_spin_button_new (GTK_ADJUSTMENT (spinbutton_precision_adj), 1, 0);
gtk_widget_show (spinbutton_precision);
gtk_table_attach (GTK_TABLE (table1), spinbutton_precision, 1, 2, 1, 2,
@ -417,7 +417,7 @@ create_window_options (void)
gtk_tooltips_set_tip (tooltips, spinbutton_precision, _("How many digits after the comma there are for skill etc."), NULL);
gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (spinbutton_precision), TRUE);
spinbutton_refresh_adj = gtk_adjustment_new (1, 1, 100, 1, 10, 10);
spinbutton_refresh_adj = gtk_adjustment_new (1, 1, 100, 1, 10, 0);
spinbutton_refresh = gtk_spin_button_new (GTK_ADJUSTMENT (spinbutton_refresh_adj), 1, 0);
gtk_widget_show (spinbutton_refresh);
gtk_table_attach (GTK_TABLE (table1), spinbutton_refresh, 1, 2, 2, 3,
@ -483,7 +483,7 @@ create_window_options (void)
(GtkAttachOptions) (0), 0, 0);
gtk_misc_set_alignment (GTK_MISC (label39), 1, 0.5);
spinbutton_live_speed_adj = gtk_adjustment_new (0, 0, 40, 1, 10, 10);
spinbutton_live_speed_adj = gtk_adjustment_new (0, 0, 40, 1, 10, 0);
spinbutton_live_speed = gtk_spin_button_new (GTK_ADJUSTMENT (spinbutton_live_speed_adj), 1, 0);
gtk_widget_show (spinbutton_live_speed);
gtk_table_attach (GTK_TABLE (table3), spinbutton_live_speed, 1, 2, 0, 1,
@ -492,7 +492,7 @@ create_window_options (void)
gtk_tooltips_set_tip (tooltips, spinbutton_live_speed, _("The lower this value the faster the live game commentary will scroll."), NULL);
gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (spinbutton_live_speed), TRUE);
spinbutton_live_verbosity_adj = gtk_adjustment_new (1, 1, 7, 1, 10, 10);
spinbutton_live_verbosity_adj = gtk_adjustment_new (1, 1, 7, 1, 10, 0);
spinbutton_live_verbosity = gtk_spin_button_new (GTK_ADJUSTMENT (spinbutton_live_verbosity_adj), 1, 0);
gtk_widget_show (spinbutton_live_verbosity);
gtk_table_attach (GTK_TABLE (table3), spinbutton_live_verbosity, 1, 2, 1, 2,
@ -565,7 +565,7 @@ create_window_options (void)
gtk_widget_show (label37);
gtk_box_pack_start (GTK_BOX (hbox10), label37, FALSE, FALSE, 0);
spinbutton_contract_adj = gtk_adjustment_new (1, 0, 24, 1, 10, 10);
spinbutton_contract_adj = gtk_adjustment_new (1, 0, 24, 1, 10, 0);
spinbutton_contract = gtk_spin_button_new (GTK_ADJUSTMENT (spinbutton_contract_adj), 1, 0);
gtk_widget_show (spinbutton_contract);
gtk_box_pack_start (GTK_BOX (hbox10), spinbutton_contract, FALSE, FALSE, 0);
@ -1026,7 +1026,7 @@ create_window_options (void)
gtk_widget_show (label42);
gtk_box_pack_start (GTK_BOX (hbox12), label42, FALSE, FALSE, 0);
spinbutton_bet_wager_adj = gtk_adjustment_new (1, 1, 100, 100, 1000, 10);
spinbutton_bet_wager_adj = gtk_adjustment_new (1, 1, 100, 100, 1000, 0);
spinbutton_bet_wager = gtk_spin_button_new (GTK_ADJUSTMENT (spinbutton_bet_wager_adj), 1, 0);
gtk_widget_show (spinbutton_bet_wager);
gtk_box_pack_start (GTK_BOX (hbox12), spinbutton_bet_wager, FALSE, FALSE, 0);
@ -1076,7 +1076,7 @@ create_window_options (void)
gtk_misc_set_alignment (GTK_MISC (label45), 0.1, 0.5);
gtk_misc_set_padding (GTK_MISC (label45), 3, 3);
spinbutton_recreation_adj = gtk_adjustment_new (1, 0, 10, 1, 10, 10);
spinbutton_recreation_adj = gtk_adjustment_new (1, 0, 10, 1, 10, 0);
spinbutton_recreation = gtk_spin_button_new (GTK_ADJUSTMENT (spinbutton_recreation_adj), 1, 0);
gtk_widget_show (spinbutton_recreation);
gtk_box_pack_start (GTK_BOX (hbox15), spinbutton_recreation, FALSE, FALSE, 0);