Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

ui: fix small info_box size bug

  • Loading branch information...
commit 74f464c8c0867246a6dda02ad0b9562f6d1eb30c 1 parent f30c3da
@luisbg authored
Showing with 5 additions and 6 deletions.
  1. +5 −6 src/user_interface.c
View
11 src/user_interface.c
@@ -527,7 +527,6 @@ load_controls (UserInterface * ui)
volume_box_layout = clutter_box_layout_new ();
clutter_box_layout_set_vertical (CLUTTER_BOX_LAYOUT (volume_box_layout),
FALSE);
- clutter_box_layout_set_spacing (CLUTTER_BOX_LAYOUT (volume_box_layout), 0);
ui->volume_box = clutter_box_new (volume_box_layout);
clutter_box_pack (CLUTTER_BOX (middle_box), ui->volume_box,
@@ -643,7 +642,7 @@ load_controls (UserInterface * ui)
TRUE, /* x-fill */
FALSE, /* y-fill */
CLUTTER_BOX_ALIGNMENT_END, /* x-align */
- CLUTTER_BOX_ALIGNMENT_CENTER); /* y-align */
+ CLUTTER_BOX_ALIGNMENT_START); /* y-align */
clutter_actor_lower_bottom (ui->control_bg);
@@ -915,13 +914,13 @@ update_controls_size (UserInterface * ui)
}
clutter_actor_set_size (ui->control_box,
- ctl_width + (ctl_width / BG_W) * SHADOW_RIGHT,
- ctl_height + (ctl_height / BG_H) * SHADOW_BOTTOM);
+ ctl_width + ((ctl_width / BG_W) * SHADOW_RIGHT),
+ ctl_height + ((ctl_height / BG_H) * SHADOW_BOTTOM));
icon_size = ctl_height * PLAY_TOGGLE_RATIO;
clutter_actor_set_size (ui->control_play_toggle, icon_size, icon_size);
- clutter_actor_set_size (ui->info_box, ctl_width * MAIN_BOX_W - icon_size,
- ctl_height * MAIN_BOX_H * MAIN_BOX_H);
+ clutter_actor_set_size (ui->info_box, (ctl_width * MAIN_BOX_W - icon_size),
+ ctl_height * MAIN_BOX_H);
font_name = g_strdup_printf ("Sans %dpx", (gint) (ctl_width * TITLE_RATIO));
clutter_text_set_font_name (CLUTTER_TEXT (ui->control_title), font_name);
Please sign in to comment.
Something went wrong with that request. Please try again.