e1f62329f1
The 'browser' struct is superseded by MidoriBrowser, which actually represents a window that holds pages, i.e. tabs. The tabs are currently of the type MidoriWebView, which is a slightly enhanced WebView. Also MidoriWebSettings is introduced to hold additional settings that Midori needs. The other two new classes are MidoriTrash, representing closed tabs and windows and MidoriPanel, representing the side panel. The refactoring allows for several features to be much more easily implemented, such as full support for multiple windows and instant saving of modified files, such as bookmarks or the session. Regressions are expected and not everything is done yet.
42 lines
825 B
C
42 lines
825 B
C
/*
|
|
Copyright (C) 2007 Christian Dywan <christian@twotoasts.de>
|
|
|
|
This library is free software; you can redistribute it and/or
|
|
modify it under the terms of the GNU Lesser General Public
|
|
License as published by the Free Software Foundation; either
|
|
version 2.1 of the License, or (at your option) any later version.
|
|
|
|
See the file COPYING for the full license text.
|
|
*/
|
|
|
|
#ifndef __PREFS_H__
|
|
#define __PREFS_H__ 1
|
|
|
|
#include "midori-browser.h"
|
|
|
|
#include <gtk/gtk.h>
|
|
|
|
// -- Types
|
|
|
|
typedef struct
|
|
{
|
|
MidoriBrowser* browser;
|
|
GtkWidget* userStylesheetUri;
|
|
GtkWidget* treeview;
|
|
GtkWidget* combobox;
|
|
GtkWidget* add;
|
|
} CPrefs;
|
|
|
|
enum
|
|
{
|
|
PROTOCOLS_COL_NAME,
|
|
PROTOCOLS_COL_COMMAND,
|
|
PROTOCOLS_COL_N
|
|
};
|
|
|
|
// -- Declarations
|
|
|
|
GtkWidget*
|
|
prefs_preferences_dialog_new(MidoriBrowser*);
|
|
|
|
#endif /* !__PREFS_H__ */
|