2001-04-19 14:21:46 +02:00
|
|
|
/*
|
|
|
|
* Sylpheed -- a GTK+ based, lightweight, and fast e-mail client
|
2011-02-16 08:16:26 +01:00
|
|
|
* Copyright (C) 1999-2011 Hiroyuki Yamamoto and the Claws Mail team
|
2001-04-19 14:21:46 +02:00
|
|
|
*
|
|
|
|
* 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
|
2007-07-11 18:38:12 +02:00
|
|
|
* the Free Software Foundation; either version 3 of the License, or
|
2001-04-19 14:21:46 +02:00
|
|
|
* (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
|
2007-07-11 18:38:12 +02:00
|
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*
|
2001-04-19 14:21:46 +02:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __STATUSBAR_H__
|
|
|
|
#define __STATUSBAR_H__
|
|
|
|
|
|
|
|
#include <glib.h>
|
2008-09-09 18:40:59 +02:00
|
|
|
#include <gtk/gtk.h>
|
2001-04-19 14:21:46 +02:00
|
|
|
|
|
|
|
GtkWidget *statusbar_create (void);
|
|
|
|
void statusbar_puts (GtkStatusbar *statusbar,
|
|
|
|
const gchar *str);
|
|
|
|
void statusbar_puts_all (const gchar *str);
|
|
|
|
void statusbar_print (GtkStatusbar *statusbar,
|
|
|
|
const gchar *format, ...)
|
|
|
|
G_GNUC_PRINTF(2, 3);
|
|
|
|
void statusbar_print_all (const gchar *format, ...)
|
|
|
|
G_GNUC_PRINTF(1, 2);
|
|
|
|
void statusbar_pop_all (void);
|
2007-09-16 08:30:16 +02:00
|
|
|
|
|
|
|
#ifdef MAEMO
|
|
|
|
void statuswindow_print_all (const gchar *format, ...)
|
|
|
|
G_GNUC_PRINTF(1, 2);
|
|
|
|
void statuswindow_pop_all (void);
|
|
|
|
#else
|
|
|
|
#define statuswindow_print_all statusbar_print_all
|
|
|
|
#define statuswindow_pop_all statusbar_pop_all
|
|
|
|
#endif
|
|
|
|
|
2002-12-11 00:03:59 +01:00
|
|
|
void statusbar_verbosity_set (gboolean verbose);
|
2001-04-19 14:21:46 +02:00
|
|
|
|
2005-07-10 06:09:06 +02:00
|
|
|
void statusbar_progress_all (gint done, gint total, gint step);
|
2002-07-23 20:18:21 +02:00
|
|
|
#define STATUSBAR_PUSH(mainwin, str) \
|
|
|
|
{ \
|
2007-07-25 18:37:48 +02:00
|
|
|
if (mainwin->statusbar) \
|
|
|
|
gtk_statusbar_push(GTK_STATUSBAR(mainwin->statusbar), \
|
2002-07-23 20:18:21 +02:00
|
|
|
mainwin->folderview_cid, str); \
|
2007-07-25 18:37:48 +02:00
|
|
|
if (mainwin->hbox_stat) \
|
|
|
|
gtkut_widget_draw_now(mainwin->hbox_stat); \
|
2002-07-23 20:18:21 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
#define STATUSBAR_POP(mainwin) \
|
|
|
|
{ \
|
2007-07-25 18:37:48 +02:00
|
|
|
if (mainwin->statusbar) \
|
|
|
|
gtk_statusbar_pop(GTK_STATUSBAR(mainwin->statusbar), \
|
2002-07-23 20:18:21 +02:00
|
|
|
mainwin->folderview_cid); \
|
|
|
|
}
|
|
|
|
|
2001-04-19 14:21:46 +02:00
|
|
|
#endif /* __STATUSBAR_H__ */
|