OpenClonk
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
statusbar.h File Reference
#include <gtk/gtk.h>
#include "mape/forward.h"
Include dependency graph for statusbar.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  MapeStatusbar_
 

Functions

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

Class Documentation

struct MapeStatusbar_

Definition at line 22 of file statusbar.h.

Class Members
GtkWidget * bar
guint context_compile

Function Documentation

void mape_statusbar_destroy ( MapeStatusbar view)

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 ( )

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: