This file is indexed.

/usr/include/libawn/awn-applet.h is in libawn-dev 0.4.1~bzr830-2ubuntu1.

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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
/*
 *  Copyright (C) 2007 Neil Jagdish Patel <njpatel@gmail.com>
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2 of the License, or (at your option) any later version.
 *
 * This library 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
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 *
 *  Author : Neil Jagdish Patel <njpatel@gmail.com>
*/

#ifndef __AWN_APPLET_H__
#define __AWN_APPLET_H__

#include <gtk/gtk.h>

#include "awn-defines.h"

G_BEGIN_DECLS

#define AWN_TYPE_APPLET (awn_applet_get_type ())

#define AWN_APPLET(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), AWN_TYPE_APPLET,\
        AwnApplet))

#define AWN_APPLET_CLASS(obj)	(G_TYPE_CHECK_CLASS_CAST ((obj), \
        AWN_TYPE_APPLET, AwnAppletClass))
                                
#define AWN_IS_APPLET(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AWN_TYPE_APPLET))

#define AWN_IS_APPLET_CLASS(obj) (G_TYPE_CHECK_CLASS_TYPE ((obj), \
        AWN_TYPE_APPLET))

#define AWN_APPLET_GET_CLASS(obj)	(G_TYPE_INSTANCE_GET_CLASS ((obj), \
        AWN_TYPE_APPLET, AwnAppletClass))

typedef struct _AwnApplet AwnApplet;
typedef struct _AwnAppletClass AwnAppletClass;
typedef struct _AwnAppletPrivate AwnAppletPrivate;

struct _AwnApplet
{
  GtkPlug parent;

  /*< private >*/
  AwnAppletPrivate *priv;
};

struct _AwnAppletClass
{
  GtkPlugClass parent_class;

  void (*position_changed) (AwnApplet *applet, GtkPositionType position);
  void (*offset_changed)   (AwnApplet *applet, gint offset);
  void (*size_changed)     (AwnApplet *applet, gint size);
  void (*deleted)          (AwnApplet *applet);
  void (*menu_creation)    (AwnApplet *applet, GtkMenu *menu);
  void (*flags_changed)    (AwnApplet *applet, AwnAppletFlags flags);
  void (*panel_configure)  (AwnApplet *applet, GdkEventConfigure *event);
  void (*origin_changed)   (AwnApplet *applet, GdkRectangle *rect);

  void (*_applet0) (void);
  void (*_applet1) (void);
  void (*_applet2) (void);
  void (*_applet3) (void);
};


/**
 * AwnAppletInitFunc:
 * @applet: AwnApplet instance created for you.
 *
 * Function prototype used as entry point for applets.
 * Hook to have an #AwnApplet built for you.
 *
 * Returns: return TRUE if applet construction was successful, FALSE otherwise.
 */
typedef gboolean   (*AwnAppletInitFunc)           (AwnApplet   *applet);

/**
 * AwnAppletInitPFunc:
 * @canonical_name: applet's canonical name.
 * @uid: applet's unique ID.
 * @panel_id: ID of AwnPanel associated with this applet.
 *
 * Function prototype used as entry point for applets.
 * Hook to build your own #AwnApplet.
 *
 * Returns: return the constructed #AwnApplet (or its subclass) or NULL.
 */
typedef AwnApplet* (*AwnAppletInitPFunc)          (const gchar *canonical_name,
                                                   const gchar *uid,
                                                   gint         panel_id);

GType              awn_applet_get_type            (void);

AwnApplet *        awn_applet_new                 (const gchar *canonical_name,
                                                   const gchar *uid,
                                                   gint         panel_id);

const gchar*       awn_applet_get_canonical_name  (AwnApplet      *applet);

GtkPositionType    awn_applet_get_pos_type        (AwnApplet      *applet);
void               awn_applet_set_pos_type        (AwnApplet      *applet,
                                                   GtkPositionType position);

AwnPathType        awn_applet_get_path_type       (AwnApplet *applet);
void               awn_applet_set_path_type       (AwnApplet *applet,
                                                   AwnPathType path);

gint               awn_applet_get_offset          (AwnApplet      *applet);
gint               awn_applet_get_offset_at       (AwnApplet      *applet,
                                                   gint           x,
                                                   gint           y);
void               awn_applet_set_offset          (AwnApplet      *applet,
                                                   gint           offset);

gint               awn_applet_get_size            (AwnApplet      *applet);
void               awn_applet_set_size            (AwnApplet      *applet,
                                                   gint           size);

const gchar *      awn_applet_get_uid             (AwnApplet      *applet);
void               awn_applet_set_uid             (AwnApplet      *applet,
                                                   const gchar    *uid);

AwnAppletFlags     awn_applet_get_behavior        (AwnApplet      *applet);
void               awn_applet_set_behavior        (AwnApplet      *applet,
                                                   AwnAppletFlags  flags);

GtkWidget*         awn_applet_create_default_menu (AwnApplet      *applet);

guint              awn_applet_inhibit_autohide    (AwnApplet *applet,
                                                   const gchar *reason);
void               awn_applet_uninhibit_autohide  (AwnApplet *applet,
                                                   guint cookie);

GdkNativeWindow    awn_applet_docklet_request     (AwnApplet *applet,
                                                   gint min_size,
                                                   gboolean shrink,
                                                   gboolean expand);
/*
 * Returns a gtk menu item for the "Dock Preferences".
 * Note: awn_applet_create_default_menu() adds this item to its menu.  
 * This function should only be used in cases where 
 * awn_applet_create_default_menu() cannot be used 
 */
GtkWidget *        awn_applet_create_pref_item    (void);
GtkWidget *        awn_applet_create_about_item   (AwnApplet *applet,
                                                   const gchar       *copyright,
                                                   AwnAppletLicense   license,
                                                   const gchar       *version,
                                                   const gchar       *comments,
                                                   const gchar       *website,
                                                   const gchar       *website_label,
                                                   const gchar       *icon_name,
                                                   const gchar       *translator_credits,
                                                   const gchar      **authors,
                                                   const gchar      **artists,
                                                   const gchar      **documenters);

GtkWidget *        awn_applet_create_about_item_simple (AwnApplet        *applet,
                                                        const gchar      *copyright,
                                                        AwnAppletLicense  license,
                                                        const gchar      *version);

void               awn_applet_popup_gtk_menu  (AwnApplet *applet,
                                               GtkWidget *menu,
                                               guint      button,
                                               guint32    activate_time);

G_END_DECLS

#endif