2005-07-25 00:41:51 -07:00
|
|
|
/*
|
2006-05-08 21:57:16 -07:00
|
|
|
* mooaccel.h
|
2005-07-25 00:41:51 -07:00
|
|
|
*
|
2006-02-23 06:03:17 -08:00
|
|
|
* Copyright (C) 2004-2006 by Yevgen Muntyan <muntyan@math.tamu.edu>
|
2005-07-25 00:41:51 -07:00
|
|
|
*
|
|
|
|
* This program 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 2 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* See COPYING file that comes with this distribution.
|
|
|
|
*/
|
|
|
|
|
2006-05-08 21:57:16 -07:00
|
|
|
#ifndef __MOOACCEL_H__
|
|
|
|
#define __MOOACCEL_H__
|
2005-07-25 00:41:51 -07:00
|
|
|
|
2006-05-08 21:57:16 -07:00
|
|
|
#include <gtk/gtkactiongroup.h>
|
2005-07-25 00:41:51 -07:00
|
|
|
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
|
|
|
|
|
2006-05-08 21:57:16 -07:00
|
|
|
void _moo_prefs_set_accel (const char *accel_path,
|
2005-07-25 00:41:51 -07:00
|
|
|
const char *accel);
|
2006-05-08 21:57:16 -07:00
|
|
|
const char *_moo_prefs_get_accel (const char *accel_path);
|
2005-07-25 00:41:51 -07:00
|
|
|
|
2006-05-08 21:57:16 -07:00
|
|
|
void _moo_set_accel (const char *accel_path,
|
2005-07-25 00:41:51 -07:00
|
|
|
const char *accel);
|
2006-05-08 21:57:16 -07:00
|
|
|
const char *_moo_get_accel (const char *accel_path);
|
|
|
|
void _moo_set_default_accel (const char *accel_path,
|
2005-07-25 00:41:51 -07:00
|
|
|
const char *accel);
|
2006-05-08 21:57:16 -07:00
|
|
|
const char *_moo_get_default_accel (const char *accel_path);
|
2005-07-25 00:41:51 -07:00
|
|
|
|
2006-05-08 21:57:16 -07:00
|
|
|
char *_moo_get_accel_label (const char *accel);
|
|
|
|
char *_moo_get_accel_label_by_path (const char *accel_path);
|
2005-10-13 07:08:18 -07:00
|
|
|
|
2006-05-08 21:57:16 -07:00
|
|
|
gboolean _moo_accel_parse (const char *accel,
|
2006-04-19 23:03:39 -07:00
|
|
|
guint *key,
|
|
|
|
GdkModifierType *mods);
|
2006-05-08 21:57:16 -07:00
|
|
|
char *_moo_accel_normalize (const char *accel);
|
2005-10-13 07:08:18 -07:00
|
|
|
|
2006-05-08 21:57:16 -07:00
|
|
|
void _moo_accel_label_set_action (GtkWidget *label,
|
|
|
|
GtkAction *action);
|
2005-10-13 07:08:18 -07:00
|
|
|
|
|
|
|
|
2006-05-08 21:57:16 -07:00
|
|
|
GtkWidget *_moo_accel_prefs_page_new (GtkActionGroup *group);
|
|
|
|
GtkWidget *_moo_accel_prefs_dialog_new (GtkActionGroup *group);
|
|
|
|
void _moo_accel_prefs_dialog_run (GtkActionGroup *group,
|
2005-10-13 07:08:18 -07:00
|
|
|
GtkWidget *parent);
|
2005-07-25 00:41:51 -07:00
|
|
|
|
|
|
|
|
|
|
|
G_END_DECLS
|
|
|
|
|
2006-05-08 21:57:16 -07:00
|
|
|
#endif /* __MOOACCEL_H__ */
|