From 6467356cf6ef8dee8f8098619860e9ae1e3ac977 Mon Sep 17 00:00:00 2001 From: Bryan Schumaker Date: Thu, 20 Oct 2011 20:33:21 -0400 Subject: [PATCH] ocarina: Cleanup path info buttons I was using variables that I really didn't need to use... --- ocarina/settings/library.cpp | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/ocarina/settings/library.cpp b/ocarina/settings/library.cpp index bcb26bea..96a1cdcc 100644 --- a/ocarina/settings/library.cpp +++ b/ocarina/settings/library.cpp @@ -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; }