Commit 5a05732a authored by Bruno Coudoin's avatar Bruno Coudoin

now the bar background fit excactly the number of icons

it contains.

svn path=/branches/gcomprixogoo/; revision=3553
parent 22ee93d0
This diff is collapsed.
......@@ -268,7 +268,9 @@ _combo_box_changed(GtkComboBox *combobox,
static inline int my_strcmp(gchar *a, gchar *b) { return strcmp( a, b); }
GtkComboBox *gc_board_config_combo_box(const gchar *label, GList *strings, gchar *key, gchar *init)
GtkComboBox *gc_board_config_combo_box(const gchar *label,
GList *strings,
gchar *key, gchar *init)
{
check_key( key);
......@@ -279,7 +281,11 @@ GtkComboBox *gc_board_config_combo_box(const gchar *label, GList *strings, gchar
gint init_index = 0;
if (init)
init_index = g_list_position ( strings, g_list_find_custom ( strings,(gconstpointer) init, (GCompareFunc) my_strcmp));
init_index =
g_list_position ( strings,
g_list_find_custom ( strings,
(gconstpointer) init,
(GCompareFunc) my_strcmp));
if (init_index < 0)
init_index=0;
......
......@@ -645,7 +645,7 @@ gc_activity_intro_play (GcomprisBoard *gcomprisBoard)
{
gchar *str;
str = gc_file_find_absolute("voices/$LOCALE/intro/%s-intro.ogg",
str = gc_file_find_absolute("voices/$LOCALE/intro/%s.ogg",
gcomprisBoard->name, NULL);
gc_sound_play_ogg(str, NULL);
g_free(str);
......
......@@ -96,7 +96,11 @@ typedef enum
GC_BAR_CONFIG = 1 << 2,
GC_BAR_ABOUT = 1 << 3,
GC_BAR_REPEAT_ICON = 1 << 4,
GC_BAR_QUIT = 1 << 5,
/* Internal use */
GC_BAR_HOME = 1 << 5,
GC_BAR_EXIT = 1 << 6,
GC_BAR_LEVEL_DOWN = 1 << 7,
GC_BAR_HELP = 1 << 8,
} GComprisBarFlags;
/* Difficulty filtering */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment