This file is indexed.

/usr/include/bakery-2.6/bakery/Utilities/BusyCursor.h is in libbakery-2.6-dev 2.6.3-0ubuntu1.

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
/*
 * Copyright 2000 Murray Cumming
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Library 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
 * Library General Public License for more details.
 *
 * You should have received a copy of the GNU Library General Public
 * License along with this library; if not, write to the Free
 * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 */

#ifndef BAKERY_UTILITIES_BUSYCURSOR_H
#define BAKERY_UTILITIES_BUSYCURSOR_H

#include <gtkmm/window.h>
#include <gdkmm/cursor.h>
#include <map>

namespace Bakery
{

/** Changes the cursor for as long as this instance lives.
 * For instance, put it at the start of code in a { and } block.
 */ 
class BusyCursor
{
public:
  /** Associate a busy cursor with the window, for the lifetime of this object.
   */
  BusyCursor(Gtk::Window& window, Gdk::CursorType cursor_type = Gdk::WATCH);

  /**  Associate a busy cursor with the window, for the lifetime of this object, if window is not 0.
   */
  BusyCursor(Gtk::Window* window, Gdk::CursorType cursor_type = Gdk::WATCH);

  virtual ~BusyCursor();

protected:

  void init();
  void force_gui_update();

  Gdk::Cursor m_Cursor;
  Gtk::Window* m_pWindow;
  Glib::RefPtr<Gdk::Window> m_refWindow;

  typedef std::map<Gtk::Window*, Gdk::Cursor> type_map_cursors;
  static type_map_cursors m_map_cursors;
  Gdk::Cursor m_old_cursor;
  bool m_old_cursor_valid;
};

} //namespace Bakery

#endif //BAKERY_UTILITIES_BUSYCURSOR_H