mirror of
https://github.com/tstellar/bygfoot.git
synced 2025-03-08 23:07:39 +01:00
Stadium improvement.
This commit is contained in:
parent
1142aab204
commit
bcdb53310a
@ -1842,7 +1842,7 @@
|
||||
<child>
|
||||
<widget class="GtkSpinButton" id="spinbutton_capacity">
|
||||
<property name="visible">True</property>
|
||||
<property name="tooltip" translatable="yes">Middle-click to set to 0</property>
|
||||
<property name="tooltip" translatable="yes">Right-click to set to 0</property>
|
||||
<property name="can_focus">True</property>
|
||||
<property name="climb_rate">1</property>
|
||||
<property name="digits">0</property>
|
||||
@ -1995,7 +1995,7 @@
|
||||
<child>
|
||||
<widget class="GtkSpinButton" id="spinbutton_safety">
|
||||
<property name="visible">True</property>
|
||||
<property name="tooltip" translatable="yes">Middle-click to set to 0</property>
|
||||
<property name="tooltip" translatable="yes">Right-click to set to 0</property>
|
||||
<property name="can_focus">True</property>
|
||||
<property name="climb_rate">1</property>
|
||||
<property name="digits">0</property>
|
||||
|
@ -287,8 +287,11 @@ on_spinbutton_capacity_button_press_event (GtkWidget *widget,
|
||||
GdkEventButton *event,
|
||||
gpointer user_data)
|
||||
{
|
||||
if(event->button == 2)
|
||||
if(event->button == 3)
|
||||
{
|
||||
gtk_spin_button_set_value(GTK_SPIN_BUTTON(widget), 0);
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
return FALSE;
|
||||
}
|
||||
|
@ -1033,7 +1033,7 @@ create_window_stadium (void)
|
||||
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);
|
||||
gtk_tooltips_set_tip (tooltips, spinbutton_capacity, _("Middle-click to set to 0"), NULL);
|
||||
gtk_tooltips_set_tip (tooltips, spinbutton_capacity, _("Right-click to set to 0"), NULL);
|
||||
|
||||
vbox46 = gtk_vbox_new (FALSE, 3);
|
||||
gtk_widget_show (vbox46);
|
||||
@ -1067,7 +1067,7 @@ create_window_stadium (void)
|
||||
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);
|
||||
gtk_tooltips_set_tip (tooltips, spinbutton_safety, _("Middle-click to set to 0"), NULL);
|
||||
gtk_tooltips_set_tip (tooltips, spinbutton_safety, _("Right-click to set to 0"), NULL);
|
||||
|
||||
vbox47 = gtk_vbox_new (FALSE, 3);
|
||||
gtk_widget_show (vbox47);
|
||||
|
Loading…
x
Reference in New Issue
Block a user