Changeset 3347 for trunk/jons-gtk2-gui

Show
Ignore:
Timestamp:
03/11/03 10:16:21 (6 years ago)
Author:
bostjanlah
Message:

Add a status_change function

Location:
trunk/jons-gtk2-gui/src
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/jons-gtk2-gui/src/utilities.cpp

    r3325 r3347  
    8080} 
    8181 
     82void 
     83status_change(GtkWidget *statusbar, const char *st_name, const char *newstatus) 
     84{ 
     85    guint id = gtk_statusbar_get_context_id(GTK_STATUSBAR(statusbar), st_name); 
     86    gtk_statusbar_pop(GTK_STATUSBAR(statusbar), id); 
     87    gtk_statusbar_push(GTK_STATUSBAR(statusbar), id, newstatus); 
     88} 
     89 
  • trunk/jons-gtk2-gui/src/utilities.h

    r3325 r3347  
    1313entry_get_chars(GtkWidget *w); 
    1414 
     15void 
     16status_change(GtkWidget *statusbar, const char *st_name, const char *newstatus); 
     17 
    1518#endif