1 /* 2 * xed-statusbar.h 3 * This file is part of xed 4 * 5 * Copyright (C) 2005 - Paolo Borelli 6 * 7 * This program is free software; you can redistribute it and/or modify 8 * it under the terms of the GNU General Public License as published by 9 * the Free Software Foundation; either version 2 of the License, or 10 * (at your option) any later version. 11 * 12 * This program is distributed in the hope that it will be useful, 13 * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 * GNU General Public License for more details. 16 * 17 * You should have received a copy of the GNU General Public License 18 * along with this program; if not, write to the Free Software 19 * Foundation, Inc., 51 Franklin St, Fifth Floor, 20 * Boston, MA 02110-1301, USA. 21 */ 22 23 /* 24 * Modified by the xed Team, 2005. See the AUTHORS file for a 25 * list of people on the xed Team. 26 * See the ChangeLog files for a list of changes. 27 */ 28 29 #ifndef XED_STATUSBAR_H 30 #define XED_STATUSBAR_H 31 32 #include <gtk/gtk.h> 33 #include <xed/xed-window.h> 34 35 G_BEGIN_DECLS 36 37 #define XED_TYPE_STATUSBAR (xed_statusbar_get_type ()) 38 #define XED_STATUSBAR(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), XED_TYPE_STATUSBAR, XedStatusbar)) 39 #define XED_STATUSBAR_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), XED_TYPE_STATUSBAR, XedStatusbarClass)) 40 #define XED_IS_STATUSBAR(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), XED_TYPE_STATUSBAR)) 41 #define XED_IS_STATUSBAR_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), XED_TYPE_STATUSBAR)) 42 #define XED_STATUSBAR_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), XED_TYPE_STATUSBAR, XedStatusbarClass)) 43 44 typedef struct _XedStatusbar XedStatusbar; 45 typedef struct _XedStatusbarPrivate XedStatusbarPrivate; 46 typedef struct _XedStatusbarClass XedStatusbarClass; 47 48 struct _XedStatusbar 49 { 50 GtkStatusbar parent; 51 52 /* <private/> */ 53 XedStatusbarPrivate *priv; 54 }; 55 56 struct _XedStatusbarClass 57 { 58 GtkStatusbarClass parent_class; 59 }; 60 61 GType xed_statusbar_get_type (void) G_GNUC_CONST; 62 63 GtkWidget *xed_statusbar_new (void); 64 65 void xed_statusbar_set_window_state (XedStatusbar *statusbar, 66 XedWindowState state, 67 gint num_of_errors); 68 69 void xed_statusbar_set_overwrite (XedStatusbar *statusbar, 70 gboolean overwrite); 71 72 void xed_statusbar_set_cursor_position (XedStatusbar *statusbar, 73 gint line, 74 gint col); 75 76 void xed_statusbar_clear_overwrite (XedStatusbar *statusbar); 77 78 void xed_statusbar_flash_message (XedStatusbar *statusbar, 79 guint context_id, 80 const gchar *format, 81 ...) G_GNUC_PRINTF(3, 4); 82 83 G_END_DECLS 84 85 #endif 86