summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2013-04-18 05:22:37 -0700
committerJens Axboe <axboe@kernel.dk>2013-04-18 05:22:37 -0700
commitcab2440c23426b06e7e8327c5353fbd8373dcb5a (patch)
treeb4f697411453867cd530816661da68d186c13246
parenteb19930cf6e8315417b01e00669446a383c69690 (diff)
downloadfio-cab2440c23426b06e7e8327c5353fbd8373dcb5a.tar.gz
fio-cab2440c23426b06e7e8327c5353fbd8373dcb5a.tar.bz2
gerror: mixed code/data section
Signed-off-by: Jens Axboe <axboe@kernel.dk>
-rw-r--r--gerror.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gerror.c b/gerror.c
index 30367381..43bdabae 100644
--- a/gerror.c
+++ b/gerror.c
@@ -24,6 +24,8 @@ static void report_error(struct gui_entry *ge, GError *error)
struct gui *ui = ge->ui;
if (ui->error_info_bar == NULL) {
+ GtkWidget *container;
+
ui->error_info_bar = gtk_info_bar_new_with_buttons(GTK_STOCK_OK,
GTK_RESPONSE_OK, NULL);
g_signal_connect(ui->error_info_bar, "response", G_CALLBACK(on_info_bar_response), ui);
@@ -31,7 +33,7 @@ static void report_error(struct gui_entry *ge, GError *error)
GTK_MESSAGE_ERROR);
ui->error_label = gtk_label_new(error->message);
- GtkWidget *container = gtk_info_bar_get_content_area(GTK_INFO_BAR(ui->error_info_bar));
+ container = gtk_info_bar_get_content_area(GTK_INFO_BAR(ui->error_info_bar));
gtk_container_add(GTK_CONTAINER(container), ui->error_label);
gtk_box_pack_start(GTK_BOX(ui->vbox), ui->error_info_bar, FALSE, FALSE, 0);