mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-11-26 16:29:36 +03:00
[project @ 2005-12-19 22:50:23 by bursa]
Add headers and get rid of all externs in .c files. svn path=/import/netsurf/; revision=1901
This commit is contained in:
parent
ad13eb98af
commit
10291d72b3
@ -16,15 +16,13 @@
|
||||
#include <stdio.h>
|
||||
#include <gtk/gtk.h>
|
||||
#include "netsurf/css/css.h"
|
||||
#include "netsurf/gtk/font_pango.h"
|
||||
#include "netsurf/gtk/gtk_window.h"
|
||||
#include "netsurf/render/font.h"
|
||||
#include "netsurf/utils/utils.h"
|
||||
#include "netsurf/utils/log.h"
|
||||
|
||||
|
||||
extern GdkDrawable *current_drawable;
|
||||
extern GdkGC *current_gc;
|
||||
|
||||
|
||||
static PangoFontDescription *nsfont_style_to_description(
|
||||
const struct css_style *style);
|
||||
|
||||
|
20
gtk/font_pango.h
Normal file
20
gtk/font_pango.h
Normal file
@ -0,0 +1,20 @@
|
||||
/*
|
||||
* This file is part of NetSurf, http://netsurf.sourceforge.net/
|
||||
* Licensed under the GNU General Public License,
|
||||
* http://www.opensource.org/licenses/gpl-license
|
||||
* Copyright 2005 James Bursa <bursa@users.sourceforge.net>
|
||||
*/
|
||||
|
||||
/** \file
|
||||
* Font handling (GTK interface).
|
||||
*/
|
||||
|
||||
#include <stdbool.h>
|
||||
|
||||
|
||||
struct css_style;
|
||||
|
||||
bool nsfont_paint(const struct css_style *style,
|
||||
const char *string, size_t length,
|
||||
int x, int y, colour c);
|
||||
|
@ -17,13 +17,10 @@
|
||||
#include <gdk/gdk.h>
|
||||
#include <gdk-pixbuf/gdk-pixbuf.h>
|
||||
#include "netsurf/content/content.h"
|
||||
#include "netsurf/gtk/gtk_window.h"
|
||||
#include "netsurf/image/bitmap.h"
|
||||
|
||||
|
||||
extern GdkDrawable *current_drawable;
|
||||
extern GdkGC *current_gc;
|
||||
|
||||
|
||||
struct bitmap;
|
||||
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
* This file is part of NetSurf, http://netsurf.sourceforge.net/
|
||||
* Licensed under the GNU General Public License,
|
||||
* http://www.opensource.org/licenses/gpl-license
|
||||
* Copyright 2004 James Bursa <bursa@users.sourceforge.net>
|
||||
* Copyright 2005 James Bursa <bursa@users.sourceforge.net>
|
||||
*/
|
||||
|
||||
#define _GNU_SOURCE /* for strndup */
|
||||
@ -21,6 +21,7 @@
|
||||
#include "netsurf/desktop/gui.h"
|
||||
#include "netsurf/desktop/netsurf.h"
|
||||
#include "netsurf/desktop/options.h"
|
||||
#include "netsurf/gtk/gtk_gui.h"
|
||||
#include "netsurf/render/box.h"
|
||||
#include "netsurf/render/form.h"
|
||||
#include "netsurf/render/html.h"
|
||||
|
12
gtk/gtk_gui.h
Normal file
12
gtk/gtk_gui.h
Normal file
@ -0,0 +1,12 @@
|
||||
/*
|
||||
* This file is part of NetSurf, http://netsurf.sourceforge.net/
|
||||
* Licensed under the GNU General Public License,
|
||||
* http://www.opensource.org/licenses/gpl-license
|
||||
* Copyright 2005 James Bursa <bursa@users.sourceforge.net>
|
||||
*/
|
||||
|
||||
#include <stdbool.h>
|
||||
|
||||
|
||||
extern bool gui_in_multitask;
|
||||
|
@ -2,7 +2,7 @@
|
||||
* This file is part of NetSurf, http://netsurf.sourceforge.net/
|
||||
* Licensed under the GNU General Public License,
|
||||
* http://www.opensource.org/licenses/gpl-license
|
||||
* Copyright 2004 James Bursa <bursa@users.sourceforge.net>
|
||||
* Copyright 2005 James Bursa <bursa@users.sourceforge.net>
|
||||
*/
|
||||
|
||||
/** \file
|
||||
@ -12,15 +12,13 @@
|
||||
#include <gdk/gdk.h>
|
||||
#include <gtk/gtk.h>
|
||||
#include "netsurf/desktop/plotters.h"
|
||||
#include "netsurf/gtk/font_pango.h"
|
||||
#include "netsurf/gtk/gtk_plotters.h"
|
||||
#include "netsurf/gtk/gtk_window.h"
|
||||
#include "netsurf/render/font.h"
|
||||
#include "netsurf/utils/log.h"
|
||||
|
||||
|
||||
extern GtkWidget *current_widget;
|
||||
extern GdkDrawable *current_drawable;
|
||||
extern GdkGC *current_gc;
|
||||
|
||||
|
||||
static bool nsgtk_plot_clg(colour c);
|
||||
static bool nsgtk_plot_rectangle(int x0, int y0, int width, int height,
|
||||
int line_width, colour c, bool dotted, bool dashed);
|
||||
|
15
gtk/gtk_plotters.h
Normal file
15
gtk/gtk_plotters.h
Normal file
@ -0,0 +1,15 @@
|
||||
/*
|
||||
* This file is part of NetSurf, http://netsurf.sourceforge.net/
|
||||
* Licensed under the GNU General Public License,
|
||||
* http://www.opensource.org/licenses/gpl-license
|
||||
* Copyright 2005 James Bursa <bursa@users.sourceforge.net>
|
||||
*/
|
||||
|
||||
/** \file
|
||||
* Target independent plotting (GDK / GTK+ interface).
|
||||
*/
|
||||
|
||||
struct plotter_table;
|
||||
|
||||
const struct plotter_table nsgtk_plotters;
|
||||
|
@ -2,7 +2,7 @@
|
||||
* This file is part of NetSurf, http://netsurf.sourceforge.net/
|
||||
* Licensed under the GNU General Public License,
|
||||
* http://www.opensource.org/licenses/gpl-license
|
||||
* Copyright 2004 James Bursa <bursa@users.sourceforge.net>
|
||||
* Copyright 2005 James Bursa <bursa@users.sourceforge.net>
|
||||
*/
|
||||
|
||||
#include <stdbool.h>
|
||||
@ -16,6 +16,9 @@
|
||||
#include "netsurf/desktop/gui.h"
|
||||
#include "netsurf/desktop/netsurf.h"
|
||||
#include "netsurf/desktop/plotters.h"
|
||||
#include "netsurf/gtk/gtk_gui.h"
|
||||
#include "netsurf/gtk/gtk_plotters.h"
|
||||
#include "netsurf/gtk/gtk_window.h"
|
||||
#include "netsurf/render/box.h"
|
||||
#include "netsurf/render/font.h"
|
||||
#include "netsurf/render/form.h"
|
||||
@ -23,9 +26,6 @@
|
||||
#include "netsurf/utils/utils.h"
|
||||
|
||||
|
||||
extern bool gui_in_multitask;
|
||||
|
||||
|
||||
struct gui_window {
|
||||
GtkWidget *window;
|
||||
GtkWidget *url_bar;
|
||||
@ -163,8 +163,6 @@ void gui_window_destroy_event(GtkWidget *widget, gpointer data)
|
||||
}
|
||||
|
||||
|
||||
extern const struct plotter_table nsgtk_plotters;
|
||||
|
||||
gboolean gui_window_expose_event(GtkWidget *widget,
|
||||
GdkEventExpose *event, gpointer data)
|
||||
{
|
||||
|
14
gtk/gtk_window.h
Normal file
14
gtk/gtk_window.h
Normal file
@ -0,0 +1,14 @@
|
||||
/*
|
||||
* This file is part of NetSurf, http://netsurf.sourceforge.net/
|
||||
* Licensed under the GNU General Public License,
|
||||
* http://www.opensource.org/licenses/gpl-license
|
||||
* Copyright 2005 James Bursa <bursa@users.sourceforge.net>
|
||||
*/
|
||||
|
||||
#include <gtk/gtk.h>
|
||||
|
||||
|
||||
extern GtkWidget *current_widget;
|
||||
extern GdkDrawable *current_drawable;
|
||||
extern GdkGC *current_gc;
|
||||
|
Loading…
Reference in New Issue
Block a user