|
Freeciv-3.1
|
#include <gtk/gtk.h>#include "fcintl.h"#include "mem.h"#include "support.h"#include "options.h"#include "voteinfo.h"#include "chatline.h"#include "pages.h"#include "voteinfo_bar.h"Go to the source code of this file.
Data Structures | |
| struct | voteinfo_bar |
Functions | |
| static void | voteinfo_bar_do_vote_callback (GtkWidget *w, gpointer userdata) |
| static void | voteinfo_bar_next_callback (GtkWidget *w, gpointer userdata) |
| static void | voteinfo_bar_destroy (GtkWidget *w, gpointer userdata) |
| GtkWidget * | voteinfo_bar_new (bool split_bar) |
| void | voteinfo_gui_update (void) |
Variables | |
| GtkWidget * | pregame_votebar = NULL |
| GtkWidget * | ingame_votebar = NULL |
|
static |
Destroy the voteinfo_bar data structure.
Definition at line 82 of file voteinfo_bar.c.
|
static |
Called after a click on a vote button.
Definition at line 55 of file voteinfo_bar.c.
| GtkWidget * voteinfo_bar_new | ( | bool | split_bar | ) |
Create a voteinfo_bar structure. "split_bar" controls whether to split voteinfo bar over two lines (for narrow windows) or put on a single line to save vertical space.
Definition at line 92 of file voteinfo_bar.c.
|
static |
Switch to the next vote.
Definition at line 73 of file voteinfo_bar.c.
| void voteinfo_gui_update | ( | void | ) |
Refresh all vote related GUI widgets. Called by the voteinfo module when the client receives new vote information from the server.
Definition at line 212 of file voteinfo_bar.c.
| GtkWidget* ingame_votebar = NULL |
Definition at line 50 of file voteinfo_bar.c.
| GtkWidget* pregame_votebar = NULL |
Definition at line 49 of file voteinfo_bar.c.