[sushi/wip/cosimoc/no-clutter: 19/66] Remove remaining clutter bits
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [sushi/wip/cosimoc/no-clutter: 19/66] Remove remaining clutter bits
- Date: Sat, 8 Jun 2019 18:41:45 +0000 (UTC)
commit a466778a3acb0c9a18dc58abfd97c36d3f590a4b
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Mon Apr 3 12:45:16 2017 -0700
Remove remaining clutter bits
This commit drops completely the clutter dependency.
meson.build | 3 ---
src/js/ui/mainWindow.js | 3 ---
src/libsushi/meson.build | 1 -
src/libsushi/sushi-utils.h | 1 -
src/main.c | 23 +++--------------------
src/meson.build | 3 ---
6 files changed, 3 insertions(+), 31 deletions(-)
---
diff --git a/meson.build b/meson.build
index 538dc4b..1330791 100644
--- a/meson.build
+++ b/meson.build
@@ -5,9 +5,6 @@ project(
meson_version: '>=0.42.0'
)
-clutter_dep = dependency('clutter-1.0', version: '>=1.11.4')
-clutter_gst_dep = dependency('clutter-gst-3.0')
-clutter_gtk_dep = dependency('clutter-gtk-1.0', version: '>=1.0.1')
evince_document_dep = dependency('evince-document-3.0')
evince_view_dep = dependency('evince-view-3.0')
freetype_dep = dependency('freetype2')
diff --git a/src/js/ui/mainWindow.js b/src/js/ui/mainWindow.js
index 046d310..62eeb21 100644
--- a/src/js/ui/mainWindow.js
+++ b/src/js/ui/mainWindow.js
@@ -25,14 +25,11 @@
imports.gi.versions.GdkX11 = '3.0';
-const Clutter = imports.gi.Clutter;
-const ClutterGdk = imports.gi.ClutterGdk;
const Gdk = imports.gi.Gdk;
const GdkX11 = imports.gi.GdkX11;
const Gio = imports.gi.Gio;
const GLib = imports.gi.GLib;
const Gtk = imports.gi.Gtk;
-const GtkClutter = imports.gi.GtkClutter;
const Lang = imports.lang;
const Mainloop = imports.mainloop;
const Pango = imports.gi.Pango;
diff --git a/src/libsushi/meson.build b/src/libsushi/meson.build
index 66ef646..93e76b6 100644
--- a/src/libsushi/meson.build
+++ b/src/libsushi/meson.build
@@ -57,7 +57,6 @@ gnome.generate_gir(
symbol_prefix: 'sushi',
identifier_prefix: 'Sushi',
includes: [
- 'Clutter-1.0',
'GstPbutils-1.0',
'GstTag-1.0',
'GdkPixbuf-2.0',
diff --git a/src/libsushi/sushi-utils.h b/src/libsushi/sushi-utils.h
index 21c6c26..8be1b92 100644
--- a/src/libsushi/sushi-utils.h
+++ b/src/libsushi/sushi-utils.h
@@ -26,7 +26,6 @@
#ifndef __SUSHI_UTILS_H__
#define __SUSHI_UTILS_H__
-#include <clutter/clutter.h>
#include <evince-document.h>
#include <gdk/gdk.h>
diff --git a/src/main.c b/src/main.c
index 5057d89..ec15051 100644
--- a/src/main.c
+++ b/src/main.c
@@ -32,17 +32,9 @@
#include <gjs/gjs.h>
+#include <gst/gst.h>
#include <gtk/gtk.h>
-#ifdef GDK_WINDOWING_X11
-#include <X11/Xlib.h>
-#endif
-
-#include <clutter/clutter.h>
-#include <clutter/x11/clutter-x11.h>
-#include <clutter-gst/clutter-gst.h>
-#include <clutter-gtk/clutter-gtk.h>
-
static void
parse_options (int *argc, char ***argv)
{
@@ -104,17 +96,8 @@ main (int argc, char **argv)
GjsContext *js_context;
GError *error;
-#ifdef GDK_WINDOWING_X11
- XInitThreads ();
-#endif
-
- clutter_x11_set_use_argb_visual (TRUE);
-
- if (gtk_clutter_init (&argc, &argv) < 0)
- return EXIT_FAILURE;
-
- clutter_gst_init (0, NULL);
-
+ gst_init (&argc, &argv);
+ gtk_init (&argc, &argv);
parse_options (&argc, &argv);
js_context = gjs_context_new_with_search_path (NULL);
diff --git a/src/meson.build b/src/meson.build
index ff63a50..4f37331 100644
--- a/src/meson.build
+++ b/src/meson.build
@@ -5,9 +5,6 @@ sushi_sources = [
]
deps = [
- clutter_dep,
- clutter_gst_dep,
- clutter_gtk_dep,
evince_document_dep,
evince_view_dep,
freetype_dep,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]