diff options
author | Perberos <[email protected]> | 2011-11-14 18:24:48 -0300 |
---|---|---|
committer | Perberos <[email protected]> | 2011-11-14 18:24:48 -0300 |
commit | 312ba610a1e98fc656fb58178227d7d45a64494e (patch) | |
tree | 54a3c2b6084c80e63fb0526c6e7b8e01627acbd7 /charpick/charpick.h | |
download | mate-applets-312ba610a1e98fc656fb58178227d7d45a64494e.tar.bz2 mate-applets-312ba610a1e98fc656fb58178227d7d45a64494e.tar.xz |
initial
Diffstat (limited to 'charpick/charpick.h')
-rw-r--r-- | charpick/charpick.h | 60 |
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); + |