aboutsummaryrefslogtreecommitdiffstats
path: root/shell/test/e-test-shell-view.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2009-05-11 01:18:28 +0800
committerMatthew Barnes <mbarnes@redhat.com>2009-05-11 01:18:28 +0800
commit5eb12906c4242a576ad6fac4d229f096d3aab17a (patch)
tree7c09011257167be9c0f456a7c19c21298469ea82 /shell/test/e-test-shell-view.c
parent92e942499bffca812dcbc229f6c88ebb640e403a (diff)
downloadgsoc2013-evolution-5eb12906c4242a576ad6fac4d229f096d3aab17a.tar.gz
gsoc2013-evolution-5eb12906c4242a576ad6fac4d229f096d3aab17a.tar.zst
gsoc2013-evolution-5eb12906c4242a576ad6fac4d229f096d3aab17a.zip
Use the proper idiom for loading types in a GTypeModule.
Also, combine calendar, memo, and task backends into a single module, similar to how it worked under Bonobo.
Diffstat (limited to 'shell/test/e-test-shell-view.c')
-rw-r--r--shell/test/e-test-shell-view.c49
1 files changed, 25 insertions, 24 deletions
diff --git a/shell/test/e-test-shell-view.c b/shell/test/e-test-shell-view.c
index a7326af687..f05abfff06 100644
--- a/shell/test/e-test-shell-view.c
+++ b/shell/test/e-test-shell-view.c
@@ -21,8 +21,8 @@
#include "e-test-shell-view.h"
-#include <e-shell-content.h>
-#include <e-shell-sidebar.h>
+#include "shell/e-shell-content.h"
+#include "shell/e-shell-sidebar.h"
#define E_TEST_SHELL_VIEW_GET_PRIVATE(obj) \
(G_TYPE_INSTANCE_GET_PRIVATE \
@@ -32,8 +32,8 @@ struct _ETestShellViewPrivate {
EActivity *activity;
};
-GType e_test_shell_view_type = 0;
static gpointer parent_class;
+static GType test_shell_view_type;
static void
test_shell_view_toggled (EShellView *shell_view)
@@ -128,27 +128,28 @@ test_shell_view_init (ETestShellView *test_shell_view)
}
GType
-e_test_shell_view_get_type (GTypeModule *type_module)
+e_test_shell_view_get_type (void)
{
- if (e_test_shell_view_type == 0) {
- const GTypeInfo type_info = {
- sizeof (ETestShellViewClass),
- (GBaseInitFunc) NULL,
- (GBaseFinalizeFunc) NULL,
- (GClassInitFunc) test_shell_view_class_init,
- (GClassFinalizeFunc) NULL,
- type_module,
- sizeof (ETestShellView),
- 0, /* n_preallocs */
- (GInstanceInitFunc) test_shell_view_init,
- NULL /* value_table */
- };
-
- e_test_shell_view_type =
- g_type_module_register_type (
- type_module, E_TYPE_SHELL_VIEW,
- "ETestShellView", &type_info, 0);
- }
+ return test_shell_view_type;
+}
- return e_test_shell_view_type;
+void
+e_test_shell_view_register_type (GTypeModule *type_module)
+{
+ const GTypeInfo type_info = {
+ sizeof (ETestShellViewClass),
+ (GBaseInitFunc) NULL,
+ (GBaseFinalizeFunc) NULL,
+ (GClassInitFunc) test_shell_view_class_init,
+ (GClassFinalizeFunc) NULL,
+ type_module,
+ sizeof (ETestShellView),
+ 0, /* n_preallocs */
+ (GInstanceInitFunc) test_shell_view_init,
+ NULL /* value_table */
+ };
+
+ test_shell_view_type = g_type_module_register_type (
+ type_module, E_TYPE_SHELL_VIEW,
+ "ETestShellView", &type_info, 0);
}
'commitgraph'>* One more small cleanup, forgotten yesterday.Mathieu Arnold2021-04-071-1/+0 * Remove # $FreeBSD$ from Makefiles.Mathieu Arnold2021-04-061-2/+0 * benchmarks/vkmark: add new portJan Beich2020-12-271-0/+1 * New port: benchmarks/inferno: Stack trace visualizer, a Rust port of flamegraphYuri Victorovich2020-11-241-0/+1 * Add benchmarks/ali, a load testing tool aimed to perform real-time analysis.Jimmy Olgeni2020-09-261-0/+1 * Resurrect benchmarks/filebenchMateusz Piotrowski2020-09-211-0/+1 * Add a port of GpuTest, OpenGL-based GPU stress test and popular benchmark.Alexey Dokuchaev2020-09-181-0/+1 * MangoHud is a Vulkan/OpenGL overlay for monitoring FPS, temperatures,Alexey Dokuchaev2020-08-241-0/+1 * Add rubygem-benchmark 0.1.0Sunpoet Po-Chuan Hsieh2020-07-301-0/+1 * New ports required for gitlab-ce 12.9 upgrade.Matthias Fechner2020-03-281-0/+1 * Remove expired ports:Rene Ladan2020-01-271-1/+0 * Remove expired ports:Rene Ladan2019-10-161-1/+0 * Add new port benchmarks/hipercontracer : High-Performance Connectivity TracerRodrigo Osorio2019-08-221-0/+1 * New ports required for gitlab-ce 12.1 upgrade.Matthias Fechner2019-07-281-0/+1 * New ports required for gitlab-ce 12.0.x.Matthias Fechner2019-07-071-0/+1 * Remove expired ports of Haskell libraries.Gleb Popov2019-05-091-2/+0 * benchmarks/hyperfine: new command-line benchmarking toolLuca Pizzamiglio2019-02-181-0/+1 * [NEW] benchmarks/py-locust: Python utility for doing distributed load testsVinícius Zavam2019-01-201-0/+1 * lang/ghc: Update to 8.6.3 and bump PORTREVISION's of all Haskell ports.Gleb Popov2019-01-061-0/+1 * New port: benchmarks/libcelero: C++ benchmark authoring library/frameworkYuri Victorovich2018-10-141-0/+1 * [NEW PORT]: benchmarks/linux-vdbench: Command line disk I/O benchmark utilityFukang Chen2018-09-261-0/+1 * Add p5-Dumbbench 0.111Sunpoet Po-Chuan Hsieh2018-07-281-0/+1 * Add perftest 4.2.0.7, collection of tests for RDMA micro-benchmark.Philip Paeps2018-06-081-0/+1 * Remove expired ports:Rene Ladan2018-06-071-1/+0 * Add benchmarks/uperfKirill Ponomarev2018-04-021-0/+1 * Remove expired ports:Rene Ladan2018-03-211-1/+0 * apib is a tool that makes it easy to test API servers. It is supportedAlexey Dokuchaev2018-03-021-0/+1 * Add benchmarks/py-throughpy: Python script to test throughput with iperf3Danilo G. Baio2018-01-271-0/+1 * Add benchmarks/vegeta: HTTP load testing tool and libraryDanilo G. Baio2018-01-271-0/+1 * Add a port of lzbench, an in-memory benchmark of open-source LZ77/LZSS/LZMAAlexey Dokuchaev2018-01-151-0/+1 * Add a port of Typometer, text/code editor typing latency analyzer.Alexey Dokuchaev2017-07-021-0/+1 * Add 'hey' an HTTP benchmarking toolBrad Davis2017-06-161-0/+1 * Remove expired ports:Rene Ladan2017-05-071-1/+0 * new port: benchmarks/flamegraphJohannes M Dieterich2017-04-021-0/+1 * - New port: benchmarks/bombardierDanilo Egea Gondolfo2017-03-011-0/+1 * Add gobench 1.1Sunpoet Po-Chuan Hsieh2017-02-231-0/+1 * Add a port of glmark2, a benchmark for OpenGL (ES) 2.0.Alexey Dokuchaev2016-09-091-0/+1 * Add clpeak 1.0, benchmarking tool to measure peak capabilities of openclRoman Bogorodskiy2016-06-271-0/+1 * Hook new ports on its categories Makefile.Marcelo Araujo2016-04-191-0/+2 * Remove expired ports:Rene Ladan2015-11-291-1/+0 * This stress test suite will stress a computer system in various selectable waysDmitry Marakasov2015-09-251-0/+1 * - Add rubygem-benchmark-ips 2.2.0Sunpoet Po-Chuan Hsieh2015-05-111-0/+1 * Add SMHasher hashing benchmark and test system as a new port.George V. Neville-Neil2015-04-011-0/+1 * New port benchmarks/dhrystone : a computing benchmark for integer operationsRodrigo Osorio2015-01-14