diff options
Diffstat (limited to 'frontends/gtk/hotlist.c')
-rw-r--r-- | frontends/gtk/hotlist.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/frontends/gtk/hotlist.c b/frontends/gtk/hotlist.c index f64600a5b..6ce9060fb 100644 --- a/frontends/gtk/hotlist.c +++ b/frontends/gtk/hotlist.c @@ -45,7 +45,6 @@ struct nsgtk_hotlist_window { struct nsgtk_corewindow core; GtkBuilder *builder; GtkWindow *wnd; - const char *path; /**< path to users bookmarks */ }; static struct nsgtk_hotlist_window *hotlist_window = NULL; @@ -361,11 +360,8 @@ static nserror nsgtk_hotlist_init(void) return res; } - ncwin->path = nsoption_charp(hotlist_path); - - res = hotlist_init(ncwin->core.cb_table, - (struct core_window *)ncwin, - ncwin->path); + res = hotlist_manager_init(ncwin->core.cb_table, + (struct core_window *)ncwin); if (res != NSERROR_OK) { free(ncwin); return res; @@ -402,7 +398,7 @@ nserror nsgtk_hotlist_destroy(void) return NSERROR_OK; } - res = hotlist_fini(hotlist_window->path); + res = hotlist_fini(nsoption_charp(hotlist_path)); if (res == NSERROR_OK) { res = nsgtk_corewindow_fini(&hotlist_window->core); gtk_widget_destroy(GTK_WIDGET(hotlist_window->wnd)); |