Main Page | Modules | Alphabetical List | Data Structures | File List | Data Fields | Globals | Related Pages

statusbar.c File Reference


Detailed Description

GUI stuff used by 'share.c'.

Author:
Raphael Manfredi

Richard Eckart

Date:
2001-2003

#include "gui.h"
#include "statusbar.h"
#include "lib/glib-missing.h"
#include "lib/misc.h"
#include "lib/tm.h"
#include "lib/override.h"

Data Structures

struct  statusbar_timeout
 Timeout entry for statusbar messages. More...


Typedefs

typedef statusbar_timeout statusbar_timeout_t
 Timeout entry for statusbar messages.


Functions

 RCSID ("$Id:statusbar.c, v 1.8 2005/08/31 21:37:33 rmanfredi Exp $")
void statusbar_gui_free_timeout (struct statusbar_timeout *t)
 Remove the timeout from the timeout list and free allocated memory.

void statusbar_gui_free_timeout_list (void)
 Clear the whole timeout list and free allocated memory.

void statusbar_gui_add_timeout (statusbar_msgid_t, guint timeout)
 Add a statusbar message id to the timeout list, so it will be removed automatically after a number of seconds.

GtkStatusbar * statusbar_get (void)
statusbar_msgid_t statusbar_gui_push_v (sb_types_t type, guint scid, guint timeout, const gchar *format, va_list args)
 Put a message on the statusbar.

statusbar_msgid_t statusbar_gui_push (sb_types_t type, guint scid, guint timeout, const gchar *format,...)
 Put a message on the statusbar.

statusbar_msgid_t statusbar_gui_message (guint timeout, const gchar *format,...)
 Put an informational message on the statusbar.

statusbar_msgid_t statusbar_gui_warning (guint timeout, const gchar *format,...)
 Put a warning message on the statusbar.

void statusbar_gui_init (void)
void statusbar_gui_shutdown (void)
void statusbar_gui_set_default (const char *format,...)
void statusbar_gui_remove (statusbar_msgid_t id)
void statusbar_gui_clear_timeouts (time_t now)
 Check whether statusbar items have expired and remove them from the statusbar.


Variables

const statusbar_msgid_t zero_msgid
guint scid_bottom = (guint) -1
guint scid_hostsfile = (guint) -1
guint scid_queue_freezed = (guint) -1
guint scid_info = (guint) -1
guint scid_ip_changed = (guint) -1
guint scid_warn = (guint) -1
GSList * sl_statusbar_timeouts = NULL
 List with timeout entries for statusbar messages.

gchar * statbar_botstr = NULL
gchar * statbar_botstr_new = NULL


Typedef Documentation

typedef struct statusbar_timeout statusbar_timeout_t
 

Timeout entry for statusbar messages.


Function Documentation

RCSID "$Id:statusbar.  c,
v 1.8 2005/08/31 21:37:33 rmanfredi Exp $" 
 

GtkStatusbar* statusbar_get void   )  [static]
 

void statusbar_gui_add_timeout statusbar_msgid_t  id,
guint  timeout
[static]
 

Add a statusbar message id to the timeout list, so it will be removed automatically after a number of seconds.

void statusbar_gui_clear_timeouts time_t  now  ) 
 

Check whether statusbar items have expired and remove them from the statusbar.

void statusbar_gui_free_timeout struct statusbar_timeout t  )  [static]
 

Remove the timeout from the timeout list and free allocated memory.

void statusbar_gui_free_timeout_list void   )  [static]
 

Clear the whole timeout list and free allocated memory.

void statusbar_gui_init void   ) 
 

statusbar_msgid_t statusbar_gui_message guint  timeout,
const gchar *  format,
... 
 

Put an informational message on the statusbar.

The message will be displayed for the number of seconds given by timeout. If timeout is 0 the message will not be automatically removed.

Returns:
message id of the added message

statusbar_msgid_t statusbar_gui_push sb_types_t  type,
guint  scid,
guint  timeout,
const gchar *  format,
... 
[static]
 

Put a message on the statusbar.

The message will be displayed for the number of seconds given by timeout. If timeout is 0 the message will not be automatically removed.

Returns:
message id of the added message

statusbar_msgid_t statusbar_gui_push_v sb_types_t  type,
guint  scid,
guint  timeout,
const gchar *  format,
va_list  args
 

Put a message on the statusbar.

The message will be displayed for the number of seconds given by timeout. If timeout is 0 the message will not be automatically removed.

Returns:
message id of the added message

void statusbar_gui_remove statusbar_msgid_t  id  ) 
 

void statusbar_gui_set_default const char *  format,
... 
 

void statusbar_gui_shutdown void   ) 
 

statusbar_msgid_t statusbar_gui_warning guint  timeout,
const gchar *  format,
... 
 

Put a warning message on the statusbar.

The message will be displayed for the number of seconds given by timeout. If timeout is 0 the message will not be automatically removed.

Returns:
message id of the added message


Variable Documentation

guint scid_bottom = (guint) -1 [static]
 

guint scid_hostsfile = (guint) -1 [static]
 

guint scid_info = (guint) -1 [static]
 

guint scid_ip_changed = (guint) -1 [static]
 

guint scid_queue_freezed = (guint) -1 [static]
 

guint scid_warn = (guint) -1 [static]
 

GSList* sl_statusbar_timeouts = NULL [static]
 

List with timeout entries for statusbar messages.

gchar* statbar_botstr = NULL [static]
 

gchar* statbar_botstr_new = NULL [static]
 

const statusbar_msgid_t zero_msgid [static]
 


Generated on Sun Feb 12 10:50:08 2006 for Gtk-Gnutella by doxygen 1.3.6