| GTranslator Reference Manual | ||||
|---|---|---|---|---|
| Top | Description | ||||
struct GtrStatusbar; struct GtrStatusbarClass; GtkWidget * gtr_statusbar_new (void); void gtr_statusbar_push_default (GtrStatusbar *statusbar,const gchar *text); void gtr_statusbar_pop_default (GtrStatusbar *statusbar); guint gtr_statusbar_push (GtrStatusbar *statusbar,guint context_id,const gchar *text); void gtr_statusbar_pop (GtrStatusbar *statusbar,guint context_id); guint gtr_statusbar_get_context_id (GtrStatusbar *statusbar,const gchar *context_description); void gtr_statusbar_set_overwrite (GtrStatusbar *statusbar,gboolean overwrite); void gtr_statusbar_clear_overwrite (GtrStatusbar *statusbar); void gtr_statusbar_flash_message (GtrStatusbar *statusbar,guint context_id,const gchar *format,...); void gtr_statusbar_update_progress_bar (GtrStatusbar *statusbar,gdouble translated_count,gdouble messages_count); void gtr_statusbar_clear_progress_bar (GtrStatusbar *statusbar); GtrStatusbarPrivate;
struct GtrStatusbar {
GtkBox parent;
/* <private/> */
GtrStatusbarPrivate *priv;
};
GtkWidget * gtr_statusbar_new (void);
Creates a new GtrStatusbar.
Returns : |
the new GtrStatusbar object |
void gtr_statusbar_push_default (GtrStatusbar *statusbar,const gchar *text);
Pushes a text onto the statusbar in the default context id.
|
a GtrStatusbar |
|
the text to push in the statusbar |
void gtr_statusbar_pop_default (GtrStatusbar *statusbar);
Pops the text in the statusbar of the default context id.
|
a GtrStatusbar |
guint gtr_statusbar_push (GtrStatusbar *statusbar,guint context_id,const gchar *text);
Pushes a new message onto a statusbar's stack.
|
a GtrStatusbar |
|
the message's context id, as returned by gtk_statusbar_get_context_id()
|
|
the text to push in the statusbar |
Returns : |
a message id that can be used with gtk_statusbar_remove()
|
void gtr_statusbar_pop (GtrStatusbar *statusbar,guint context_id);
Removes the first message in the GtkStatusBar's stack with the given context id.
|
a GtrStatusbar |
|
a context identifier |
guint gtr_statusbar_get_context_id (GtrStatusbar *statusbar,const gchar *context_description);
Returns a new context identifier, given a description of the actual context. Note that the description is not shown in the UI.
|
a GtrStatusbar |
|
textual description of what context the new message is being used in |
Returns : |
an integer id |
void gtr_statusbar_set_overwrite (GtrStatusbar *statusbar,gboolean overwrite);
Sets the overwrite mode on the statusbar.
|
a GtrStatusbar |
|
if the overwrite mode is set |
void gtr_statusbar_clear_overwrite (GtrStatusbar *statusbar);
Clears the statusbar overwrite label.
|
a GtrStatusbar |
void gtr_statusbar_flash_message (GtrStatusbar *statusbar,guint context_id,const gchar *format,...);
Flash a temporary message on the statusbar.
|
a GtrStatusbar |
|
message context_id |
|
message to flash on the statusbar |
void gtr_statusbar_update_progress_bar (GtrStatusbar *statusbar,gdouble translated_count,gdouble messages_count);
Updates the state of the progress bar with the given values.
|
a GtrStatusbar |
|
the number of translated messages |
|
the number of messages |
void gtr_statusbar_clear_progress_bar (GtrStatusbar *statusbar);
Clear the progress bar
|
a GtrStatusbar |