[gnome-builder] gstyle: move gstyle plugin into color-picker plugin
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] gstyle: move gstyle plugin into color-picker plugin
- Date: Tue, 12 Jul 2022 06:39:06 +0000 (UTC)
commit ea36580b18cb697dfff63150736fcbd30db4ba5c
Author: Christian Hergert <chergert redhat com>
Date: Mon Jul 11 15:54:08 2022 -0700
gstyle: move gstyle plugin into color-picker plugin
This still needs work for porting to GTK 4 and is only used by the
color-picker. We can keep it disabled for now (unclear if the color-picker
will be ready for 43 or not).
po/POTFILES.in | 28 ++++++++--------
src/meson.build | 1 -
src/{ => plugins/color-picker}/gstyle/OVERVIEW.md | 0
src/{ => plugins/color-picker}/gstyle/TODO.md | 0
.../gstyle/assets/assets-symbolic.svg | 0
.../gstyle/assets/assets-symbolic.txt | 0
.../color-picker}/gstyle/assets/assets.svg | 0
.../color-picker}/gstyle/assets/assets.txt | 0
.../color-scale-slider-horizontal-active.png | Bin
.../color-scale-slider-horizontal-active 2 png | Bin
...cale-slider-horizontal-backdrop-insensitive.png | Bin
...le-slider-horizontal-backdrop-insensitive 2 png | Bin
.../color-scale-slider-horizontal-backdrop.png | Bin
.../color-scale-slider-horizontal-backdrop 2 png | Bin
.../assets/color-scale-slider-horizontal-hover.png | Bin
.../color-scale-slider-horizontal-hover 2 png | Bin
.../color-scale-slider-horizontal-insensitive.png | Bin
...color-scale-slider-horizontal-insensitive 2 png | Bin
.../assets/color-scale-slider-horizontal.png | Bin
.../assets/color-scale-slider-horizontal 2 png | Bin
.../assets/color-scale-slider-vertical-active.png | Bin
.../color-scale-slider-vertical-active 2 png | Bin
...-scale-slider-vertical-backdrop-insensitive.png | Bin
...cale-slider-vertical-backdrop-insensitive 2 png | Bin
.../color-scale-slider-vertical-backdrop.png | Bin
.../color-scale-slider-vertical-backdrop 2 png | Bin
.../assets/color-scale-slider-vertical-hover.png | Bin
.../assets/color-scale-slider-vertical-hover 2 png | Bin
.../color-scale-slider-vertical-insensitive.png | Bin
.../color-scale-slider-vertical-insensitive 2 png | Bin
.../gstyle/assets/color-scale-slider-vertical.png | Bin
.../assets/color-scale-slider-vertical 2 png | Bin
.../gstyle/assets/render-assets-symbolic.py | 0
.../color-picker}/gstyle/assets/render-assets.sh | 0
.../gstyle/assets/unit-degree-symbolic.svg | 0
.../gstyle/assets/unit-percent-symbolic.svg | 0
.../color-picker}/gstyle/check-palette.sh | 0
.../color-picker}/gstyle/colorlexer-regen.sh | 0
.../color-picker}/gstyle/data/its/gstyle.its | 0
.../color-picker}/gstyle/data/its/gstyle.loc | 0
.../gstyle/data/palettes/basic.gstyle.xml | 0
.../color-picker}/gstyle/data/palettes/palette.rng | 0
.../color-picker}/gstyle/gstyle-animation.c | 0
.../color-picker}/gstyle/gstyle-animation.h | 0
.../color-picker}/gstyle/gstyle-cielab.c | 0
.../color-picker}/gstyle/gstyle-cielab.h | 0
.../color-picker}/gstyle/gstyle-color-component.c | 0
.../color-picker}/gstyle/gstyle-color-component.h | 0
.../color-picker}/gstyle/gstyle-color-convert.c | 0
.../color-picker}/gstyle/gstyle-color-convert.h | 0
.../color-picker}/gstyle/gstyle-color-filter.c | 0
.../color-picker}/gstyle/gstyle-color-filter.h | 0
.../color-picker}/gstyle/gstyle-color-item.c | 0
.../color-picker}/gstyle/gstyle-color-item.h | 0
.../gstyle/gstyle-color-panel-actions.c | 0
.../gstyle/gstyle-color-panel-actions.h | 0
.../gstyle/gstyle-color-panel-private.h | 6 ++--
.../color-picker}/gstyle/gstyle-color-panel.c | 4 +--
.../color-picker}/gstyle/gstyle-color-panel.h | 0
.../color-picker}/gstyle/gstyle-color-plane.c | 0
.../color-picker}/gstyle/gstyle-color-plane.h | 0
.../color-picker}/gstyle/gstyle-color-predefined.h | 0
.../color-picker}/gstyle/gstyle-color-scale.c | 0
.../color-picker}/gstyle/gstyle-color-scale.h | 0
.../gstyle/gstyle-color-widget-actions.c | 0
.../gstyle/gstyle-color-widget-actions.h | 0
.../color-picker}/gstyle/gstyle-color-widget.c | 8 ++---
.../color-picker}/gstyle/gstyle-color-widget.h | 5 ++-
.../color-picker}/gstyle/gstyle-color.c | 37 +++++++++++----------
.../color-picker}/gstyle/gstyle-color.h | 0
.../color-picker}/gstyle/gstyle-colorlexer.c | 0
.../color-picker}/gstyle/gstyle-colorlexer.h | 0
.../color-picker}/gstyle/gstyle-colorlexer.re | 0
.../color-picker}/gstyle/gstyle-css-provider.c | 0
.../color-picker}/gstyle/gstyle-css-provider.h | 0
src/{ => plugins/color-picker}/gstyle/gstyle-hsv.c | 0
src/{ => plugins/color-picker}/gstyle/gstyle-hsv.h | 0
.../color-picker}/gstyle/gstyle-palette-widget.c | 26 +++++++--------
.../color-picker}/gstyle/gstyle-palette-widget.h | 5 ++-
.../color-picker}/gstyle/gstyle-palette.c | 0
.../color-picker}/gstyle/gstyle-palette.h | 0
.../color-picker}/gstyle/gstyle-private.h | 0
.../color-picker}/gstyle/gstyle-rename-popover.c | 0
.../color-picker}/gstyle/gstyle-rename-popover.h | 0
.../color-picker}/gstyle/gstyle-revealer.c | 13 ++++----
.../color-picker}/gstyle/gstyle-revealer.h | 5 ++-
.../color-picker}/gstyle/gstyle-slidein.c | 12 +++----
.../color-picker}/gstyle/gstyle-slidein.h | 0
.../color-picker}/gstyle/gstyle-types.h | 0
.../color-picker}/gstyle/gstyle-utils.c | 0
.../color-picker}/gstyle/gstyle-utils.h | 0
src/{ => plugins/color-picker}/gstyle/gstyle-xyz.c | 0
src/{ => plugins/color-picker}/gstyle/gstyle-xyz.h | 0
.../color-picker}/gstyle/gstyle.gresource.xml | 0
src/{ => plugins/color-picker}/gstyle/meson.build | 3 +-
.../gstyle/tests/data/gstyle-color-editor.ui | 0
.../gstyle/tests/data/gstyle-filter.ui | 0
.../color-picker}/gstyle/tests/data/palette.gpl | 0
.../color-picker}/gstyle/tests/data/palette.xml | 0
.../color-picker}/gstyle/tests/data/sample0.jpg | Bin
.../color-picker}/gstyle/tests/data/sample1.jpg | Bin
.../color-picker}/gstyle/tests/meson.build | 0
.../gstyle/tests/test-gstyle-color-panel.c | 0
.../gstyle/tests/test-gstyle-color-plane.c | 0
.../gstyle/tests/test-gstyle-color-scale.c | 0
.../gstyle/tests/test-gstyle-color-widget.c | 0
.../color-picker}/gstyle/tests/test-gstyle-color.c | 0
.../gstyle/tests/test-gstyle-filter.c | 0
.../gstyle/tests/test-gstyle-palette-widget.c | 0
.../gstyle/tests/test-gstyle-palette.c | 0
.../color-picker}/gstyle/tests/test-gstyle-parse.c | 0
.../color-picker}/gstyle/theme/gstyle.css | 0
.../color-picker}/gstyle/ui/gstyle-color-panel.ui | 0
.../color-picker}/gstyle/ui/gstyle-color-widget.ui | 0
.../gstyle/ui/gstyle-palette-widget.ui | 0
.../gstyle/ui/gstyle-rename-popover.ui | 0
src/plugins/color-picker/meson.build | 2 ++
117 files changed, 76 insertions(+), 79 deletions(-)
---
diff --git a/po/POTFILES.in b/po/POTFILES.in
index d9cb11e66..40a4a5a54 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -17,20 +17,6 @@ data/style-schemes/Adwaita-dark.style-scheme.xml
data/style-schemes/Adwaita.style-scheme.xml
data/style-schemes/builder-dark.style-scheme.xml
data/style-schemes/builder.style-scheme.xml
-src/gstyle/data/palettes/basic.gstyle.xml
-src/gstyle/gstyle-color-panel.c
-src/gstyle/gstyle-color-plane.c
-src/gstyle/gstyle-color-scale.c
-src/gstyle/gstyle-color-widget-actions.c
-src/gstyle/gstyle-color-widget.c
-src/gstyle/gstyle-color.c
-src/gstyle/gstyle-palette-widget.c
-src/gstyle/gstyle-palette.c
-src/gstyle/gstyle-slidein.c
-src/gstyle/tests/data/gstyle-color-editor.ui
-src/gstyle/ui/gstyle-color-panel.ui
-src/gstyle/ui/gstyle-color-widget.ui
-src/gstyle/ui/gstyle-rename-popover.ui
src/libide/code/ide-buffer-change-monitor.c
src/libide/code/ide-buffer-manager.c
src/libide/code/ide-buffer.c
@@ -185,6 +171,20 @@ src/plugins/color-picker/gb-color-picker-editor-addin.c
src/plugins/color-picker/gb-color-picker-prefs-palette-row.c
src/plugins/color-picker/gb-color-picker-prefs.c
src/plugins/color-picker/gsettings/org.gnome.builder.plugins.color_picker_plugin.gschema.xml
+src/plugins/color-picker/gstyle/data/palettes/basic.gstyle.xml
+src/plugins/color-picker/gstyle/gstyle-color-panel.c
+src/plugins/color-picker/gstyle/gstyle-color-plane.c
+src/plugins/color-picker/gstyle/gstyle-color-scale.c
+src/plugins/color-picker/gstyle/gstyle-color-widget-actions.c
+src/plugins/color-picker/gstyle/gstyle-color-widget.c
+src/plugins/color-picker/gstyle/gstyle-color.c
+src/plugins/color-picker/gstyle/gstyle-palette-widget.c
+src/plugins/color-picker/gstyle/gstyle-palette.c
+src/plugins/color-picker/gstyle/gstyle-slidein.c
+src/plugins/color-picker/gstyle/tests/data/gstyle-color-editor.ui
+src/plugins/color-picker/gstyle/ui/gstyle-color-panel.ui
+src/plugins/color-picker/gstyle/ui/gstyle-color-widget.ui
+src/plugins/color-picker/gstyle/ui/gstyle-rename-popover.ui
src/plugins/color-picker/gtk/color-picker-palette-menu.ui
src/plugins/color-picker/gtk/color-picker-prefs.ui
src/plugins/color-picker/gtk/color-picker-preview.ui
diff --git a/src/meson.build b/src/meson.build
index 9128f766f..4b02709db 100644
--- a/src/meson.build
+++ b/src/meson.build
@@ -16,7 +16,6 @@ gnome_builder_gir_extra_args = ['--pkg-export=gnome-builder-1.0']
exe_link_args = []
exe_c_args = []
-subdir('gstyle')
subdir('libide')
subdir('tests')
subdir('plugins')
diff --git a/src/gstyle/OVERVIEW.md b/src/plugins/color-picker/gstyle/OVERVIEW.md
similarity index 100%
rename from src/gstyle/OVERVIEW.md
rename to src/plugins/color-picker/gstyle/OVERVIEW.md
diff --git a/src/gstyle/TODO.md b/src/plugins/color-picker/gstyle/TODO.md
similarity index 100%
rename from src/gstyle/TODO.md
rename to src/plugins/color-picker/gstyle/TODO.md
diff --git a/src/gstyle/assets/assets-symbolic.svg
b/src/plugins/color-picker/gstyle/assets/assets-symbolic.svg
similarity index 100%
rename from src/gstyle/assets/assets-symbolic.svg
rename to src/plugins/color-picker/gstyle/assets/assets-symbolic.svg
diff --git a/src/gstyle/assets/assets-symbolic.txt
b/src/plugins/color-picker/gstyle/assets/assets-symbolic.txt
similarity index 100%
rename from src/gstyle/assets/assets-symbolic.txt
rename to src/plugins/color-picker/gstyle/assets/assets-symbolic.txt
diff --git a/src/gstyle/assets/assets.svg b/src/plugins/color-picker/gstyle/assets/assets.svg
similarity index 100%
rename from src/gstyle/assets/assets.svg
rename to src/plugins/color-picker/gstyle/assets/assets.svg
diff --git a/src/gstyle/assets/assets.txt b/src/plugins/color-picker/gstyle/assets/assets.txt
similarity index 100%
rename from src/gstyle/assets/assets.txt
rename to src/plugins/color-picker/gstyle/assets/assets.txt
diff --git a/src/gstyle/assets/color-scale-slider-horizontal-active.png
b/src/plugins/color-picker/gstyle/assets/color-scale-slider-horizontal-active.png
similarity index 100%
rename from src/gstyle/assets/color-scale-slider-horizontal-active.png
rename to src/plugins/color-picker/gstyle/assets/color-scale-slider-horizontal-active.png
diff --git a/src/gstyle/assets/color-scale-slider-horizontal-active 2 png
b/src/plugins/color-picker/gstyle/assets/color-scale-slider-horizontal-active 2 png
similarity index 100%
rename from src/gstyle/assets/color-scale-slider-horizontal-active 2 png
rename to src/plugins/color-picker/gstyle/assets/color-scale-slider-horizontal-active 2 png
diff --git a/src/gstyle/assets/color-scale-slider-horizontal-backdrop-insensitive.png
b/src/plugins/color-picker/gstyle/assets/color-scale-slider-horizontal-backdrop-insensitive.png
similarity index 100%
rename from src/gstyle/assets/color-scale-slider-horizontal-backdrop-insensitive.png
rename to src/plugins/color-picker/gstyle/assets/color-scale-slider-horizontal-backdrop-insensitive.png
diff --git a/src/gstyle/assets/color-scale-slider-horizontal-backdrop-insensitive 2 png
b/src/plugins/color-picker/gstyle/assets/color-scale-slider-horizontal-backdrop-insensitive 2 png
similarity index 100%
rename from src/gstyle/assets/color-scale-slider-horizontal-backdrop-insensitive 2 png
rename to src/plugins/color-picker/gstyle/assets/color-scale-slider-horizontal-backdrop-insensitive 2 png
diff --git a/src/gstyle/assets/color-scale-slider-horizontal-backdrop.png
b/src/plugins/color-picker/gstyle/assets/color-scale-slider-horizontal-backdrop.png
similarity index 100%
rename from src/gstyle/assets/color-scale-slider-horizontal-backdrop.png
rename to src/plugins/color-picker/gstyle/assets/color-scale-slider-horizontal-backdrop.png
diff --git a/src/gstyle/assets/color-scale-slider-horizontal-backdrop 2 png
b/src/plugins/color-picker/gstyle/assets/color-scale-slider-horizontal-backdrop 2 png
similarity index 100%
rename from src/gstyle/assets/color-scale-slider-horizontal-backdrop 2 png
rename to src/plugins/color-picker/gstyle/assets/color-scale-slider-horizontal-backdrop 2 png
diff --git a/src/gstyle/assets/color-scale-slider-horizontal-hover.png
b/src/plugins/color-picker/gstyle/assets/color-scale-slider-horizontal-hover.png
similarity index 100%
rename from src/gstyle/assets/color-scale-slider-horizontal-hover.png
rename to src/plugins/color-picker/gstyle/assets/color-scale-slider-horizontal-hover.png
diff --git a/src/gstyle/assets/color-scale-slider-horizontal-hover 2 png
b/src/plugins/color-picker/gstyle/assets/color-scale-slider-horizontal-hover 2 png
similarity index 100%
rename from src/gstyle/assets/color-scale-slider-horizontal-hover 2 png
rename to src/plugins/color-picker/gstyle/assets/color-scale-slider-horizontal-hover 2 png
diff --git a/src/gstyle/assets/color-scale-slider-horizontal-insensitive.png
b/src/plugins/color-picker/gstyle/assets/color-scale-slider-horizontal-insensitive.png
similarity index 100%
rename from src/gstyle/assets/color-scale-slider-horizontal-insensitive.png
rename to src/plugins/color-picker/gstyle/assets/color-scale-slider-horizontal-insensitive.png
diff --git a/src/gstyle/assets/color-scale-slider-horizontal-insensitive 2 png
b/src/plugins/color-picker/gstyle/assets/color-scale-slider-horizontal-insensitive 2 png
similarity index 100%
rename from src/gstyle/assets/color-scale-slider-horizontal-insensitive 2 png
rename to src/plugins/color-picker/gstyle/assets/color-scale-slider-horizontal-insensitive 2 png
diff --git a/src/gstyle/assets/color-scale-slider-horizontal.png
b/src/plugins/color-picker/gstyle/assets/color-scale-slider-horizontal.png
similarity index 100%
rename from src/gstyle/assets/color-scale-slider-horizontal.png
rename to src/plugins/color-picker/gstyle/assets/color-scale-slider-horizontal.png
diff --git a/src/gstyle/assets/color-scale-slider-horizontal 2 png
b/src/plugins/color-picker/gstyle/assets/color-scale-slider-horizontal 2 png
similarity index 100%
rename from src/gstyle/assets/color-scale-slider-horizontal 2 png
rename to src/plugins/color-picker/gstyle/assets/color-scale-slider-horizontal 2 png
diff --git a/src/gstyle/assets/color-scale-slider-vertical-active.png
b/src/plugins/color-picker/gstyle/assets/color-scale-slider-vertical-active.png
similarity index 100%
rename from src/gstyle/assets/color-scale-slider-vertical-active.png
rename to src/plugins/color-picker/gstyle/assets/color-scale-slider-vertical-active.png
diff --git a/src/gstyle/assets/color-scale-slider-vertical-active 2 png
b/src/plugins/color-picker/gstyle/assets/color-scale-slider-vertical-active 2 png
similarity index 100%
rename from src/gstyle/assets/color-scale-slider-vertical-active 2 png
rename to src/plugins/color-picker/gstyle/assets/color-scale-slider-vertical-active 2 png
diff --git a/src/gstyle/assets/color-scale-slider-vertical-backdrop-insensitive.png
b/src/plugins/color-picker/gstyle/assets/color-scale-slider-vertical-backdrop-insensitive.png
similarity index 100%
rename from src/gstyle/assets/color-scale-slider-vertical-backdrop-insensitive.png
rename to src/plugins/color-picker/gstyle/assets/color-scale-slider-vertical-backdrop-insensitive.png
diff --git a/src/gstyle/assets/color-scale-slider-vertical-backdrop-insensitive 2 png
b/src/plugins/color-picker/gstyle/assets/color-scale-slider-vertical-backdrop-insensitive 2 png
similarity index 100%
rename from src/gstyle/assets/color-scale-slider-vertical-backdrop-insensitive 2 png
rename to src/plugins/color-picker/gstyle/assets/color-scale-slider-vertical-backdrop-insensitive 2 png
diff --git a/src/gstyle/assets/color-scale-slider-vertical-backdrop.png
b/src/plugins/color-picker/gstyle/assets/color-scale-slider-vertical-backdrop.png
similarity index 100%
rename from src/gstyle/assets/color-scale-slider-vertical-backdrop.png
rename to src/plugins/color-picker/gstyle/assets/color-scale-slider-vertical-backdrop.png
diff --git a/src/gstyle/assets/color-scale-slider-vertical-backdrop 2 png
b/src/plugins/color-picker/gstyle/assets/color-scale-slider-vertical-backdrop 2 png
similarity index 100%
rename from src/gstyle/assets/color-scale-slider-vertical-backdrop 2 png
rename to src/plugins/color-picker/gstyle/assets/color-scale-slider-vertical-backdrop 2 png
diff --git a/src/gstyle/assets/color-scale-slider-vertical-hover.png
b/src/plugins/color-picker/gstyle/assets/color-scale-slider-vertical-hover.png
similarity index 100%
rename from src/gstyle/assets/color-scale-slider-vertical-hover.png
rename to src/plugins/color-picker/gstyle/assets/color-scale-slider-vertical-hover.png
diff --git a/src/gstyle/assets/color-scale-slider-vertical-hover 2 png
b/src/plugins/color-picker/gstyle/assets/color-scale-slider-vertical-hover 2 png
similarity index 100%
rename from src/gstyle/assets/color-scale-slider-vertical-hover 2 png
rename to src/plugins/color-picker/gstyle/assets/color-scale-slider-vertical-hover 2 png
diff --git a/src/gstyle/assets/color-scale-slider-vertical-insensitive.png
b/src/plugins/color-picker/gstyle/assets/color-scale-slider-vertical-insensitive.png
similarity index 100%
rename from src/gstyle/assets/color-scale-slider-vertical-insensitive.png
rename to src/plugins/color-picker/gstyle/assets/color-scale-slider-vertical-insensitive.png
diff --git a/src/gstyle/assets/color-scale-slider-vertical-insensitive 2 png
b/src/plugins/color-picker/gstyle/assets/color-scale-slider-vertical-insensitive 2 png
similarity index 100%
rename from src/gstyle/assets/color-scale-slider-vertical-insensitive 2 png
rename to src/plugins/color-picker/gstyle/assets/color-scale-slider-vertical-insensitive 2 png
diff --git a/src/gstyle/assets/color-scale-slider-vertical.png
b/src/plugins/color-picker/gstyle/assets/color-scale-slider-vertical.png
similarity index 100%
rename from src/gstyle/assets/color-scale-slider-vertical.png
rename to src/plugins/color-picker/gstyle/assets/color-scale-slider-vertical.png
diff --git a/src/gstyle/assets/color-scale-slider-vertical 2 png
b/src/plugins/color-picker/gstyle/assets/color-scale-slider-vertical 2 png
similarity index 100%
rename from src/gstyle/assets/color-scale-slider-vertical 2 png
rename to src/plugins/color-picker/gstyle/assets/color-scale-slider-vertical 2 png
diff --git a/src/gstyle/assets/render-assets-symbolic.py
b/src/plugins/color-picker/gstyle/assets/render-assets-symbolic.py
similarity index 100%
rename from src/gstyle/assets/render-assets-symbolic.py
rename to src/plugins/color-picker/gstyle/assets/render-assets-symbolic.py
diff --git a/src/gstyle/assets/render-assets.sh b/src/plugins/color-picker/gstyle/assets/render-assets.sh
similarity index 100%
rename from src/gstyle/assets/render-assets.sh
rename to src/plugins/color-picker/gstyle/assets/render-assets.sh
diff --git a/src/gstyle/assets/unit-degree-symbolic.svg
b/src/plugins/color-picker/gstyle/assets/unit-degree-symbolic.svg
similarity index 100%
rename from src/gstyle/assets/unit-degree-symbolic.svg
rename to src/plugins/color-picker/gstyle/assets/unit-degree-symbolic.svg
diff --git a/src/gstyle/assets/unit-percent-symbolic.svg
b/src/plugins/color-picker/gstyle/assets/unit-percent-symbolic.svg
similarity index 100%
rename from src/gstyle/assets/unit-percent-symbolic.svg
rename to src/plugins/color-picker/gstyle/assets/unit-percent-symbolic.svg
diff --git a/src/gstyle/check-palette.sh b/src/plugins/color-picker/gstyle/check-palette.sh
similarity index 100%
rename from src/gstyle/check-palette.sh
rename to src/plugins/color-picker/gstyle/check-palette.sh
diff --git a/src/gstyle/colorlexer-regen.sh b/src/plugins/color-picker/gstyle/colorlexer-regen.sh
similarity index 100%
rename from src/gstyle/colorlexer-regen.sh
rename to src/plugins/color-picker/gstyle/colorlexer-regen.sh
diff --git a/src/gstyle/data/its/gstyle.its b/src/plugins/color-picker/gstyle/data/its/gstyle.its
similarity index 100%
rename from src/gstyle/data/its/gstyle.its
rename to src/plugins/color-picker/gstyle/data/its/gstyle.its
diff --git a/src/gstyle/data/its/gstyle.loc b/src/plugins/color-picker/gstyle/data/its/gstyle.loc
similarity index 100%
rename from src/gstyle/data/its/gstyle.loc
rename to src/plugins/color-picker/gstyle/data/its/gstyle.loc
diff --git a/src/gstyle/data/palettes/basic.gstyle.xml
b/src/plugins/color-picker/gstyle/data/palettes/basic.gstyle.xml
similarity index 100%
rename from src/gstyle/data/palettes/basic.gstyle.xml
rename to src/plugins/color-picker/gstyle/data/palettes/basic.gstyle.xml
diff --git a/src/gstyle/data/palettes/palette.rng b/src/plugins/color-picker/gstyle/data/palettes/palette.rng
similarity index 100%
rename from src/gstyle/data/palettes/palette.rng
rename to src/plugins/color-picker/gstyle/data/palettes/palette.rng
diff --git a/src/gstyle/gstyle-animation.c b/src/plugins/color-picker/gstyle/gstyle-animation.c
similarity index 100%
rename from src/gstyle/gstyle-animation.c
rename to src/plugins/color-picker/gstyle/gstyle-animation.c
diff --git a/src/gstyle/gstyle-animation.h b/src/plugins/color-picker/gstyle/gstyle-animation.h
similarity index 100%
rename from src/gstyle/gstyle-animation.h
rename to src/plugins/color-picker/gstyle/gstyle-animation.h
diff --git a/src/gstyle/gstyle-cielab.c b/src/plugins/color-picker/gstyle/gstyle-cielab.c
similarity index 100%
rename from src/gstyle/gstyle-cielab.c
rename to src/plugins/color-picker/gstyle/gstyle-cielab.c
diff --git a/src/gstyle/gstyle-cielab.h b/src/plugins/color-picker/gstyle/gstyle-cielab.h
similarity index 100%
rename from src/gstyle/gstyle-cielab.h
rename to src/plugins/color-picker/gstyle/gstyle-cielab.h
diff --git a/src/gstyle/gstyle-color-component.c b/src/plugins/color-picker/gstyle/gstyle-color-component.c
similarity index 100%
rename from src/gstyle/gstyle-color-component.c
rename to src/plugins/color-picker/gstyle/gstyle-color-component.c
diff --git a/src/gstyle/gstyle-color-component.h b/src/plugins/color-picker/gstyle/gstyle-color-component.h
similarity index 100%
rename from src/gstyle/gstyle-color-component.h
rename to src/plugins/color-picker/gstyle/gstyle-color-component.h
diff --git a/src/gstyle/gstyle-color-convert.c b/src/plugins/color-picker/gstyle/gstyle-color-convert.c
similarity index 100%
rename from src/gstyle/gstyle-color-convert.c
rename to src/plugins/color-picker/gstyle/gstyle-color-convert.c
diff --git a/src/gstyle/gstyle-color-convert.h b/src/plugins/color-picker/gstyle/gstyle-color-convert.h
similarity index 100%
rename from src/gstyle/gstyle-color-convert.h
rename to src/plugins/color-picker/gstyle/gstyle-color-convert.h
diff --git a/src/gstyle/gstyle-color-filter.c b/src/plugins/color-picker/gstyle/gstyle-color-filter.c
similarity index 100%
rename from src/gstyle/gstyle-color-filter.c
rename to src/plugins/color-picker/gstyle/gstyle-color-filter.c
diff --git a/src/gstyle/gstyle-color-filter.h b/src/plugins/color-picker/gstyle/gstyle-color-filter.h
similarity index 100%
rename from src/gstyle/gstyle-color-filter.h
rename to src/plugins/color-picker/gstyle/gstyle-color-filter.h
diff --git a/src/gstyle/gstyle-color-item.c b/src/plugins/color-picker/gstyle/gstyle-color-item.c
similarity index 100%
rename from src/gstyle/gstyle-color-item.c
rename to src/plugins/color-picker/gstyle/gstyle-color-item.c
diff --git a/src/gstyle/gstyle-color-item.h b/src/plugins/color-picker/gstyle/gstyle-color-item.h
similarity index 100%
rename from src/gstyle/gstyle-color-item.h
rename to src/plugins/color-picker/gstyle/gstyle-color-item.h
diff --git a/src/gstyle/gstyle-color-panel-actions.c
b/src/plugins/color-picker/gstyle/gstyle-color-panel-actions.c
similarity index 100%
rename from src/gstyle/gstyle-color-panel-actions.c
rename to src/plugins/color-picker/gstyle/gstyle-color-panel-actions.c
diff --git a/src/gstyle/gstyle-color-panel-actions.h
b/src/plugins/color-picker/gstyle/gstyle-color-panel-actions.h
similarity index 100%
rename from src/gstyle/gstyle-color-panel-actions.h
rename to src/plugins/color-picker/gstyle/gstyle-color-panel-actions.h
diff --git a/src/gstyle/gstyle-color-panel-private.h
b/src/plugins/color-picker/gstyle/gstyle-color-panel-private.h
similarity index 98%
rename from src/gstyle/gstyle-color-panel-private.h
rename to src/plugins/color-picker/gstyle/gstyle-color-panel-private.h
index db70b21ab..dedbd50c3 100644
--- a/src/gstyle/gstyle-color-panel-private.h
+++ b/src/plugins/color-picker/gstyle/gstyle-color-panel-private.h
@@ -20,9 +20,7 @@
#pragma once
-#include <glib-object.h>
-
-#include <dazzle.h>
+#include <libide-search.h>
#include "gstyle-cielab.h"
#include "gstyle-color.h"
@@ -75,7 +73,7 @@ struct _GstyleColorPanel
GtkWidget *search_strings_popover;
GtkWidget *search_strings_list;
- DzlFuzzyMutableIndex *fuzzy;
+ IdeFuzzyMutableIndex *fuzzy;
GtkToggleButton *components_toggle;
GtkToggleButton *strings_toggle;
diff --git a/src/gstyle/gstyle-color-panel.c b/src/plugins/color-picker/gstyle/gstyle-color-panel.c
similarity index 99%
rename from src/gstyle/gstyle-color-panel.c
rename to src/plugins/color-picker/gstyle/gstyle-color-panel.c
index a6295c168..8638ba769 100644
--- a/src/gstyle/gstyle-color-panel.c
+++ b/src/plugins/color-picker/gstyle/gstyle-color-panel.c
@@ -725,10 +725,10 @@ search_strings_list_sort_func (GtkListBoxRow *row1,
const gchar *name1;
const gchar *name2;
- cw1 = GSTYLE_COLOR_WIDGET (gtk_bin_get_child (GTK_BIN (row1)));
+ cw1 = GSTYLE_COLOR_WIDGET (adw_bin_get_child (ADW_BIN (row1)));
name1 = gstyle_color_get_name (gstyle_color_widget_get_color (cw1));
- cw2 = GSTYLE_COLOR_WIDGET (gtk_bin_get_child (GTK_BIN (row2)));
+ cw2 = GSTYLE_COLOR_WIDGET (adw_bin_get_child (ADW_BIN (row2)));
name2 = gstyle_color_get_name (gstyle_color_widget_get_color (cw2));
return g_strcmp0 (name1, name2);
diff --git a/src/gstyle/gstyle-color-panel.h b/src/plugins/color-picker/gstyle/gstyle-color-panel.h
similarity index 100%
rename from src/gstyle/gstyle-color-panel.h
rename to src/plugins/color-picker/gstyle/gstyle-color-panel.h
diff --git a/src/gstyle/gstyle-color-plane.c b/src/plugins/color-picker/gstyle/gstyle-color-plane.c
similarity index 100%
rename from src/gstyle/gstyle-color-plane.c
rename to src/plugins/color-picker/gstyle/gstyle-color-plane.c
diff --git a/src/gstyle/gstyle-color-plane.h b/src/plugins/color-picker/gstyle/gstyle-color-plane.h
similarity index 100%
rename from src/gstyle/gstyle-color-plane.h
rename to src/plugins/color-picker/gstyle/gstyle-color-plane.h
diff --git a/src/gstyle/gstyle-color-predefined.h b/src/plugins/color-picker/gstyle/gstyle-color-predefined.h
similarity index 100%
rename from src/gstyle/gstyle-color-predefined.h
rename to src/plugins/color-picker/gstyle/gstyle-color-predefined.h
diff --git a/src/gstyle/gstyle-color-scale.c b/src/plugins/color-picker/gstyle/gstyle-color-scale.c
similarity index 100%
rename from src/gstyle/gstyle-color-scale.c
rename to src/plugins/color-picker/gstyle/gstyle-color-scale.c
diff --git a/src/gstyle/gstyle-color-scale.h b/src/plugins/color-picker/gstyle/gstyle-color-scale.h
similarity index 100%
rename from src/gstyle/gstyle-color-scale.h
rename to src/plugins/color-picker/gstyle/gstyle-color-scale.h
diff --git a/src/gstyle/gstyle-color-widget-actions.c
b/src/plugins/color-picker/gstyle/gstyle-color-widget-actions.c
similarity index 100%
rename from src/gstyle/gstyle-color-widget-actions.c
rename to src/plugins/color-picker/gstyle/gstyle-color-widget-actions.c
diff --git a/src/gstyle/gstyle-color-widget-actions.h
b/src/plugins/color-picker/gstyle/gstyle-color-widget-actions.h
similarity index 100%
rename from src/gstyle/gstyle-color-widget-actions.h
rename to src/plugins/color-picker/gstyle/gstyle-color-widget-actions.h
diff --git a/src/gstyle/gstyle-color-widget.c b/src/plugins/color-picker/gstyle/gstyle-color-widget.c
similarity index 99%
rename from src/gstyle/gstyle-color-widget.c
rename to src/plugins/color-picker/gstyle/gstyle-color-widget.c
index 014835ba3..b8fa46d1a 100644
--- a/src/gstyle/gstyle-color-widget.c
+++ b/src/plugins/color-picker/gstyle/gstyle-color-widget.c
@@ -34,7 +34,7 @@
struct _GstyleColorWidget
{
- GtkBin parent_instance;
+ AdwBin parent_instance;
GstyleCssProvider *default_provider;
@@ -65,7 +65,7 @@ struct _GstyleColorWidget
guint is_fallback_name_visible : 1;
};
-G_DEFINE_FINAL_TYPE (GstyleColorWidget, gstyle_color_widget, GTK_TYPE_BIN)
+G_DEFINE_FINAL_TYPE (GstyleColorWidget, gstyle_color_widget, ADW_TYPE_BIN)
#define GSTYLE_COLOR_WIDGET_DROP_BORDER_PERCENT 0.20
#define GSTYLE_COLOR_WIDGET_DRAG_ICON_OPACITY 0.8
@@ -652,7 +652,7 @@ gstyle_color_widget_get_preferred_width (GtkWidget *widget,
update_border_and_margin (self);
- child = gtk_bin_get_child (GTK_BIN (self));
+ child = adw_bin_get_child (ADW_BIN (self));
if (child && gtk_widget_get_visible (child))
gtk_widget_get_preferred_width (child, min_width, nat_width);
@@ -681,7 +681,7 @@ gstyle_color_widget_get_preferred_height (GtkWidget *widget,
update_border_and_margin (self);
- child = gtk_bin_get_child (GTK_BIN (self));
+ child = adw_bin_get_child (ADW_BIN (self));
if (child && gtk_widget_get_visible (child))
gtk_widget_get_preferred_height (child, min_height, nat_height);
diff --git a/src/gstyle/gstyle-color-widget.h b/src/plugins/color-picker/gstyle/gstyle-color-widget.h
similarity index 98%
rename from src/gstyle/gstyle-color-widget.h
rename to src/plugins/color-picker/gstyle/gstyle-color-widget.h
index 46db82dcb..d4f93f98f 100644
--- a/src/gstyle/gstyle-color-widget.h
+++ b/src/plugins/color-picker/gstyle/gstyle-color-widget.h
@@ -20,8 +20,7 @@
#pragma once
-#include <glib-object.h>
-#include <gtk/gtk.h>
+#include <adwaita.h>
#include "gstyle-color.h"
#include "gstyle-color-filter.h"
@@ -45,7 +44,7 @@ typedef enum
#define GSTYLE_TYPE_COLOR_WIDGET (gstyle_color_widget_get_type())
#define GSTYLE_TYPE_COLOR_WIDGET_DND_LOCK_FLAGS (gstyle_color_widget_dnd_lock_flags_get_type ())
-G_DECLARE_FINAL_TYPE (GstyleColorWidget, gstyle_color_widget, GSTYLE, COLOR_WIDGET, GtkBin)
+G_DECLARE_FINAL_TYPE (GstyleColorWidget, gstyle_color_widget, GSTYLE, COLOR_WIDGET, AdwBin)
GType gstyle_color_widget_dnd_lock_flags_get_type (void);
diff --git a/src/gstyle/gstyle-color.c b/src/plugins/color-picker/gstyle/gstyle-color.c
similarity index 97%
rename from src/gstyle/gstyle-color.c
rename to src/plugins/color-picker/gstyle/gstyle-color.c
index 5b48d5172..4863ab777 100644
--- a/src/gstyle/gstyle-color.c
+++ b/src/plugins/color-picker/gstyle/gstyle-color.c
@@ -20,10 +20,11 @@
#include <math.h>
-#include <dazzle.h>
#include <glib.h>
#include <glib/gi18n.h>
+#include <libide-search.h>
+
#include "gstyle-private.h"
#include "gstyle-colorlexer.h"
#include "gstyle-color-convert.h"
@@ -544,7 +545,7 @@ parse_components (GstyleColorScanner *s)
static gboolean
convert_component (GstyleColorComponent comp,
ComponentRange range,
- gdouble *number)
+ float *number)
{
gdouble n = comp.value;
@@ -568,7 +569,7 @@ convert_component (GstyleColorComponent comp,
static gboolean
convert_hue_component (GstyleColorComponent comp,
- gdouble *hue)
+ float *hue)
{
gdouble num = comp.value;
@@ -642,9 +643,9 @@ _parse_hsla_string (const gchar *string,
{
GstyleColorScanner s;
g_autoptr (GArray) ar = NULL;
- gdouble hue;
- gdouble saturation;
- gdouble lightness;
+ float hue;
+ float saturation;
+ float lightness;
gboolean has_alpha = FALSE;
gboolean ret;
@@ -687,25 +688,25 @@ _parse_hsla_string (const gchar *string,
}
/* TODO: add a public func to init so we can control the initial starting time ? */
-static DzlFuzzyMutableIndex *
+static IdeFuzzyMutableIndex *
_init_predefined_table (void)
{
- static DzlFuzzyMutableIndex *predefined_table;
+ static IdeFuzzyMutableIndex *predefined_table;
NamedColor *item;
if (predefined_table == NULL)
{
- predefined_table = dzl_fuzzy_mutable_index_new (TRUE);
+ predefined_table = ide_fuzzy_mutable_index_new (TRUE);
- dzl_fuzzy_mutable_index_begin_bulk_insert (predefined_table);
+ ide_fuzzy_mutable_index_begin_bulk_insert (predefined_table);
for (guint i = 0; i < G_N_ELEMENTS (predefined_colors_table); ++i)
{
item = &predefined_colors_table [i];
item->index = i;
- dzl_fuzzy_mutable_index_insert (predefined_table, item->name, (gpointer)item);
+ ide_fuzzy_mutable_index_insert (predefined_table, item->name, (gpointer)item);
}
- dzl_fuzzy_mutable_index_end_bulk_insert (predefined_table);
+ ide_fuzzy_mutable_index_end_bulk_insert (predefined_table);
}
return predefined_table;
@@ -719,13 +720,13 @@ _parse_predefined_color (const gchar *color_string,
g_autoptr (GArray) results = NULL;
NamedColor *item = NULL;
gint len;
- DzlFuzzyMutableIndex *predefined_table = _init_predefined_table ();
+ IdeFuzzyMutableIndex *predefined_table = _init_predefined_table ();
- results = dzl_fuzzy_mutable_index_match (predefined_table, color_string, 10);
+ results = ide_fuzzy_mutable_index_match (predefined_table, color_string, 10);
len = results->len;
for (gint i = 0; i < len; ++i)
{
- const DzlFuzzyMutableIndexMatch *match = &g_array_index (results, DzlFuzzyMutableIndexMatch, i);
+ const IdeFuzzyMutableIndexMatch *match = &g_array_index (results, IdeFuzzyMutableIndexMatch, i);
if (g_strcmp0 (color_string, match->key) == 0)
{
@@ -760,14 +761,14 @@ gstyle_color_fuzzy_parse_color_string (const gchar *color_string)
GdkRGBA rgba;
gint len;
- DzlFuzzyMutableIndex *predefined_table = _init_predefined_table ();
+ IdeFuzzyMutableIndex *predefined_table = _init_predefined_table ();
results = g_ptr_array_new_with_free_func (g_object_unref);
- fuzzy_results = dzl_fuzzy_mutable_index_match (predefined_table, color_string,
GSTYLE_COLOR_FUZZY_SEARCH_MAX_LEN);
+ fuzzy_results = ide_fuzzy_mutable_index_match (predefined_table, color_string,
GSTYLE_COLOR_FUZZY_SEARCH_MAX_LEN);
len = MIN (GSTYLE_COLOR_FUZZY_SEARCH_MAX_LEN, fuzzy_results->len);
for (gint i = 0; i < len; ++i)
{
- const DzlFuzzyMutableIndexMatch *match = &g_array_index (fuzzy_results, DzlFuzzyMutableIndexMatch, i);
+ const IdeFuzzyMutableIndexMatch *match = &g_array_index (fuzzy_results, IdeFuzzyMutableIndexMatch, i);
item = match->value;
rgba.red = item->red / 255.0;
diff --git a/src/gstyle/gstyle-color.h b/src/plugins/color-picker/gstyle/gstyle-color.h
similarity index 100%
rename from src/gstyle/gstyle-color.h
rename to src/plugins/color-picker/gstyle/gstyle-color.h
diff --git a/src/gstyle/gstyle-colorlexer.c b/src/plugins/color-picker/gstyle/gstyle-colorlexer.c
similarity index 100%
rename from src/gstyle/gstyle-colorlexer.c
rename to src/plugins/color-picker/gstyle/gstyle-colorlexer.c
diff --git a/src/gstyle/gstyle-colorlexer.h b/src/plugins/color-picker/gstyle/gstyle-colorlexer.h
similarity index 100%
rename from src/gstyle/gstyle-colorlexer.h
rename to src/plugins/color-picker/gstyle/gstyle-colorlexer.h
diff --git a/src/gstyle/gstyle-colorlexer.re b/src/plugins/color-picker/gstyle/gstyle-colorlexer.re
similarity index 100%
rename from src/gstyle/gstyle-colorlexer.re
rename to src/plugins/color-picker/gstyle/gstyle-colorlexer.re
diff --git a/src/gstyle/gstyle-css-provider.c b/src/plugins/color-picker/gstyle/gstyle-css-provider.c
similarity index 100%
rename from src/gstyle/gstyle-css-provider.c
rename to src/plugins/color-picker/gstyle/gstyle-css-provider.c
diff --git a/src/gstyle/gstyle-css-provider.h b/src/plugins/color-picker/gstyle/gstyle-css-provider.h
similarity index 100%
rename from src/gstyle/gstyle-css-provider.h
rename to src/plugins/color-picker/gstyle/gstyle-css-provider.h
diff --git a/src/gstyle/gstyle-hsv.c b/src/plugins/color-picker/gstyle/gstyle-hsv.c
similarity index 100%
rename from src/gstyle/gstyle-hsv.c
rename to src/plugins/color-picker/gstyle/gstyle-hsv.c
diff --git a/src/gstyle/gstyle-hsv.h b/src/plugins/color-picker/gstyle/gstyle-hsv.h
similarity index 100%
rename from src/gstyle/gstyle-hsv.h
rename to src/plugins/color-picker/gstyle/gstyle-hsv.h
diff --git a/src/gstyle/gstyle-palette-widget.c b/src/plugins/color-picker/gstyle/gstyle-palette-widget.c
similarity index 98%
rename from src/gstyle/gstyle-palette-widget.c
rename to src/plugins/color-picker/gstyle/gstyle-palette-widget.c
index 0f0054af5..59217ac70 100644
--- a/src/gstyle/gstyle-palette-widget.c
+++ b/src/plugins/color-picker/gstyle/gstyle-palette-widget.c
@@ -41,7 +41,7 @@
struct _GstylePaletteWidget
{
- GtkBin parent_instance;
+ AdwBin parent_instance;
GstyleCssProvider *default_provider;
GListStore *palettes;
@@ -71,7 +71,7 @@ struct _GstylePaletteWidget
guint is_dnd_at_end : 1;
};
-G_DEFINE_FINAL_TYPE (GstylePaletteWidget, gstyle_palette_widget, GTK_TYPE_BIN)
+G_DEFINE_FINAL_TYPE (GstylePaletteWidget, gstyle_palette_widget, ADW_TYPE_BIN)
#define GSTYLE_DND_SPEED_THRESHOLD 50
#define DND_INDEX_START (G_MININT)
@@ -223,7 +223,7 @@ dnd_get_index_from_cursor (GstylePaletteWidget *self,
gint y,
CursorInfo *info)
{
- GtkBin *bin_child;
+ AdwBin *bin_child;
GtkAllocation alloc;
gint len;
@@ -233,7 +233,7 @@ dnd_get_index_from_cursor (GstylePaletteWidget *self,
if (self->view_mode == GSTYLE_PALETTE_WIDGET_VIEW_MODE_LIST)
{
gtk_widget_translate_coordinates (GTK_WIDGET (self), self->listbox, x, y, &info->dest_x,
&info->dest_y);
- bin_child = GTK_BIN (gtk_list_box_get_row_at_y (GTK_LIST_BOX (self->listbox), info->dest_y));
+ bin_child = ADW_BIN (gtk_list_box_get_row_at_y (GTK_LIST_BOX (self->listbox), info->dest_y));
if (bin_child == NULL)
{
/* No child mean we are at list start or at list end */
@@ -241,47 +241,47 @@ dnd_get_index_from_cursor (GstylePaletteWidget *self,
if (len == 0)
return FALSE;
- bin_child = GTK_BIN (gtk_list_box_get_row_at_index (GTK_LIST_BOX (self->listbox), 0));
+ bin_child = ADW_BIN (gtk_list_box_get_row_at_index (GTK_LIST_BOX (self->listbox), 0));
gtk_widget_get_allocated_size (GTK_WIDGET (bin_child), &alloc, NULL);
if (info->dest_y < alloc.y)
{
info->index = 0;
- info->child = GSTYLE_COLOR_WIDGET (gtk_bin_get_child (GTK_BIN (bin_child)));
+ info->child = GSTYLE_COLOR_WIDGET (adw_bin_get_child (ADW_BIN (bin_child)));
return TRUE;
}
- bin_child = GTK_BIN (gtk_list_box_get_row_at_index (GTK_LIST_BOX (self->listbox), len - 1));
+ bin_child = ADW_BIN (gtk_list_box_get_row_at_index (GTK_LIST_BOX (self->listbox), len - 1));
}
info->index = gtk_list_box_row_get_index (GTK_LIST_BOX_ROW (bin_child));
- info->child = GSTYLE_COLOR_WIDGET (gtk_bin_get_child (GTK_BIN (bin_child)));
+ info->child = GSTYLE_COLOR_WIDGET (adw_bin_get_child (ADW_BIN (bin_child)));
}
else
{
gtk_widget_translate_coordinates (GTK_WIDGET (self), self->flowbox, x, y, &info->dest_x,
&info->dest_y);
- bin_child = GTK_BIN (flowbox_get_child_at_xy (self, info->dest_x, info->dest_y, &info->index,
&info->nb_col));
+ bin_child = ADW_BIN (flowbox_get_child_at_xy (self, info->dest_x, info->dest_y, &info->index,
&info->nb_col));
if (bin_child == NULL)
{
len = gstyle_palette_get_len (self->selected_palette);
if (len == 0)
return FALSE;
- bin_child = GTK_BIN (gtk_flow_box_get_child_at_index (GTK_FLOW_BOX (self->flowbox), 0));
+ bin_child = ADW_BIN (gtk_flow_box_get_child_at_index (GTK_FLOW_BOX (self->flowbox), 0));
gtk_widget_get_allocated_size (GTK_WIDGET (bin_child), &alloc, NULL);
if (info->dest_x < alloc.x && info->dest_y < alloc.y + alloc.height)
{
info->index = 0;
- info->child = GSTYLE_COLOR_WIDGET (gtk_bin_get_child (GTK_BIN (bin_child)));
+ info->child = GSTYLE_COLOR_WIDGET (adw_bin_get_child (ADW_BIN (bin_child)));
return TRUE;
}
- bin_child = GTK_BIN (gtk_flow_box_get_child_at_index (GTK_FLOW_BOX (self->flowbox), len - 1));
+ bin_child = ADW_BIN (gtk_flow_box_get_child_at_index (GTK_FLOW_BOX (self->flowbox), len - 1));
gtk_widget_get_allocated_size (GTK_WIDGET (bin_child), &alloc, NULL);
info->dest_x = alloc.x + alloc.width;
}
info->index = gtk_flow_box_child_get_index (GTK_FLOW_BOX_CHILD (bin_child));
- info->child = GSTYLE_COLOR_WIDGET (gtk_bin_get_child (GTK_BIN (bin_child)));
+ info->child = GSTYLE_COLOR_WIDGET (adw_bin_get_child (ADW_BIN (bin_child)));
}
return TRUE;
diff --git a/src/gstyle/gstyle-palette-widget.h b/src/plugins/color-picker/gstyle/gstyle-palette-widget.h
similarity index 98%
rename from src/gstyle/gstyle-palette-widget.h
rename to src/plugins/color-picker/gstyle/gstyle-palette-widget.h
index 621b1dd4d..a5d4b1bb5 100644
--- a/src/gstyle/gstyle-palette-widget.h
+++ b/src/plugins/color-picker/gstyle/gstyle-palette-widget.h
@@ -20,8 +20,7 @@
#pragma once
-#include <glib-object.h>
-#include <gtk/gtk.h>
+#include <adwaita.h>
#include "gstyle-palette.h"
#include "gstyle-types.h"
@@ -33,7 +32,7 @@ G_BEGIN_DECLS
#define GSTYLE_TYPE_PALETTE_WIDGET_VIEW_MODE (gstyle_palette_widget_view_mode_get_type())
#define GSTYLE_TYPE_PALETTE_WIDGET_SORT_MODE (gstyle_palette_widget_sort_mode_get_type())
-G_DECLARE_FINAL_TYPE (GstylePaletteWidget, gstyle_palette_widget, GSTYLE, PALETTE_WIDGET, GtkBin)
+G_DECLARE_FINAL_TYPE (GstylePaletteWidget, gstyle_palette_widget, GSTYLE, PALETTE_WIDGET, AdwBin)
typedef enum
{
diff --git a/src/gstyle/gstyle-palette.c b/src/plugins/color-picker/gstyle/gstyle-palette.c
similarity index 100%
rename from src/gstyle/gstyle-palette.c
rename to src/plugins/color-picker/gstyle/gstyle-palette.c
diff --git a/src/gstyle/gstyle-palette.h b/src/plugins/color-picker/gstyle/gstyle-palette.h
similarity index 100%
rename from src/gstyle/gstyle-palette.h
rename to src/plugins/color-picker/gstyle/gstyle-palette.h
diff --git a/src/gstyle/gstyle-private.h b/src/plugins/color-picker/gstyle/gstyle-private.h
similarity index 100%
rename from src/gstyle/gstyle-private.h
rename to src/plugins/color-picker/gstyle/gstyle-private.h
diff --git a/src/gstyle/gstyle-rename-popover.c b/src/plugins/color-picker/gstyle/gstyle-rename-popover.c
similarity index 100%
rename from src/gstyle/gstyle-rename-popover.c
rename to src/plugins/color-picker/gstyle/gstyle-rename-popover.c
diff --git a/src/gstyle/gstyle-rename-popover.h b/src/plugins/color-picker/gstyle/gstyle-rename-popover.h
similarity index 100%
rename from src/gstyle/gstyle-rename-popover.h
rename to src/plugins/color-picker/gstyle/gstyle-rename-popover.h
diff --git a/src/gstyle/gstyle-revealer.c b/src/plugins/color-picker/gstyle/gstyle-revealer.c
similarity index 97%
rename from src/gstyle/gstyle-revealer.c
rename to src/plugins/color-picker/gstyle/gstyle-revealer.c
index 5b7bd76f8..db540df24 100644
--- a/src/gstyle/gstyle-revealer.c
+++ b/src/plugins/color-picker/gstyle/gstyle-revealer.c
@@ -30,12 +30,11 @@
#include "gstyle-animation.h"
#include "gstyle-palette-widget.h"
-
#include "gstyle-revealer.h"
struct _GstyleRevealer
{
- GtkBin parent_instance;
+ AdwBin parent_instance;
GdkWindow *window;
gdouble duration;
@@ -54,7 +53,7 @@ struct _GstyleRevealer
/* TODO: use spped instead of duration */
-G_DEFINE_FINAL_TYPE (GstyleRevealer, gstyle_revealer, GTK_TYPE_BIN)
+G_DEFINE_FINAL_TYPE (GstyleRevealer, gstyle_revealer, ADW_TYPE_BIN)
enum {
PROP_0,
@@ -106,7 +105,7 @@ animation_tick_cb (GtkWidget *widget,
self->offset = self->dst_offset;
self->revealed = !!(self->offset);
- child = gtk_bin_get_child (GTK_BIN (self));
+ child = adw_bin_get_child (ADW_BIN (self));
if (child != NULL)
gtk_widget_set_child_visible (child, self->revealed);
@@ -125,7 +124,7 @@ gstyle_revealer_set_reveal_child (GstyleRevealer *self,
g_return_if_fail (GSTYLE_IS_REVEALER (self));
- child = gtk_bin_get_child (GTK_BIN (self));
+ child = adw_bin_get_child (ADW_BIN (self));
if (child == NULL || (!self->is_animating && reveal == self->revealed))
return;
@@ -188,7 +187,7 @@ gstyle_revealer_size_allocate (GtkWidget *widget,
allocation->width,
allocation->height);
- child = gtk_bin_get_child (GTK_BIN (self));
+ child = adw_bin_get_child (ADW_BIN (self));
if (child == NULL)
return;
@@ -235,7 +234,7 @@ gstyle_revealer_get_preferred_width (GtkWidget *widget,
*min_width = *nat_width = 1;
- child = gtk_bin_get_child (GTK_BIN (self));
+ child = adw_bin_get_child (ADW_BIN (self));
if (child != NULL)
gtk_widget_get_preferred_width (child, min_width, nat_width);
}
diff --git a/src/gstyle/gstyle-revealer.h b/src/plugins/color-picker/gstyle/gstyle-revealer.h
similarity index 94%
rename from src/gstyle/gstyle-revealer.h
rename to src/plugins/color-picker/gstyle/gstyle-revealer.h
index 896d7362d..0372f955b 100644
--- a/src/gstyle/gstyle-revealer.h
+++ b/src/plugins/color-picker/gstyle/gstyle-revealer.h
@@ -20,14 +20,13 @@
#pragma once
-#include <glib-object.h>
-#include <gtk/gtk.h>
+#include <adwaita.h>
G_BEGIN_DECLS
#define GSTYLE_TYPE_REVEALER (gstyle_revealer_get_type())
-G_DECLARE_FINAL_TYPE (GstyleRevealer, gstyle_revealer, GSTYLE, REVEALER, GtkBin)
+G_DECLARE_FINAL_TYPE (GstyleRevealer, gstyle_revealer, GSTYLE, REVEALER, AdwBin)
GstyleRevealer *gstyle_revealer_new (void);
void gstyle_revealer_set_reveal_child (GstyleRevealer *self,
diff --git a/src/gstyle/gstyle-slidein.c b/src/plugins/color-picker/gstyle/gstyle-slidein.c
similarity index 99%
rename from src/gstyle/gstyle-slidein.c
rename to src/plugins/color-picker/gstyle/gstyle-slidein.c
index 35f69de66..2f5bfadb1 100644
--- a/src/gstyle/gstyle-slidein.c
+++ b/src/plugins/color-picker/gstyle/gstyle-slidein.c
@@ -314,7 +314,7 @@ compute_duration (GstyleSlidein *self)
g_assert (GSTYLE_IS_SLIDEIN (self));
- child = gtk_bin_get_child (GTK_BIN (self));
+ child = adw_bin_get_child (ADW_BIN (self));
gtk_widget_get_preferred_size (child, &min_req_size, &nat_req_size);
if (get_orientation (self) == GTK_ORIENTATION_HORIZONTAL)
@@ -416,7 +416,7 @@ animate (GstyleSlidein *self,
g_assert (GSTYLE_IS_SLIDEIN (self));
g_assert (0.0 <= target_offset && target_offset <= 1.0);
- child = gtk_bin_get_child (GTK_BIN (self));
+ child = adw_bin_get_child (ADW_BIN (self));
if (child == NULL || self->overlay_child == NULL)
return FALSE;
@@ -829,7 +829,7 @@ gstyle_slidein_get_preferred_width (GtkWidget *widget,
*min_width = *nat_width = 1;
- child = gtk_bin_get_child (GTK_BIN (self));
+ child = adw_bin_get_child (ADW_BIN (self));
if (child != NULL)
gtk_widget_get_preferred_width (child, min_width, nat_width);
@@ -893,7 +893,7 @@ gstyle_slidein_get_preferred_height (GtkWidget *widget,
*min_height = *nat_height = 1;
- child = gtk_bin_get_child (GTK_BIN (self));
+ child = adw_bin_get_child (ADW_BIN (self));
if (child != NULL)
gtk_widget_get_preferred_width (child, min_height, nat_height);
@@ -1034,7 +1034,7 @@ gstyle_slidein_draw (GtkWidget *widget,
* and provide your own container draw implementation.
*/
- child = gtk_bin_get_child (GTK_BIN (self));
+ child = adw_bin_get_child (ADW_BIN (self));
if (child == NULL)
return GDK_EVENT_STOP;
@@ -1073,7 +1073,7 @@ gstyle_slidein_forall (GtkContainer *container,
g_assert (GSTYLE_IS_SLIDEIN (self));
- child = gtk_bin_get_child (GTK_BIN (self));
+ child = adw_bin_get_child (ADW_BIN (self));
if (child)
(* callback) (child, callback_data);
diff --git a/src/gstyle/gstyle-slidein.h b/src/plugins/color-picker/gstyle/gstyle-slidein.h
similarity index 100%
rename from src/gstyle/gstyle-slidein.h
rename to src/plugins/color-picker/gstyle/gstyle-slidein.h
diff --git a/src/gstyle/gstyle-types.h b/src/plugins/color-picker/gstyle/gstyle-types.h
similarity index 100%
rename from src/gstyle/gstyle-types.h
rename to src/plugins/color-picker/gstyle/gstyle-types.h
diff --git a/src/gstyle/gstyle-utils.c b/src/plugins/color-picker/gstyle/gstyle-utils.c
similarity index 100%
rename from src/gstyle/gstyle-utils.c
rename to src/plugins/color-picker/gstyle/gstyle-utils.c
diff --git a/src/gstyle/gstyle-utils.h b/src/plugins/color-picker/gstyle/gstyle-utils.h
similarity index 100%
rename from src/gstyle/gstyle-utils.h
rename to src/plugins/color-picker/gstyle/gstyle-utils.h
diff --git a/src/gstyle/gstyle-xyz.c b/src/plugins/color-picker/gstyle/gstyle-xyz.c
similarity index 100%
rename from src/gstyle/gstyle-xyz.c
rename to src/plugins/color-picker/gstyle/gstyle-xyz.c
diff --git a/src/gstyle/gstyle-xyz.h b/src/plugins/color-picker/gstyle/gstyle-xyz.h
similarity index 100%
rename from src/gstyle/gstyle-xyz.h
rename to src/plugins/color-picker/gstyle/gstyle-xyz.h
diff --git a/src/gstyle/gstyle.gresource.xml b/src/plugins/color-picker/gstyle/gstyle.gresource.xml
similarity index 100%
rename from src/gstyle/gstyle.gresource.xml
rename to src/plugins/color-picker/gstyle/gstyle.gresource.xml
diff --git a/src/gstyle/meson.build b/src/plugins/color-picker/gstyle/meson.build
similarity index 98%
rename from src/gstyle/meson.build
rename to src/plugins/color-picker/gstyle/meson.build
index 95e00ed62..7dd321c3a 100644
--- a/src/gstyle/meson.build
+++ b/src/plugins/color-picker/gstyle/meson.build
@@ -69,11 +69,12 @@ libgstyle_sources = [
]
libgstyle_deps = [
- libdazzle_dep,
libgtk_dep,
libportal_dep,
libm_dep,
libxml2_dep,
+ libide_search_dep,
+ libadwaita_dep,
]
libgstyle = static_library('gstyle-private', libgstyle_sources,
diff --git a/src/gstyle/tests/data/gstyle-color-editor.ui
b/src/plugins/color-picker/gstyle/tests/data/gstyle-color-editor.ui
similarity index 100%
rename from src/gstyle/tests/data/gstyle-color-editor.ui
rename to src/plugins/color-picker/gstyle/tests/data/gstyle-color-editor.ui
diff --git a/src/gstyle/tests/data/gstyle-filter.ui
b/src/plugins/color-picker/gstyle/tests/data/gstyle-filter.ui
similarity index 100%
rename from src/gstyle/tests/data/gstyle-filter.ui
rename to src/plugins/color-picker/gstyle/tests/data/gstyle-filter.ui
diff --git a/src/gstyle/tests/data/palette.gpl b/src/plugins/color-picker/gstyle/tests/data/palette.gpl
similarity index 100%
rename from src/gstyle/tests/data/palette.gpl
rename to src/plugins/color-picker/gstyle/tests/data/palette.gpl
diff --git a/src/gstyle/tests/data/palette.xml b/src/plugins/color-picker/gstyle/tests/data/palette.xml
similarity index 100%
rename from src/gstyle/tests/data/palette.xml
rename to src/plugins/color-picker/gstyle/tests/data/palette.xml
diff --git a/src/gstyle/tests/data/sample0.jpg b/src/plugins/color-picker/gstyle/tests/data/sample0.jpg
similarity index 100%
rename from src/gstyle/tests/data/sample0.jpg
rename to src/plugins/color-picker/gstyle/tests/data/sample0.jpg
diff --git a/src/gstyle/tests/data/sample1.jpg b/src/plugins/color-picker/gstyle/tests/data/sample1.jpg
similarity index 100%
rename from src/gstyle/tests/data/sample1.jpg
rename to src/plugins/color-picker/gstyle/tests/data/sample1.jpg
diff --git a/src/gstyle/tests/meson.build b/src/plugins/color-picker/gstyle/tests/meson.build
similarity index 100%
rename from src/gstyle/tests/meson.build
rename to src/plugins/color-picker/gstyle/tests/meson.build
diff --git a/src/gstyle/tests/test-gstyle-color-panel.c
b/src/plugins/color-picker/gstyle/tests/test-gstyle-color-panel.c
similarity index 100%
rename from src/gstyle/tests/test-gstyle-color-panel.c
rename to src/plugins/color-picker/gstyle/tests/test-gstyle-color-panel.c
diff --git a/src/gstyle/tests/test-gstyle-color-plane.c
b/src/plugins/color-picker/gstyle/tests/test-gstyle-color-plane.c
similarity index 100%
rename from src/gstyle/tests/test-gstyle-color-plane.c
rename to src/plugins/color-picker/gstyle/tests/test-gstyle-color-plane.c
diff --git a/src/gstyle/tests/test-gstyle-color-scale.c
b/src/plugins/color-picker/gstyle/tests/test-gstyle-color-scale.c
similarity index 100%
rename from src/gstyle/tests/test-gstyle-color-scale.c
rename to src/plugins/color-picker/gstyle/tests/test-gstyle-color-scale.c
diff --git a/src/gstyle/tests/test-gstyle-color-widget.c
b/src/plugins/color-picker/gstyle/tests/test-gstyle-color-widget.c
similarity index 100%
rename from src/gstyle/tests/test-gstyle-color-widget.c
rename to src/plugins/color-picker/gstyle/tests/test-gstyle-color-widget.c
diff --git a/src/gstyle/tests/test-gstyle-color.c b/src/plugins/color-picker/gstyle/tests/test-gstyle-color.c
similarity index 100%
rename from src/gstyle/tests/test-gstyle-color.c
rename to src/plugins/color-picker/gstyle/tests/test-gstyle-color.c
diff --git a/src/gstyle/tests/test-gstyle-filter.c
b/src/plugins/color-picker/gstyle/tests/test-gstyle-filter.c
similarity index 100%
rename from src/gstyle/tests/test-gstyle-filter.c
rename to src/plugins/color-picker/gstyle/tests/test-gstyle-filter.c
diff --git a/src/gstyle/tests/test-gstyle-palette-widget.c
b/src/plugins/color-picker/gstyle/tests/test-gstyle-palette-widget.c
similarity index 100%
rename from src/gstyle/tests/test-gstyle-palette-widget.c
rename to src/plugins/color-picker/gstyle/tests/test-gstyle-palette-widget.c
diff --git a/src/gstyle/tests/test-gstyle-palette.c
b/src/plugins/color-picker/gstyle/tests/test-gstyle-palette.c
similarity index 100%
rename from src/gstyle/tests/test-gstyle-palette.c
rename to src/plugins/color-picker/gstyle/tests/test-gstyle-palette.c
diff --git a/src/gstyle/tests/test-gstyle-parse.c b/src/plugins/color-picker/gstyle/tests/test-gstyle-parse.c
similarity index 100%
rename from src/gstyle/tests/test-gstyle-parse.c
rename to src/plugins/color-picker/gstyle/tests/test-gstyle-parse.c
diff --git a/src/gstyle/theme/gstyle.css b/src/plugins/color-picker/gstyle/theme/gstyle.css
similarity index 100%
rename from src/gstyle/theme/gstyle.css
rename to src/plugins/color-picker/gstyle/theme/gstyle.css
diff --git a/src/gstyle/ui/gstyle-color-panel.ui b/src/plugins/color-picker/gstyle/ui/gstyle-color-panel.ui
similarity index 100%
rename from src/gstyle/ui/gstyle-color-panel.ui
rename to src/plugins/color-picker/gstyle/ui/gstyle-color-panel.ui
diff --git a/src/gstyle/ui/gstyle-color-widget.ui b/src/plugins/color-picker/gstyle/ui/gstyle-color-widget.ui
similarity index 100%
rename from src/gstyle/ui/gstyle-color-widget.ui
rename to src/plugins/color-picker/gstyle/ui/gstyle-color-widget.ui
diff --git a/src/gstyle/ui/gstyle-palette-widget.ui
b/src/plugins/color-picker/gstyle/ui/gstyle-palette-widget.ui
similarity index 100%
rename from src/gstyle/ui/gstyle-palette-widget.ui
rename to src/plugins/color-picker/gstyle/ui/gstyle-palette-widget.ui
diff --git a/src/gstyle/ui/gstyle-rename-popover.ui
b/src/plugins/color-picker/gstyle/ui/gstyle-rename-popover.ui
similarity index 100%
rename from src/gstyle/ui/gstyle-rename-popover.ui
rename to src/plugins/color-picker/gstyle/ui/gstyle-rename-popover.ui
diff --git a/src/plugins/color-picker/meson.build b/src/plugins/color-picker/meson.build
index 00aafcf47..b361e213b 100644
--- a/src/plugins/color-picker/meson.build
+++ b/src/plugins/color-picker/meson.build
@@ -1,5 +1,7 @@
if get_option('plugin_color_picker')
+subdir('gstyle')
+
if not libportal_dep.found()
error('plugin_color_picker requires libportal')
endif
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]