/*
** Copyright (C) 2000-2003 Daniel Sundberg
**
** This program is free software; you can redistribute it and/or modify
** it under the terms of the GNU General Public License as published by
** the Free Software Foundation; either version 2 of the License, or
** (at your option) any later version.
**
** This program is distributed in the hope that it will be useful,
** but WITHOUT ANY WARRANTY; without even the implied warranty of
** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
** GNU General Public License for more details.
**
** You should have received a copy of the GNU General Public License
** along with this program; if not, write to the Free Software
** Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
**
*/
#include "jagsstatusbar.h"
GtkWidget *statusbar;
JagsStatusBar::JagsStatusBar(GtkWidget *vbox) {
statusbar = gtk_statusbar_new();
gtk_box_pack_start(GTK_BOX(vbox), statusbar, FALSE, FALSE, 0);
gtk_widget_show(statusbar);
id = gtk_statusbar_get_context_id(GTK_STATUSBAR(statusbar), "Statusbar example");
}
JagsStatusBar::~JagsStatusBar() {
}
void JagsStatusBar::set_text(gchar *text) {
gtk_statusbar_push(GTK_STATUSBAR(statusbar), id, text);
}