diff options
author | Shaun McCance <shaunm@src.gnome.org> | 2005-08-29 15:45:12 +0000 |
---|---|---|
committer | Shaun McCance <shaunm@src.gnome.org> | 2005-08-29 15:45:12 +0000 |
commit | 1d8e51f8445ee7d7d448c59eccbc192042a29145 (patch) | |
tree | 8adf5299703939a19d319a8af78eca613eae3214 | |
parent | 875ee424df561ec9e395472075336d7285271fb4 (diff) | |
download | yelp-1d8e51f8445ee7d7d448c59eccbc192042a29145.tar.gz |
- Enabled F7 keybinding, as per #157941
* data/ui/yelp-ui.xml:
* src/yelp-window.c:
- Enabled F7 keybinding, as per #157941
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | data/ui/yelp-ui.xml | 1 | ||||
-rw-r--r-- | src/yelp-window.c | 22 |
3 files changed, 29 insertions, 0 deletions
@@ -1,3 +1,9 @@ +2005-08-29 Shaun McCance <shaunm@gnome.org> + + * data/ui/yelp-ui.xml: + * src/yelp-window.c: + - Enabled F7 keybinding, as per #157941 + 2005-08-24 Shaun McCance <shaunm@gnome.org> * src/yelp-xslt-pager.c: diff --git a/data/ui/yelp-ui.xml b/data/ui/yelp-ui.xml index 5011afe2..c3533bd9 100644 --- a/data/ui/yelp-ui.xml +++ b/data/ui/yelp-ui.xml @@ -51,4 +51,5 @@ </popup> <accelerator action="OpenLocation"/> <accelerator action="Reload"/> + <accelerator action="TextCursor"/> </ui> diff --git a/src/yelp-window.c b/src/yelp-window.c index 9783b4a4..1e50f401 100644 --- a/src/yelp-window.c +++ b/src/yelp-window.c @@ -162,6 +162,7 @@ static void window_select_all_cb (GtkAction *action, YelpWindow *window); static void window_find_cb (GtkAction *action, YelpWindow *window); static void window_preferences_cb (GtkAction *action, YelpWindow *window); static void window_reload_cb (GtkAction *action, YelpWindow *window); +static void window_enable_cursor_cb (GtkAction *action, YelpWindow *window); static void window_go_back_cb (GtkAction *action, YelpWindow *window); static void window_go_forward_cb (GtkAction *action, YelpWindow *window); static void window_go_home_cb (GtkAction *action, YelpWindow *window); @@ -337,6 +338,12 @@ static const GtkActionEntry entries[] = { NULL, G_CALLBACK (window_reload_cb) }, + { "TextCursor", NULL, + NULL, + "F7", + NULL, + G_CALLBACK (window_enable_cursor_cb) }, + { "GoBack", GTK_STOCK_GO_BACK, N_("_Back"), "<Alt>Left", @@ -1984,6 +1991,21 @@ window_reload_cb (GtkAction *action, YelpWindow *window) } } +static void +window_enable_cursor_cb (GtkAction *action, YelpWindow *window) +{ + gboolean cursor; + GConfClient *gconf_client = gconf_client_get_default (); + + cursor = gconf_client_get_bool (gconf_client, + "/apps/yelp/use_caret", + NULL); + gconf_client_set_bool (gconf_client, + "/apps/yelp/use_caret", + !cursor, + NULL); +} + static gboolean window_load_async (YelpLoadData *data) { |