Avoid sslcert_get_tree_flags.

This commit is contained in:
Michael Drake 2013-08-13 13:48:53 +01:00
parent bf11033987
commit 4a01ef9e7a
5 changed files with 4 additions and 8 deletions

View File

@ -32,7 +32,7 @@ void gui_cert_verify(nsurl *url,
certs, &data);
ssl_current_session = data;
ssl_window = ami_tree_create(sslcert_get_tree_flags(), data);
ssl_window = ami_tree_create(TREE_SSLCERT, data);
if(!ssl_window) return;
ami_tree_open(ssl_window, AMI_TREE_SSLCERT);

View File

@ -18,7 +18,6 @@
#ifndef AMIGA_SSLCERT_H
#define AMIGA_SSLCERT_H
#include "desktop/sslcert.h"
void ami_ssl_free(struct treeview_window *twin);
#endif

View File

@ -24,7 +24,6 @@
#include "amiga/os3support.h"
#include "amiga/gui.h"
#include "desktop/tree.h"
#include "desktop/sslcert.h"
/* defined in front end code */
extern const char tree_directory_icon_name[];

View File

@ -53,7 +53,6 @@
#include "desktop/save_complete.h"
#include "desktop/save_pdf/pdf_plotters.h"
#include "desktop/searchweb.h"
#include "desktop/sslcert.h"
#include "desktop/sslcert_viewer.h"
#include "desktop/textinput.h"
#include "desktop/tree.h"
@ -793,8 +792,8 @@ void gui_cert_verify(nsurl *url, const struct ssl_cert_info *certs,
scrolled = GTK_SCROLLED_WINDOW(gtk_builder_get_object(builder, "SSLScrolled"));
drawing_area = GTK_DRAWING_AREA(gtk_builder_get_object(builder, "SSLDrawingArea"));
ssl_window = nsgtk_treeview_create(sslcert_get_tree_flags(),
window, scrolled, drawing_area);
ssl_window = nsgtk_treeview_create(TREE_SSLCERT, window, scrolled,
drawing_area);
if (ssl_window == NULL)
return;

View File

@ -33,7 +33,6 @@
#include "content/fetch.h"
#include "content/urldb.h"
#include "desktop/browser.h"
#include "desktop/sslcert.h"
#include "desktop/sslcert_viewer.h"
#include "desktop/gui.h"
#include "desktop/tree.h"
@ -152,7 +151,7 @@ void gui_cert_verify(nsurl *url,
ssl_current_session = sslcert_window->data;
sslcert_window->tv = ro_treeview_create(sslcert_window->pane,
NULL, NULL, sslcert_get_tree_flags());
NULL, NULL, TREE_SSLCERT);
if (sslcert_window->tv == NULL) {
LOG(("Failed to allocate treeview"));
free(sslcert_window);