/usr/include/claws-mail/gtk/gtksctree.h is in libclaws-mail-dev 3.13.2-1ubuntu1.
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 | /* Mail Summary tree widget for Claws Mail */
#ifndef __GTK_SCTREE_H__
#define __GTK_SCTREE_H__
#include <gtk/gtk.h>
#include "gtk/gtkcmctree.h"
/* This code is based on "gtkflist.{h,c}" from mc-4.5.42 .*/
#define TYPE_GTK_SCTREE (gtk_sctree_get_type ())
#define GTK_SCTREE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_GTK_SCTREE, GtkSCTree))
#define GTK_SCTREE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_GTK_SCTREE, GtkSCTreeClass))
#define GTK_IS_SCTREE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_GTK_SCTREE))
#define GTK_IS_SCTREE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_GTK_SCTREE))
typedef struct _GtkSCTree GtkSCTree;
typedef struct _GtkSCTreeClass GtkSCTreeClass;
struct _GtkSCTree {
GtkCMCTree ctree;
/* The anchor row for range selections */
GtkCMCTreeNode *anchor_row;
/* Mouse button and position saved on button press */
gint dnd_press_button;
gint dnd_press_x, dnd_press_y;
/* Delayed selection information */
gint dnd_select_pending;
guint dnd_select_pending_state;
gint dnd_select_pending_row;
gint selecting_range;
gboolean sorting;
/* (dis)allow fancy color stripes */
gboolean show_stripes;
gboolean always_expand_recursively;
gboolean force_additive_sel;
gboolean *use_markup;
};
struct _GtkSCTreeClass {
GtkCMCTreeClass parent_class;
/* Signal: invoke the popup menu for rows */
void (* row_popup_menu) (GtkSCTree *sctree, GdkEventButton *event);
/* Signal: invoke the popup menu for empty areas */
void (* empty_popup_menu) (GtkSCTree *sctree, GdkEventButton *event);
/* Signal: open the file in the selected row */
void (* open_row) (GtkSCTree *sctree);
/* Signal: initiate a drag and drop operation */
void (* start_drag) (GtkSCTree *sctree, gint button, GdkEvent *event);
};
GType gtk_sctree_get_type (void);
GtkWidget *gtk_sctree_new_with_titles (gint columns,
gint tree_column,
gchar *titles[]);
void gtk_sctree_select (GtkSCTree *sctree,
GtkCMCTreeNode *node);
void gtk_sctree_select_with_state (GtkSCTree *sctree,
GtkCMCTreeNode *node,
int state);
void gtk_sctree_unselect_all (GtkSCTree *sctree);
void gtk_sctree_set_anchor_row (GtkSCTree *sctree,
GtkCMCTreeNode *node);
void gtk_sctree_remove_node (GtkSCTree *sctree,
GtkCMCTreeNode *node);
void gtk_sctree_set_stripes(GtkSCTree *sctree, gboolean show_stripes);
void gtk_sctree_set_recursive_expand(GtkSCTree *sctree, gboolean rec_exp);
/***********************************************************
* Tree sorting functions *
***********************************************************/
void gtk_sctree_sort_node (GtkCMCTree *ctree, GtkCMCTreeNode *node);
void gtk_sctree_sort_recursive (GtkCMCTree *ctree, GtkCMCTreeNode *node);
GtkCMCTreeNode* gtk_sctree_insert_node (GtkCMCTree *ctree,
GtkCMCTreeNode *parent,
GtkCMCTreeNode *sibling,
gchar *text[],
guint8 spacing,
GdkPixbuf *pixbuf_closed,
GdkPixbuf *pixbuf_opened,
gboolean is_leaf,
gboolean expanded);
void gtk_sctree_set_node_info (GtkCMCTree *ctree,
GtkCMCTreeNode *node,
const gchar *text,
guint8 spacing,
GdkPixbuf *pixbuf_closed,
GdkPixbuf *pixbuf_opened,
gboolean is_leaf,
gboolean expanded);
GtkCMCTreeNode *
gtk_sctree_insert_gnode (GtkCMCTree *ctree,
GtkCMCTreeNode *parent,
GtkCMCTreeNode *sibling,
GNode *gnode,
GtkCMCTreeGNodeFunc func,
gpointer data);
void gtk_sctree_set_column_tooltip (GtkSCTree *sctree,
int column,
const gchar *tip);
void gtk_sctree_set_use_markup (GtkSCTree *sctree,
int column,
gboolean markup);
gboolean
gtk_sctree_is_hot_spot (GtkSCTree *ctree,
gint x,
gint y);
#endif /* __GTK_SCTREE_H__ */
|