/usr/include/libanjuta-3.0/libanjuta/anjuta-command-bar.h is in libanjuta-dev 2:3.4.0-1.
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 | /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 4; tab-width: 4 -*- */
/*
* git-shell-test
* Copyright (C) James Liggett 2009 <jrliggett@cox.net>
*
* git-shell-test 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, either version 3 of the License, or
* (at your option) any later version.
*
* git-shell-test 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, see <http://www.gnu.org/licenses/>.
*/
#ifndef _ANJUTA_COMMAND_BAR_H_
#define _ANJUTA_COMMAND_BAR_H_
#include <glib-object.h>
#include <gtk/gtk.h>
#include <glib/gi18n.h>
G_BEGIN_DECLS
#define ANJUTA_TYPE_COMMAND_BAR (anjuta_command_bar_get_type ())
#define ANJUTA_COMMAND_BAR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), ANJUTA_TYPE_COMMAND_BAR, AnjutaCommandBar))
#define ANJUTA_COMMAND_BAR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), ANJUTA_TYPE_COMMAND_BAR, AnjutaCommandBarClass))
#define ANJUTA_IS_COMMAND_BAR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), ANJUTA_TYPE_COMMAND_BAR))
#define ANJUTA_IS_COMMAND_BAR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), ANJUTA_TYPE_COMMAND_BAR))
#define ANJUTA_COMMAND_BAR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), ANJUTA_TYPE_COMMAND_BAR, AnjutaCommandBarClass))
typedef struct _AnjutaCommandBarClass AnjutaCommandBarClass;
typedef struct _AnjutaCommandBar AnjutaCommandBar;
typedef struct _AnjutaCommandBarPriv AnjutaCommandBarPriv;
/**
* AnjutaCommandBarEntryType:
* @ANJUTA_COMMAND_BAR_ENTRY_FRAME: This entry should create a frame in the
* action bar. The entry's action name and
* callback are ignored.
* @ANJUTA_COMMAND_BAR_ENTRY_BUTTON: This entry adds a button to the action bar,
* either to the last frame to appear in the
* entry list before this entry, or to the top
* of the bar if no frames were previously
* added.
*
* Specifies if the entry corresponds to a frame or a button.
* Buttons are added to the last frame that appears before the button entry
*/
typedef enum
{
ANJUTA_COMMAND_BAR_ENTRY_FRAME,
ANJUTA_COMMAND_BAR_ENTRY_BUTTON
} AnjutaCommandBarEntryType;
/**
* AnjutaCommandBarEntry:
* @type: The type of action
* @action_name: The name of the action for this entry
* @label: The display label for this entry
* @stock_icon: The stock icon to display for this entry
* @callback: Function to call when this entry's action is activated
*
* AnjutaCommandBarEntry is used to add a set of frames and actions to a command
* bar.
*/
typedef struct
{
AnjutaCommandBarEntryType type;
const gchar *action_name;
const gchar *label;
const gchar *tooltip;
const gchar *stock_icon;
GCallback callback;
} AnjutaCommandBarEntry;
struct _AnjutaCommandBarClass
{
GtkNotebookClass parent_class;
};
struct _AnjutaCommandBar
{
GtkNotebook parent_instance;
AnjutaCommandBarPriv *priv;
};
GType anjuta_command_bar_get_type (void) G_GNUC_CONST;
GtkWidget *anjuta_command_bar_new (void);
void anjuta_command_bar_add_action_group (AnjutaCommandBar *self,
const gchar *group_name,
const AnjutaCommandBarEntry *entries,
int num_entries,
gpointer user_data);
void anjuta_command_bar_remove_action_group (AnjutaCommandBar *self,
const gchar *group_name);
void anjuta_command_bar_show_action_group (AnjutaCommandBar *self,
const gchar *group_name);
GtkActionGroup *anjuta_command_bar_get_action_group (AnjutaCommandBar *self,
const gchar *group_name);
GtkAction *anjuta_command_bar_get_action (AnjutaCommandBar *self,
const gchar *group_name,
const gchar *action_name);
G_END_DECLS
#endif /* _ANJUTA_COMMAND_BAR_H_ */
|