diff options
author | Shaun McCance <shaunm@gnome.org> | 2010-08-10 12:03:39 -0400 |
---|---|---|
committer | Shaun McCance <shaunm@gnome.org> | 2010-08-10 12:03:39 -0400 |
commit | c799c996a8a679631d45c0a08e8a7c8d73e279e5 (patch) | |
tree | 5f2688e243fcea17802ebbb8eb726b25db54adff /libyelp/yelp-settings.c | |
parent | 089eb3a88501b1ad420f3fe137b2ee223e5d827e (diff) | |
download | yelp-c799c996a8a679631d45c0a08e8a7c8d73e279e5.tar.gz |
[libyelp] Show bookmarks in location entry with YelpBookmarks
The bookmarks are managed by the application, not libyelp, so we need a way for
the application to tell libyelp about bookmarks. Add a YelpBookmarks interface,
which is implemented by YelpApplication. Then we can pass a YelpBookmarks to
any libyelp class that needs it.
Still need to hook up the bookmarks-changed signal and do something useful when
the bookmark-new icon is clicked.
Diffstat (limited to 'libyelp/yelp-settings.c')
-rw-r--r-- | libyelp/yelp-settings.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libyelp/yelp-settings.c b/libyelp/yelp-settings.c index 478b3780..69a474da 100644 --- a/libyelp/yelp-settings.c +++ b/libyelp/yelp-settings.c @@ -48,6 +48,8 @@ struct _YelpSettingsPriv { gboolean show_text_cursor; gboolean editor_mode; + + GHashTable *bookmarks; }; enum { @@ -227,6 +229,9 @@ yelp_settings_init (YelpSettings *settings) settings->priv->setfonts[i] = NULL; settings->priv->fonts[i] = NULL; } + + settings->priv->bookmarks = g_hash_table_new_full (g_str_hash, g_str_equal, + g_free, NULL); } static void |