Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/sdroege/gst-plugin-rs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/text/wrap
diff options
context:
space:
mode:
authorFrançois Laignel <fengalin@free.fr>2021-06-03 21:20:54 +0300
committerFrançois Laignel <fengalin@free.fr>2021-06-03 21:53:16 +0300
commit8dfc872544b26aa5eaf4b12da7d9c5e0361467ca (patch)
treee314ee0cfde5930ac50a5bfd985b34d1129362b0 /text/wrap
parent91c8fd146dd477ce744bec944395672719a13ebe (diff)
use gst::glib where applicable
Diffstat (limited to 'text/wrap')
-rw-r--r--text/wrap/Cargo.toml1
-rw-r--r--text/wrap/src/gsttextwrap/imp.rs3
-rw-r--r--text/wrap/src/gsttextwrap/mod.rs3
-rw-r--r--text/wrap/src/lib.rs2
-rw-r--r--text/wrap/tests/textwrap.rs2
5 files changed, 6 insertions, 5 deletions
diff --git a/text/wrap/Cargo.toml b/text/wrap/Cargo.toml
index 07f523cf..4c8831fe 100644
--- a/text/wrap/Cargo.toml
+++ b/text/wrap/Cargo.toml
@@ -8,7 +8,6 @@ description = "Rust Text Wrap Plugin"
repository = "https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs"
[dependencies]
-glib = { git = "https://github.com/gtk-rs/gtk-rs-core" }
once_cell = "1.0"
textwrap = { version = "0.13.2", features = ["hyphenation"] }
hyphenation = "0.8"
diff --git a/text/wrap/src/gsttextwrap/imp.rs b/text/wrap/src/gsttextwrap/imp.rs
index 34361497..861c2d5c 100644
--- a/text/wrap/src/gsttextwrap/imp.rs
+++ b/text/wrap/src/gsttextwrap/imp.rs
@@ -15,8 +15,7 @@
// Free Software Foundation, Inc., 51 Franklin Street, Suite 500,
// Boston, MA 02110-1335, USA.
-use glib::prelude::*;
-use glib::subclass::prelude::*;
+use gst::glib;
use gst::prelude::*;
use gst::subclass::prelude::*;
use gst::{gst_debug, gst_error, gst_info, gst_log};
diff --git a/text/wrap/src/gsttextwrap/mod.rs b/text/wrap/src/gsttextwrap/mod.rs
index 6b5acef2..5d9554f5 100644
--- a/text/wrap/src/gsttextwrap/mod.rs
+++ b/text/wrap/src/gsttextwrap/mod.rs
@@ -15,7 +15,8 @@
// Free Software Foundation, Inc., 51 Franklin Street, Suite 500,
// Boston, MA 02110-1335, USA.
-use glib::prelude::*;
+use gst::glib;
+use gst::prelude::*;
mod imp;
diff --git a/text/wrap/src/lib.rs b/text/wrap/src/lib.rs
index c9cf7863..3dc8b201 100644
--- a/text/wrap/src/lib.rs
+++ b/text/wrap/src/lib.rs
@@ -17,6 +17,8 @@
#![recursion_limit = "128"]
+use gst::glib;
+
mod gsttextwrap;
fn plugin_init(plugin: &gst::Plugin) -> Result<(), glib::BoolError> {
diff --git a/text/wrap/tests/textwrap.rs b/text/wrap/tests/textwrap.rs
index f346e736..74c18d6f 100644
--- a/text/wrap/tests/textwrap.rs
+++ b/text/wrap/tests/textwrap.rs
@@ -15,7 +15,7 @@
// Free Software Foundation, Inc., 51 Franklin Street, Suite 500,
// Boston, MA 02110-1335, USA.
-use glib::prelude::*;
+use gst::prelude::*;
fn init() {
use std::sync::Once;