(define-object Statusbar
  (in-module "Gtk")
  (parent "GtkHBox")
  (c-name "GtkStatusbar")
  (gtype-id "GTK_TYPE_STATUSBAR")
)

(define-function gtk_statusbar_new
  (is-constructor-of "GtkStatusbar")
  (c-name "gtk_statusbar_new")
  (caller-owns-return #t)
  (return-type "GtkWidget*")
)

(define-method get_context_id
  (of-object "GtkStatusbar")
  (c-name "gtk_statusbar_get_context_id")
  (return-type "guint")
  (parameters
    '("const-gchar*" "context_description")
  )
)

(define-method push
  (of-object "GtkStatusbar")
  (c-name "gtk_statusbar_push")
  (return-type "guint")
  (parameters
    '("guint" "context_id")
    '("const-gchar*" "text")
  )
)

(define-method pop
  (of-object "GtkStatusbar")
  (c-name "gtk_statusbar_pop")
  (return-type "none")
  (parameters
    '("guint" "context_id")
  )
)

(define-method remove
  (of-object "GtkStatusbar")
  (c-name "gtk_statusbar_remove")
  (return-type "none")
  (parameters
    '("guint" "context_id")
    '("guint" "message_id")
  )
)

(define-method get_message_area
  (of-object "GtkStatusbar")
  (c-name "gtk_statusbar_get_message_area")
  (return-type "GtkWidget*")
)

(define-virtual text_pushed
  (of-object "GtkStatusbar")
  (return-type "none")
  (parameters
    '("guint" "context_id")
    '("const-gchar*" "text")
  )
)

(define-virtual text_popped
  (of-object "GtkStatusbar")
  (return-type "none")
  (parameters
    '("guint" "context_id")
    '("const-gchar*" "text")
  )
)

