2014-05-03 01:48:33 +00:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2008-2009 Christian Hammond
|
|
|
|
* Copyright (c) 2008-2009 David Trowbridge
|
|
|
|
*
|
|
|
|
* Permission is hereby granted, free of charge, to any person obtaining a
|
|
|
|
* copy of this software and associated documentation files (the "Software"),
|
|
|
|
* to deal in the Software without restriction, including without limitation
|
|
|
|
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
|
|
|
* and/or sell copies of the Software, and to permit persons to whom the
|
|
|
|
* Software is furnished to do so, subject to the following conditions:
|
|
|
|
*
|
|
|
|
* The above copyright notice and this permission notice shall be included
|
|
|
|
* in all copies or substantial portions of the Software.
|
|
|
|
*
|
|
|
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
|
|
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
|
|
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
|
|
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
|
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
|
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
|
|
* THE SOFTWARE.
|
|
|
|
*/
|
|
|
|
#include <glib.h>
|
|
|
|
|
2014-09-06 00:52:03 +00:00
|
|
|
#include "init.h"
|
|
|
|
|
2014-05-14 00:36:02 +00:00
|
|
|
#include "actions.h"
|
2014-10-14 11:51:09 +00:00
|
|
|
#include "cellrenderergraph.h"
|
2014-05-07 02:02:08 +00:00
|
|
|
#include "css-editor.h"
|
2015-03-02 23:02:25 +00:00
|
|
|
#include "css-node-tree.h"
|
2014-05-10 04:50:21 +00:00
|
|
|
#include "data-list.h"
|
2014-05-15 04:06:43 +00:00
|
|
|
#include "general.h"
|
2014-05-16 23:44:43 +00:00
|
|
|
#include "gestures.h"
|
2014-10-14 10:59:18 +00:00
|
|
|
#include "graphdata.h"
|
2014-12-21 00:24:08 +00:00
|
|
|
#include "magnifier.h"
|
2014-06-05 12:31:06 +00:00
|
|
|
#include "menu.h"
|
2014-07-19 06:47:36 +00:00
|
|
|
#include "misc-info.h"
|
2014-05-07 02:02:08 +00:00
|
|
|
#include "object-hierarchy.h"
|
2014-10-11 01:40:53 +00:00
|
|
|
#include "object-tree.h"
|
2014-05-07 02:02:08 +00:00
|
|
|
#include "prop-list.h"
|
2014-05-15 23:34:38 +00:00
|
|
|
#include "resource-list.h"
|
2014-10-12 02:04:57 +00:00
|
|
|
#include "selector.h"
|
2014-05-08 05:04:16 +00:00
|
|
|
#include "signals-list.h"
|
2014-05-21 01:44:48 +00:00
|
|
|
#include "size-groups.h"
|
2014-10-10 03:34:59 +00:00
|
|
|
#include "statistics.h"
|
2014-05-11 01:19:21 +00:00
|
|
|
#include "visual.h"
|
2014-05-07 02:02:08 +00:00
|
|
|
#include "window.h"
|
2014-05-03 01:48:33 +00:00
|
|
|
|
2014-12-21 00:24:08 +00:00
|
|
|
#include "gtkmagnifierprivate.h"
|
|
|
|
|
2014-12-01 14:37:05 +00:00
|
|
|
#include "gtkmodulesprivate.h"
|
|
|
|
|
2014-05-03 01:48:33 +00:00
|
|
|
void
|
2014-05-15 01:23:44 +00:00
|
|
|
gtk_inspector_init (void)
|
2014-05-03 01:48:33 +00:00
|
|
|
{
|
2014-12-01 14:37:05 +00:00
|
|
|
static GIOExtensionPoint *extension_point = NULL;
|
|
|
|
|
2014-10-14 11:51:09 +00:00
|
|
|
g_type_ensure (GTK_TYPE_CELL_RENDERER_GRAPH);
|
2014-10-14 10:59:18 +00:00
|
|
|
g_type_ensure (GTK_TYPE_GRAPH_DATA);
|
2014-05-14 00:36:02 +00:00
|
|
|
g_type_ensure (GTK_TYPE_INSPECTOR_ACTIONS);
|
2014-05-11 01:19:21 +00:00
|
|
|
g_type_ensure (GTK_TYPE_INSPECTOR_CSS_EDITOR);
|
2015-03-02 23:02:25 +00:00
|
|
|
g_type_ensure (GTK_TYPE_INSPECTOR_CSS_NODE_TREE);
|
2014-05-11 01:19:21 +00:00
|
|
|
g_type_ensure (GTK_TYPE_INSPECTOR_DATA_LIST);
|
2014-05-15 04:06:43 +00:00
|
|
|
g_type_ensure (GTK_TYPE_INSPECTOR_GENERAL);
|
2014-05-16 23:44:43 +00:00
|
|
|
g_type_ensure (GTK_TYPE_INSPECTOR_GESTURES);
|
2014-12-21 00:24:08 +00:00
|
|
|
g_type_ensure (GTK_TYPE_MAGNIFIER);
|
|
|
|
g_type_ensure (GTK_TYPE_INSPECTOR_MAGNIFIER);
|
2014-06-05 12:31:06 +00:00
|
|
|
g_type_ensure (GTK_TYPE_INSPECTOR_MENU);
|
2014-07-19 06:47:36 +00:00
|
|
|
g_type_ensure (GTK_TYPE_INSPECTOR_MISC_INFO);
|
2014-05-11 01:19:21 +00:00
|
|
|
g_type_ensure (GTK_TYPE_INSPECTOR_OBJECT_HIERARCHY);
|
2014-10-11 01:40:53 +00:00
|
|
|
g_type_ensure (GTK_TYPE_INSPECTOR_OBJECT_TREE);
|
2014-05-11 01:19:21 +00:00
|
|
|
g_type_ensure (GTK_TYPE_INSPECTOR_PROP_LIST);
|
2014-05-15 23:34:38 +00:00
|
|
|
g_type_ensure (GTK_TYPE_INSPECTOR_RESOURCE_LIST);
|
2014-10-12 02:04:57 +00:00
|
|
|
g_type_ensure (GTK_TYPE_INSPECTOR_SELECTOR);
|
2014-05-08 05:04:16 +00:00
|
|
|
g_type_ensure (GTK_TYPE_INSPECTOR_SIGNALS_LIST);
|
2014-05-21 01:44:48 +00:00
|
|
|
g_type_ensure (GTK_TYPE_INSPECTOR_SIZE_GROUPS);
|
2014-10-10 03:34:59 +00:00
|
|
|
g_type_ensure (GTK_TYPE_INSPECTOR_STATISTICS);
|
2014-05-11 01:19:21 +00:00
|
|
|
g_type_ensure (GTK_TYPE_INSPECTOR_VISUAL);
|
|
|
|
g_type_ensure (GTK_TYPE_INSPECTOR_WINDOW);
|
2014-05-03 01:48:33 +00:00
|
|
|
|
2014-12-01 14:37:05 +00:00
|
|
|
if (extension_point == NULL)
|
|
|
|
{
|
|
|
|
GIOModuleScope *scope;
|
|
|
|
gchar **paths;
|
|
|
|
int i;
|
|
|
|
|
|
|
|
extension_point = g_io_extension_point_register ("gtk-inspector-page");
|
|
|
|
g_io_extension_point_set_required_type (extension_point, GTK_TYPE_WIDGET);
|
|
|
|
|
|
|
|
paths = _gtk_get_module_path ("inspector");
|
|
|
|
scope = g_io_module_scope_new (G_IO_MODULE_SCOPE_BLOCK_DUPLICATES);
|
|
|
|
|
|
|
|
for (i = 0; paths[i] != NULL; i++)
|
|
|
|
g_io_modules_load_all_in_directory_with_scope (paths[i], scope);
|
|
|
|
|
|
|
|
g_strfreev (paths);
|
|
|
|
g_io_module_scope_free (scope);
|
|
|
|
}
|
|
|
|
}
|
2014-05-07 02:02:08 +00:00
|
|
|
|
2014-05-05 02:21:55 +00:00
|
|
|
// vim: set et sw=2 ts=2:
|