blob: 939556ba29e970a026be9a54f18f57372829f14d (
plain)
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
|
/* charpick.h -- header file for character picker applet */
#include <glib.h>
#include <glib/gi18n.h>
#include <gtk/gtk.h>
#include <gio/gio.h>
#include <mate-panel-applet.h>
#include <mate-panel-applet-gsettings.h>
#define NO_LAST_INDEX -1
typedef struct _charpick_data charpick_data;
/* this type has basically all data for this program */
struct _charpick_data {
GList *chartable;
gchar * charlist;
gunichar selected_unichar;
gint last_index;
GtkWidget *box;
GtkWidget *frame;
GtkWidget *applet;
GtkToggleButton *last_toggle_button;
gint panel_size;
gboolean panel_vertical;
GtkWidget *propwindow;
GtkWidget *about_dialog;
GtkWidget *pref_tree;
GtkWidget *menu;
GtkWidget *add_edit_dialog;
GtkWidget *add_edit_entry;
GSettings *settings;
};
typedef struct _charpick_button_cb_data charpick_button_cb_data;
/* This is the data type for the button callback function. */
struct _charpick_button_cb_data {
gint button_index;
charpick_data * p_curr_data;
};
void start_callback_update(void);
void register_stock_for_edit (void);
void build_table (charpick_data *curr_data);
void add_to_popup_menu (charpick_data *curr_data);
void populate_menu (charpick_data *curr_data);
void save_chartable (charpick_data *curr_data);
void show_preferences_dialog (GtkAction *action,
charpick_data *curr_data);
void add_edit_dialog_create (charpick_data *curr_data,
gchar *string,
gchar *title);
void set_atk_name_description (GtkWidget *widget,
const char *name,
const char *description);
gboolean key_writable (MatePanelApplet *applet, const char *key);
|