{
int i;
- for (i = 0 ; i < n_PsppireButtonboxButtons ; ++i )
+ for (i = 0 ; i < n_PsppireButtonboxButtons ; ++i)
if (bb->def == (1 << i))
{
gtk_widget_set_can_default (bb->button[i], TRUE);
{
case PROP_BUTTONS:
flags = g_value_get_flags (value);
- for (i = 0 ; i < n_PsppireButtonboxButtons ; ++i )
+ for (i = 0 ; i < n_PsppireButtonboxButtons ; ++i)
g_object_set (bb->button[i], "visible", 0x01 & (flags >> i) , NULL);
break;
switch (prop_id)
{
case PROP_BUTTONS:
- for (i = 0 ; i < n_PsppireButtonboxButtons ; ++i )
+ for (i = 0 ; i < n_PsppireButtonboxButtons ; ++i)
{
gboolean visibility;
g_object_get (bb->button[i], "visible", &visibility, NULL);
- if ( visibility )
+ if (visibility)
flags |= (0x01 << i);
}
/* If we're not in a psppire dialog (for example when in glade)
then do nothing */
- if ( ! PSPPIRE_IS_DIALOG (toplevel))
+ if (! PSPPIRE_IS_DIALOG (toplevel))
return;
dialog = PSPPIRE_DIALOG (toplevel);
GtkWidget *toplevel = gtk_widget_get_toplevel (w);
PsppireDialog *dialog;
- if ( ! PSPPIRE_IS_DIALOG (toplevel))
+ if (! PSPPIRE_IS_DIALOG (toplevel))
return;
dialog = PSPPIRE_DIALOG (toplevel);
GtkWidget *toplevel = gtk_widget_get_toplevel (w);
PsppireDialog *dialog;
- if ( ! PSPPIRE_IS_DIALOG (toplevel))
+ if (! PSPPIRE_IS_DIALOG (toplevel))
return;
dialog = PSPPIRE_DIALOG (toplevel);
flags = g_value_get_flags (&value);
- for (i = 0 ; i < n_PsppireButtonboxButtons ; ++i )
+ for (i = 0 ; i < n_PsppireButtonboxButtons ; ++i)
g_object_set (bb->button[i], "visible", 0x01 & (flags >> i) , NULL);
g_value_unset (&value);