Logo Search packages:      
Sourcecode: mathwar version File versions  Download package

void display_rounds_left ( GtkWidget *  mainwin,
gint  rounds 
)

Display the number of rounds left to play.

Parameters:
mainwin The topmost parent widget.
rounds The number of rounds left to play.
Returns:
Nothing.

Definition at line 687 of file mainwin.c.

{
   GnomeAppBar *bar;
   GString     *str;

   bar = GNOME_APPBAR (lookup_widget (mainwin, MAIN_APPBAR));
   g_return_if_fail (bar != NULL);

   str = g_string_new ("");
   g_string_sprintf (str, _("Rounds Left: %d"), rounds);
   gnome_appbar_set_default (bar, str->str);

   g_string_free (str, TRUE);
}


Generated by  Doxygen 1.6.0   Back to index