ocarina: Cleanup path info buttons

I was using variables that I really didn't need to use...
This commit is contained in:
Bryan Schumaker 2011-10-20 20:33:21 -04:00
parent 3ff17e907c
commit 6467356cf6
1 changed files with 5 additions and 7 deletions

View File

@ -122,14 +122,12 @@ static GtkWidget *make_path_info(string path, unsigned int size)
static GtkWidget *add_buttons(GtkWidget *info_box, struct PathInfo &path)
{
GtkWidget *button_box = gtk_hbox_new(FALSE, 0);
GtkWidget *remove_btn = make_remove_button();
GtkWidget *update_btn = make_update_path_button();
path.remove = make_remove_button();
path.update = make_update_path_button();
path.remove = remove_btn;
path.update = update_btn;
box_pack_start(button_box, info_box, TRUE, TRUE, 0);
box_pack_start(button_box, update_btn, FALSE, FALSE, 0);
box_pack_start(button_box, remove_btn, FALSE, FALSE, 0);
box_pack_start(button_box, info_box, TRUE, TRUE, 0);
box_pack_start(button_box, path.update, FALSE, FALSE, 0);
box_pack_start(button_box, path.remove, FALSE, FALSE, 0);
return button_box;
}