OpenClonk
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
statusbar.c File Reference
#include <stdlib.h>
#include <gtk/gtk.h>
#include "mape/statusbar.h"
Include dependency graph for statusbar.c:

Go to the source code of this file.

Functions

MapeStatusbarmape_statusbar_new (void)
 
void mape_statusbar_destroy (MapeStatusbar *bar)
 
void mape_statusbar_set_compile (MapeStatusbar *bar, const gchar *text)
 

Function Documentation

void mape_statusbar_destroy ( MapeStatusbar bar)

Definition at line 42 of file statusbar.c.

Referenced by mape_window_new().

43 {
44  free(bar);
45 }

Here is the caller graph for this function:

MapeStatusbar* mape_statusbar_new ( void  )

Definition at line 20 of file statusbar.c.

References MapeStatusbar_::bar, and MapeStatusbar_::context_compile.

Referenced by mape_window_new().

21 {
22  MapeStatusbar* bar;
23  bar = malloc(sizeof(MapeStatusbar) );
24 
25  bar->bar = gtk_statusbar_new();
26  bar->context_compile = gtk_statusbar_get_context_id(
27  GTK_STATUSBAR(bar->bar),
28  "Compiler report"
29  );
30 
31  gtk_statusbar_push(
32  GTK_STATUSBAR(bar->bar),
33  bar->context_compile,
34  "Initialized"
35  );
36 
37  gtk_widget_show(bar->bar);
38 
39  return bar;
40 }
guint context_compile
Definition: statusbar.h:25
GtkWidget * bar
Definition: statusbar.h:23

Here is the caller graph for this function:

void mape_statusbar_set_compile ( MapeStatusbar bar,
const gchar *  text 
)

Definition at line 47 of file statusbar.c.

References MapeStatusbar_::bar, and MapeStatusbar_::context_compile.

Referenced by mape_edit_view_reload().

49 {
50  gtk_statusbar_pop(GTK_STATUSBAR(bar->bar), bar->context_compile);
51  gtk_statusbar_push(GTK_STATUSBAR(bar->bar), bar->context_compile, text);
52 }
guint context_compile
Definition: statusbar.h:25
GtkWidget * bar
Definition: statusbar.h:23

Here is the caller graph for this function: