[librsvg: 2/38] Don't use private enums submodule



commit d190b16f175d32a245b5999280cd90e999a2a320
Author: Kornel LesiƄski <kornel geekhood net>
Date:   Sun Dec 23 14:32:27 2018 +0000

    Don't use private enums submodule

 rsvg_internals/src/gradient.rs | 12 ++++++------
 rsvg_internals/src/text.rs     |  4 ++--
 2 files changed, 8 insertions(+), 8 deletions(-)
---
diff --git a/rsvg_internals/src/gradient.rs b/rsvg_internals/src/gradient.rs
index df27afc9..800fc6b5 100644
--- a/rsvg_internals/src/gradient.rs
+++ b/rsvg_internals/src/gradient.rs
@@ -65,12 +65,12 @@ impl Default for SpreadMethod {
     }
 }
 
-impl From<SpreadMethod> for cairo::enums::Extend {
-    fn from(s: SpreadMethod) -> cairo::enums::Extend {
+impl From<SpreadMethod> for cairo::Extend {
+    fn from(s: SpreadMethod) -> cairo::Extend {
         match s {
-            SpreadMethod::Pad => cairo::enums::Extend::Pad,
-            SpreadMethod::Reflect => cairo::enums::Extend::Reflect,
-            SpreadMethod::Repeat => cairo::enums::Extend::Repeat,
+            SpreadMethod::Pad => cairo::Extend::Pad,
+            SpreadMethod::Reflect => cairo::Extend::Reflect,
+            SpreadMethod::Repeat => cairo::Extend::Repeat,
         }
     }
 }
@@ -483,7 +483,7 @@ fn set_common_on_pattern<P: cairo::PatternTrait + cairo::Gradient>(
 
     affine.invert();
     pattern.set_matrix(affine);
-    pattern.set_extend(cairo::enums::Extend::from(
+    pattern.set_extend(cairo::Extend::from(
         gradient.common.spread.unwrap_or_default(),
     ));
 
diff --git a/rsvg_internals/src/text.rs b/rsvg_internals/src/text.rs
index a34be604..aa654e69 100644
--- a/rsvg_internals/src/text.rs
+++ b/rsvg_internals/src/text.rs
@@ -927,8 +927,8 @@ fn get_pango_context(cr: &cairo::Context, is_testing: bool) -> pango::Context {
         let mut options = cairo::FontOptions::new();
 
         options.set_antialias(cairo::Antialias::Gray);
-        options.set_hint_style(cairo::enums::HintStyle::Full);
-        options.set_hint_metrics(cairo::enums::HintMetrics::On);
+        options.set_hint_style(cairo::HintStyle::Full);
+        options.set_hint_metrics(cairo::HintMetrics::On);
 
         pangocairo::functions::context_set_font_options(&context, &options);
     }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]