This file is indexed.

/usr/include/swami/libswamigui/SwamiguiStatusbar.h is in libswami-dev 2.0.0+svn389-2.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
/*
 * SwamiguiStatusbar.h - A statusbar (multiple labels/progresses)
 *
 * Swami
 * Copyright (C) 1999-2010 Joshua "Element" Green <jgreen@users.sourceforge.net>
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; version 2
 * of the License only.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 * 02111-1307, USA or point your web browser to http://www.gnu.org.
 */
#ifndef __SWAMIGUI_STATUSBAR_H__
#define __SWAMIGUI_STATUSBAR_H__

/* max chars for "Global" group status label item */
#define SWAMIGUI_STATUSBAR_GLOBAL_MAXLEN	24

#include <gtk/gtk.h>

typedef struct _SwamiguiStatusbar SwamiguiStatusbar;
typedef struct _SwamiguiStatusbarClass SwamiguiStatusbarClass;

#define SWAMIGUI_TYPE_STATUSBAR   (swamigui_statusbar_get_type ())
#define SWAMIGUI_STATUSBAR(obj) \
  (GTK_CHECK_CAST ((obj), SWAMIGUI_TYPE_STATUSBAR, SwamiguiStatusbar))
#define SWAMIGUI_STATUSBAR_CLASS(klass) \
  (GTK_CHECK_CLASS_CAST ((klass), SWAMIGUI_TYPE_STATUSBAR, \
   SwamiguiStatusbarClass))
#define SWAMIGUI_IS_STATUSBAR(obj) \
  (GTK_CHECK_TYPE ((obj), SWAMIGUI_TYPE_STATUSBAR))
#define SWAMIGUI_IS_STATUSBAR_CLASS(klass) \
  (GTK_CHECK_CLASS_TYPE ((klass), SWAMIGUI_TYPE_STATUSBAR))

/* Statusbar widget */
struct _SwamiguiStatusbar
{
  GtkFrame parent;

  /*< private >*/
  GtkWidget *box;	/* the hbox within the statusbar frame */
  GList *items;		/* active items (see StatusItem in .c) */
  guint id_counter;	/* unique status item ID counter */
  int default_timeout;	/* default timeout value in msecs */
};

/* Statusbar widget class */
struct _SwamiguiStatusbarClass
{
  GtkFrameClass parent_class;
};

/**
 * SwamiguiStatusbarCloseFunc:
 * @statusbar: The status bar widget
 * @widg: The message widget
 *
 * Callback function prototype which gets called when a close button on a
 * progress status bar item gets activated.
 *
 * Returns: Should return %TRUE to remove the item from the status bar, %FALSE
 *   to keep it (useful if a confirmation dialog is popped for the user, etc).
 */
typedef gboolean (*SwamiguiStatusbarCloseFunc)(SwamiguiStatusbar *statusbar,
					       GtkWidget *widg);

typedef enum
{
  SWAMIGUI_STATUSBAR_POS_LEFT,
  SWAMIGUI_STATUSBAR_POS_RIGHT
} SwamiguiStatusbarPos;

/* some special timeout values for statusbar messages */
typedef enum
{
  SWAMIGUI_STATUSBAR_TIMEOUT_DEFAULT = -1,  /* uses "default-timeout" property */
  SWAMIGUI_STATUSBAR_TIMEOUT_FOREVER = 0    /* don't timeout */
} SwamiguiStatusbarTimeout;

GType swamigui_statusbar_get_type (void);
GtkWidget *swamigui_statusbar_new (void);
guint swamigui_statusbar_add (SwamiguiStatusbar *statusbar, const char *group,
			      int timeout, guint pos, GtkWidget *widg);
void swamigui_statusbar_remove (SwamiguiStatusbar *statusbar, guint id,
				const char *group);
void swamigui_statusbar_printf (SwamiguiStatusbar *statusbar, const char *format,
				...) G_GNUC_PRINTF (2, 3);
GtkWidget *swamigui_statusbar_msg_label_new (const char *label, guint maxlen);
GtkWidget *swamigui_statusbar_msg_progress_new (const char *label,
					        SwamiguiStatusbarCloseFunc close);

void swamigui_statusbar_msg_set_timeout (SwamiguiStatusbar *statusbar, guint id,
					 const char *group, int timeout);
void swamigui_statusbar_msg_set_label (SwamiguiStatusbar *statusbar,
				       guint id, const char *group,
				       const char *label);
void swamigui_statusbar_msg_set_progress (SwamiguiStatusbar *statusbar,
					  guint id, const char *group, double val);

#endif