summaryrefslogtreecommitdiff
path: root/charpick/charpick.h
diff options
context:
space:
mode:
Diffstat (limited to 'charpick/charpick.h')
-rw-r--r--charpick/charpick.h60
1 files changed, 60 insertions, 0 deletions
diff --git a/charpick/charpick.h b/charpick/charpick.h
new file mode 100644
index 00000000..4a945334
--- /dev/null
+++ b/charpick/charpick.h
@@ -0,0 +1,60 @@
+/* charpick.h -- header file for character picker applet */
+
+#include <glib.h>
+#include <glib/gi18n.h>
+#include <gtk/gtk.h>
+#include <mateconf/mateconf-client.h>
+#include <mate-panel-applet.h>
+#include <mate-panel-applet-mateconf.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;
+};
+
+
+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);
+