Commit 63059ce3 authored by Michael Catanzaro's avatar Michael Catanzaro

Standardize modelines

parent 9368c2e2
/* vim: set sw=2 ts=2 sts=2 et: */
/* -*- Mode: C; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/*
* ephy-download.c
......
/* vim: set sw=2 ts=2 sts=2 et: */
/* -*- Mode: C; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/*
* ephy-download.h
......
/* -*- Mode: C; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/*
* Copyright © 2007 Xan Lopez
*
......
/* -*- Mode: C; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2; -*- */
/* vim: set sw=2 ts=2 sts=2 et: */
/* Copyright © 2008 Xan Lopez <xan@gnome.org>
*
* This program is free software; you can redistribute it and/or modify
......
/* -*- Mode: C; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2; -*- */
/* vim: set sw=2 ts=2 sts=2 et: */
/*
* Copyright © 2007 Xan Lopez
* Copyright © 2008 Jan Alonzo
......
/* -*- Mode: C; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* vim: set sw=2 ts=2 sts=2 et: */
/*
* Copyright © 2012 Igalia S.L.
*
......
/* -*- Mode: C; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* vim: set sw=2 ts=2 sts=2 et: */
/*
* Copyright © 2012 Igalia S.L.
*
......
/* -*- Mode: C; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/*
* Copyright © 2004 Tommi Komulainen
* Copyright © 2004, 2005 Christian Persch
......@@ -28,22 +29,22 @@ G_BEGIN_DECLS
G_DECLARE_FINAL_TYPE (EphyFindToolbar, ephy_find_toolbar, EPHY, FIND_TOOLBAR, GtkSearchBar)
EphyFindToolbar *ephy_find_toolbar_new (WebKitWebView *web_view);
EphyFindToolbar *ephy_find_toolbar_new (WebKitWebView *web_view);
const char *ephy_find_toolbar_get_text (EphyFindToolbar *toolbar);
const char *ephy_find_toolbar_get_text (EphyFindToolbar *toolbar);
void ephy_find_toolbar_find_next (EphyFindToolbar *toolbar);
void ephy_find_toolbar_find_next (EphyFindToolbar *toolbar);
void ephy_find_toolbar_find_previous (EphyFindToolbar *toolbar);
void ephy_find_toolbar_find_previous (EphyFindToolbar *toolbar);
void ephy_find_toolbar_open (EphyFindToolbar *toolbar,
gboolean links_only,
gboolean clear_search);
void ephy_find_toolbar_open (EphyFindToolbar *toolbar,
gboolean links_only,
gboolean clear_search);
void ephy_find_toolbar_close (EphyFindToolbar *toolbar);
void ephy_find_toolbar_close (EphyFindToolbar *toolbar);
void ephy_find_toolbar_request_close (EphyFindToolbar *toolbar);
void ephy_find_toolbar_request_close (EphyFindToolbar *toolbar);
void ephy_find_toolbar_toggle_state (EphyFindToolbar *toolbar);
void ephy_find_toolbar_toggle_state (EphyFindToolbar *toolbar);
G_END_DECLS
/* -*- Mode: C; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* vim: set sw=2 ts=2 sts=2 et: */
/*
* Copyright © 2008, 2009 Gustavo Noronha Silva
* Copyright © 2009, 2010, 2014 Igalia S.L.
......
/* -*- Mode: C; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* vim: set sw=2 ts=2 sts=2 et: */
/*
* Copyright © 2008 Gustavo Noronha Silva
* Copyright © 2012 Igalia S.L.
......
/* -*- Mode: C; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/*
* Copyright © 2011 Igalia S.L.
*
......
/* -*- Mode: C; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/*
* Copyright © 2011 Igalia S.L.
*
......
/* -*- Mode: C; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* vim: set sw=2 ts=2 sts=2 et: */
/*
* Copyright © 2013 Igalia S.L.
*
......
/* -*- Mode: C; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/*
* Copyright © 2013 Igalia S.L.
*
......
/* -*- Mode: C; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* vim: set sw=2 ts=2 sts=2 et: */
/*
* Copyright © 2012 Igalia S.L.
*
......
/* -*- Mode: C; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/*
* Copyright © 2014 Igalia S.L.
*
......
/* -*- Mode: C; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* vim: set sw=2 ts=2 sts=2 et: */
/*
* Copyright © 2014 Igalia S.L.
*
......
/* -*- Mode: C; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/*
* Copyright © 2014 Igalia S.L.
*
......
/* -*- Mode: C; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* eggtreemultidnd.c
* Copyright (C) 2001 Red Hat, Inc.
*
......
/* -*- Mode: C; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* eggtreednd.h
* Copyright (C) 2001 Red Hat, Inc.
*
......
/* -*- Mode: C; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/*
* Copyright © 2016 Igalia S.L.
*
......
/* -*- Mode: C; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/*
* Copyright © 2016 Igalia S.L.
*
......
/* -*- Mode: C; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/*
* Copyright © 2003 Marco Pesenti Gritti
*
......
/* -*- Mode: C; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/*
* Copyright © 2003 Marco Pesenti Gritti
*
......
/* -*- Mode: C; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/*
* Copyright © 2000, 2001, 2002 Marco Pesenti Gritti
*
......
/* -*- Mode: C; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/*
* Copyright © 2000-2003 Marco Pesenti Gritti
*
......
/* -*- Mode: C; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/*
* Copyright © 2012 Igalia S.L.
*
......
/* -*- Mode: C; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/*
* Copyright © 2012 Igalia S.L.
*
......
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/* -*- Mode: C; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/*
* Copyright © 2002 Jorn Baayen
* Copyright © 2003, 2004 Marco Pesenti Gritti
......
/* -*- Mode: C; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/*
* Copyright © 2002 Jorn Baayen
* Copyright © 2003, 2004 Marco Pesenti Gritti
......@@ -24,24 +25,24 @@
#include <gtk/gtk.h>
extern GQuark ephy_file_helpers_error_quark;
#define EPHY_FILE_HELPERS_ERROR_QUARK (ephy_file_helpers_error_quark)
#define EPHY_FILE_HELPERS_ERROR_QUARK (ephy_file_helpers_error_quark)
G_BEGIN_DECLS
typedef enum
{
EPHY_MIME_PERMISSION_SAFE = 1,
EPHY_MIME_PERMISSION_UNSAFE = 2,
EPHY_MIME_PERMISSION_UNKNOWN = 3
EPHY_MIME_PERMISSION_SAFE = 1,
EPHY_MIME_PERMISSION_UNSAFE = 2,
EPHY_MIME_PERMISSION_UNKNOWN = 3
} EphyMimePermission;
typedef enum
{
EPHY_FILE_HELPERS_NONE = 0,
EPHY_FILE_HELPERS_KEEP_DIR = 1 << 1,
EPHY_FILE_HELPERS_PRIVATE_PROFILE = 1 << 2,
EPHY_FILE_HELPERS_ENSURE_EXISTS = 1 << 3,
EPHY_FILE_HELPERS_STEAL_DATA = 1 << 4
EPHY_FILE_HELPERS_NONE = 0,
EPHY_FILE_HELPERS_KEEP_DIR = 1 << 1,
EPHY_FILE_HELPERS_PRIVATE_PROFILE = 1 << 2,
EPHY_FILE_HELPERS_ENSURE_EXISTS = 1 << 3,
EPHY_FILE_HELPERS_STEAL_DATA = 1 << 4
} EphyFileHelpersFlags;
gboolean ephy_file_helpers_init (const char *profile_dir,
......@@ -52,7 +53,7 @@ const char * ephy_dot_dir (void);
gboolean ephy_dot_dir_is_default (void);
char * ephy_default_dot_dir (void);
void ephy_file_helpers_shutdown (void);
char * ephy_file_get_downloads_dir (void);
char * ephy_file_get_downloads_dir (void);
char * ephy_file_desktop_dir (void);
const char * ephy_file_tmp_dir (void);
char * ephy_file_tmp_filename (const char *base,
......
/* -*- Mode: C; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2; -*- */
/* vim: set sw=2 ts=2 sts=2 et: */
/*
* Copyright © 2013 Igalia S.L.
*
......
/* -*- Mode: C; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/*
* Copyright © 2013 Igalia S.L.
*
......
/* -*- Mode: C; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/*
* Copyright © 2002 Marco Pesenti Gritti
*
......
/* -*- Mode: C; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/*
* Copyright © 2002 Marco Pesenti Gritti
*
......@@ -23,38 +24,38 @@
G_BEGIN_DECLS
void ephy_gui_sanitise_popup_position (GtkMenu *menu,
GtkWidget *parent_widget,
gint *x,
gint *y);
void ephy_gui_sanitise_popup_position (GtkMenu *menu,
GtkWidget *parent_widget,
gint *x,
gint *y);
void ephy_gui_menu_position_tree_selection (GtkMenu *menu,
gint *x,
gint *y,
gboolean *push_in,
gpointer user_data);
void ephy_gui_menu_position_tree_selection (GtkMenu *menu,
gint *x,
gint *y,
gboolean *push_in,
gpointer user_data);
void ephy_gui_menu_position_under_widget (GtkMenu *menu,
gint *x,
gint *y,
gboolean *push_in,
gpointer user_data);
void ephy_gui_menu_position_under_widget (GtkMenu *menu,
gint *x,
gint *y,
gboolean *push_in,
gpointer user_data);
GtkWindowGroup *ephy_gui_ensure_window_group (GtkWindow *window);
GtkWindowGroup *ephy_gui_ensure_window_group (GtkWindow *window);
void ephy_gui_get_current_event (GdkEventType *type,
guint *state,
guint *button);
void ephy_gui_get_current_event (GdkEventType *type,
guint *state,
guint *button);
gboolean ephy_gui_is_middle_click (void);
gboolean ephy_gui_is_middle_click (void);
gboolean ephy_gui_check_location_writable (GtkWidget *parent,
const char *filename);
gboolean ephy_gui_check_location_writable (GtkWidget *parent,
const char *filename);
void ephy_gui_help (GtkWidget *parent,
const char *page);
void ephy_gui_help (GtkWidget *parent,
const char *page);
void ephy_gui_window_update_user_time (GtkWidget *window,
guint32 user_time);
void ephy_gui_window_update_user_time (GtkWidget *window,
guint32 user_time);
G_END_DECLS
/* -*- Mode: C; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/*
* Copyright © 2003, 2004 Christian Persch
*
......
/* -*- Mode: C; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/*
* Copyright © 2000, 2003 Marco Pesenti Gritti
* Copyright © 2003, 2004 Christian Persch
......@@ -27,12 +28,12 @@ G_BEGIN_DECLS
void ephy_langs_append_languages (GArray *array);
void ephy_langs_sanitise (GArray *array);
void ephy_langs_sanitise (GArray *array);
char **ephy_langs_get_languages (void);
char **ephy_langs_get_languages (void);
GHashTable *ephy_langs_iso_639_table (void);
GHashTable *ephy_langs_iso_639_table (void);
GHashTable *ephy_langs_iso_3166_table (void);
GHashTable *ephy_langs_iso_3166_table (void);
G_END_DECLS
/* -*- Mode: C; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/*
* Copyright © 2003 Xan Lopez <xan@masilla.org>
*
......@@ -20,31 +21,31 @@
G_BEGIN_DECLS
/* Databases */
#define EPHY_NODE_DB_HISTORY "EphyHistory"
#define EPHY_NODE_DB_HISTORY "EphyHistory"
#define EPHY_NODE_DB_BOOKMARKS "EphyBookmarks"
#define EPHY_NODE_DB_SITEICONS "EphySiteIcons"
#define EPHY_NODE_DB_STATES "EphyStates"
#define EPHY_NODE_DB_STATES "EphyStates"
/* Root nodes */
enum
{
BOOKMARKS_NODE_ID = 0,
KEYWORDS_NODE_ID = 1,
FAVORITES_NODE_ID = 2,
BMKS_NOTCATEGORIZED_NODE_ID = 3,
STATES_NODE_ID = 4,
HOSTS_NODE_ID = 5,
PAGES_NODE_ID = 6,
ICONS_NODE_ID = 9,
SMARTBOOKMARKS_NODE_ID = 10,
BMKS_LOCAL_NODE_ID = 11,
BOOKMARKS_NODE_ID = 0,
KEYWORDS_NODE_ID = 1,
FAVORITES_NODE_ID = 2,
BMKS_NOTCATEGORIZED_NODE_ID = 3,
STATES_NODE_ID = 4,
HOSTS_NODE_ID = 5,
PAGES_NODE_ID = 6,
ICONS_NODE_ID = 9,
SMARTBOOKMARKS_NODE_ID = 10,
BMKS_LOCAL_NODE_ID = 11,
};
typedef enum
{
EPHY_NODE_ALL_PRIORITY,
EPHY_NODE_SPECIAL_PRIORITY,
EPHY_NODE_NORMAL_PRIORITY
EPHY_NODE_ALL_PRIORITY,
EPHY_NODE_SPECIAL_PRIORITY,
EPHY_NODE_NORMAL_PRIORITY
} EphyNodePriority;
G_END_DECLS
/* -*- Mode: C; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/*
* Copyright © 2002 Jorn Baayen <jorn@nl.linux.org>
* Copyright © 2003 Marco Pesenti Gritti
......
/* -*- Mode: C; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/*
* Copyright © 2002 Jorn Baayen <jorn@nl.linux.org>
* Copyright © 2003 Marco Pesenti Gritti
......@@ -27,39 +28,39 @@ G_BEGIN_DECLS
G_DECLARE_FINAL_TYPE (EphyNodeDb, ephy_node_db, EPHY, NODE_DB, GObject)
EphyNodeDb *ephy_node_db_new (const char *name);
EphyNodeDb *ephy_node_db_new (const char *name);
#include "ephy-node.h"
gboolean ephy_node_db_load_from_file (EphyNodeDb *db,
const char *xml_file,
const xmlChar *xml_root,
const xmlChar *xml_version);
gboolean ephy_node_db_load_from_file (EphyNodeDb *db,
const char *xml_file,
const xmlChar *xml_root,
const xmlChar *xml_version);
int ephy_node_db_write_to_xml_safe (EphyNodeDb *db,
const xmlChar *filename,
const xmlChar *root,
const xmlChar *version,
const xmlChar *comment,
EphyNode *node, ...);
int ephy_node_db_write_to_xml_safe (EphyNodeDb *db,
const xmlChar *filename,
const xmlChar *root,
const xmlChar *version,
const xmlChar *comment,
EphyNode *node, ...);
const char *ephy_node_db_get_name (EphyNodeDb *db);
const char *ephy_node_db_get_name (EphyNodeDb *db);
gboolean ephy_node_db_is_immutable (EphyNodeDb *db);
gboolean ephy_node_db_is_immutable (EphyNodeDb *db);
void ephy_node_db_set_immutable (EphyNodeDb *db,
gboolean immutable);
void ephy_node_db_set_immutable (EphyNodeDb *db,
gboolean immutable);
EphyNode *ephy_node_db_get_node_from_id (EphyNodeDb *db,
guint id);
EphyNode *ephy_node_db_get_node_from_id (EphyNodeDb *db,
guint id);
guint _ephy_node_db_new_id (EphyNodeDb *db);
guint _ephy_node_db_new_id (EphyNodeDb *db);
void _ephy_node_db_add_id (EphyNodeDb *db,
guint id,
EphyNode *node);
void _ephy_node_db_add_id (EphyNodeDb *db,
guint id,
EphyNode *node);
void _ephy_node_db_remove_id (EphyNodeDb *db,
guint id);
void _ephy_node_db_remove_id (EphyNodeDb *db,
guint id);
G_END_DECLS
/* -*- Mode: C; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/*
* Copyright © 2002 Olivier Martin <omartin@ifrance.com>
* (C) 2002 Jorn Baayen <jorn@nl.linux.org>
......
/* -*- Mode: C; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/*
* Copyright © 2002 Olivier Martin <omartin@ifrance.com>
* Copyright © 2002 Jorn Baayen <jorn@nl.linux.org>
......@@ -30,20 +31,20 @@ G_DECLARE_FINAL_TYPE (EphyNodeFilter, ephy_node_filter, EPHY, NODE_FILTER, GObje
typedef enum
{
EPHY_NODE_FILTER_EXPRESSION_ALWAYS_TRUE, /* args: none */
EPHY_NODE_FILTER_EXPRESSION_NODE_EQUALS, /* args: EphyNode *a, EphyNode *b */
EPHY_NODE_FILTER_EXPRESSION_EQUALS, /* args: EphyNode *node */
EPHY_NODE_FILTER_EXPRESSION_HAS_PARENT, /* args: EphyNode *parent */
EPHY_NODE_FILTER_EXPRESSION_HAS_CHILD, /* args: EphyNode *child */
EPHY_NODE_FILTER_EXPRESSION_NODE_PROP_EQUALS, /* args: int prop_id, EphyNode *node */
EPHY_NODE_FILTER_EXPRESSION_CHILD_PROP_EQUALS, /* args: int prop_id, EphyNode *node */
EPHY_NODE_FILTER_EXPRESSION_STRING_PROP_CONTAINS, /* args: int prop_id, const char *string */
EPHY_NODE_FILTER_EXPRESSION_STRING_PROP_EQUALS, /* args: int prop_id, const char *string */
EPHY_NODE_FILTER_EXPRESSION_KEY_PROP_CONTAINS, /* args: int prop_id, const char *string */
EPHY_NODE_FILTER_EXPRESSION_KEY_PROP_EQUALS, /* args: int prop_id, const char *string */
EPHY_NODE_FILTER_EXPRESSION_INT_PROP_EQUALS, /* args: int prop_id, int int */
EPHY_NODE_FILTER_EXPRESSION_INT_PROP_BIGGER_THAN, /* args: int prop_id, int int */
EPHY_NODE_FILTER_EXPRESSION_INT_PROP_LESS_THAN /* args: int prop_id, int int */
EPHY_NODE_FILTER_EXPRESSION_ALWAYS_TRUE, /* args: none */
EPHY_NODE_FILTER_EXPRESSION_NODE_EQUALS, /* args: EphyNode *a, EphyNode *b */
EPHY_NODE_FILTER_EXPRESSION_EQUALS, /* args: EphyNode *node */
EPHY_NODE_FILTER_EXPRESSION_HAS_PARENT, /* args: EphyNode *parent */
EPHY_NODE_FILTER_EXPRESSION_HAS_CHILD, /* args: EphyNode *child */
EPHY_NODE_FILTER_EXPRESSION_NODE_PROP_EQUALS, /* args: int prop_id, EphyNode *node */
EPHY_NODE_FILTER_EXPRESSION_CHILD_PROP_EQUALS, /* args: int prop_id, EphyNode *node */
EPHY_NODE_FILTER_EXPRESSION_STRING_PROP_CONTAINS, /* args: int prop_id, const char *string */
EPHY_NODE_FILTER_EXPRESSION_STRING_PROP_EQUALS, /* args: int prop_id, const char *string */
EPHY_NODE_FILTER_EXPRESSION_KEY_PROP_CONTAINS, /* args: int prop_id, const char *string */
EPHY_NODE_FILTER_EXPRESSION_KEY_PROP_EQUALS, /* args: int prop_id, const char *string */
EPHY_NODE_FILTER_EXPRESSION_INT_PROP_EQUALS, /* args: int prop_id, int int */
EPHY_NODE_FILTER_EXPRESSION_INT_PROP_BIGGER_THAN, /* args: int prop_id, int int */
EPHY_NODE_FILTER_EXPRESSION_INT_PROP_LESS_THAN /* args: int prop_id, int int */
} EphyNodeFilterExpressionType;
typedef struct _EphyNodeFilterExpression EphyNodeFilterExpression;
......@@ -57,18 +58,18 @@ typedef struct _EphyNodeFilterExpression EphyNodeFilterExpression;
EphyNodeFilter *ephy_node_filter_new (void);
void ephy_node_filter_add_expression (EphyNodeFilter *filter,
EphyNodeFilterExpression *expression,
int level);
EphyNodeFilterExpression *expression,
int level);
void ephy_node_filter_empty (EphyNodeFilter *filter);
void ephy_node_filter_done_changing (EphyNodeFilter *filter);
gboolean ephy_node_filter_evaluate (EphyNodeFilter *filter,
EphyNode *node);
EphyNode *node);
EphyNodeFilterExpression *ephy_node_filter_expression_new (EphyNodeFilterExpressionType,
...);
...);
/* no need to free unless you didn't add the expression to a filter */
void ephy_node_filter_expression_free (EphyNodeFilterExpression *expression);
......
/* -*- Mode: C; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/*
* Copyright © 2002 Jorn Baayen <jorn@nl.linux.org>
* Copyright © 2003 Marco Pesenti Gritti
......
/* -*- Mode: C; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/*
* Copyright © 2002 Jorn Baayen <jorn@nl.linux.org>
* Copyright © 2003 Marco Pesenti Gritti
......@@ -24,20 +25,20 @@
G_BEGIN_DECLS
#define EPHY_TYPE_NODE (ephy_node_get_type ())
#define EPHY_IS_NODE(o) (o != NULL)
#define EPHY_TYPE_NODE (ephy_node_get_type ())
#define EPHY_IS_NODE(o) (o != NULL)
typedef struct _EphyNode EphyNode;
typedef enum
{
EPHY_NODE_DESTROY, /* EphyNode *node */
EPHY_NODE_RESTORED, /* EphyNode *node */
EPHY_NODE_CHANGED, /* EphyNode *node, guint property_id */
EPHY_NODE_CHILD_ADDED, /* EphyNode *node, EphyNode *child */
EPHY_NODE_CHILD_CHANGED, /* EphyNode *node, EphyNode *child, guint property_id */
EPHY_NODE_CHILD_REMOVED, /* EphyNode *node, EphyNode *child, guint old_index */
EPHY_NODE_CHILDREN_REORDERED /* EphyNode *node, int *new_order */
EPHY_NODE_DESTROY, /* EphyNode *node */
EPHY_NODE_RESTORED, /* EphyNode *node */
EPHY_NODE_CHANGED, /* EphyNode *node, guint property_id */
EPHY_NODE_CHILD_ADDED, /* EphyNode *node, EphyNode *child */
EPHY_NODE_CHILD_CHANGED, /* EphyNode *node, EphyNode *child, guint property_id */
EPHY_NODE_CHILD_REMOVED, /* EphyNode *node, EphyNode *child, guint old_index */
EPHY_NODE_CHILDREN_REORDERED /* EphyNode *node, int *new_order */
} EphyNodeSignalType;
#include "ephy-node-db.h"
......@@ -45,14 +46,14 @@ typedef enum
typedef void (*EphyNodeCallback) (EphyNode *node, ...);
typedef gboolean (*EphyNodeFilterFunc) (EphyNode *, gpointer);
GType ephy_node_get_type (void) G_GNUC_CONST;
GType ephy_node_get_type (void) G_GNUC_CONST;
EphyNode *ephy_node_new (EphyNodeDb *db);
EphyNode *ephy_node_new_with_id (EphyNodeDb *db,
guint reserved_id);
guint reserved_id);
EphyNodeDb *ephy_node_get_db (EphyNode *node);
EphyNodeDb *ephy_node_get_db (EphyNode *node);
/* unique node ID */
guint ephy_node_get_id (EphyNode *node);
......@@ -63,91 +64,92 @@ void ephy_node_unref (EphyNode *node);
/* signals */
int ephy_node_signal_connect_object (EphyNode *node,
EphyNodeSignalType type,
EphyNodeCallback callback,
GObject *object);
EphyNodeSignalType type,
EphyNodeCallback callback,
GObject *object);
guint ephy_node_signal_disconnect_object (EphyNode *node,
EphyNodeSignalType type,
EphyNodeCallback callback,
GObject *object);
guint ephy_node_signal_disconnect_object
(EphyNode *node,
EphyNodeSignalType type,
EphyNodeCallback callback,
GObject *object);
void ephy_node_signal_disconnect (EphyNode *node,
int signal_id);
int signal_id);
/* properties */
void ephy_node_set_property (EphyNode *node,
guint property_id,
const GValue *value);
guint property_id,
const GValue *value);
gboolean ephy_node_get_property (EphyNode *node,
guint property_id,
GValue *value);
guint property_id,
GValue *value);
const char *ephy_node_get_property_string (EphyNode *node,
guint property_id);
guint property_id);
void ephy_node_set_property_string (EphyNode *node,
guint property_id,
const char *value);
guint property_id,
const char *value);
gboolean ephy_node_get_property_boolean (EphyNode *node,
guint property_id);
guint property_id);
void ephy_node_set_property_boolean (EphyNode *node,
guint property_id,
gboolean value);
guint property_id,
gboolean value);
long ephy_node_get_property_long (EphyNode *node,
guint property_id);
guint property_id);
void ephy_node_set_property_long (EphyNode *node,
guint property_id,
long value);
guint property_id,
long value);
int ephy_node_get_property_int (EphyNode *node,
guint property_id);
guint property_id);
void ephy_node_set_property_int (EphyNode *node,
guint property_id,
int value);
guint property_id,
int value);
double ephy_node_get_property_double (EphyNode *node,
guint property_id);