From 8759738ec7f7de9996dcbf88271ace4a431b9389 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Diego=20Iv=C3=A1n?= Date: Sat, 13 Jul 2024 15:16:17 -0600 Subject: [PATCH] vala: Adapt Vala demos to Meson --- .gitignore | 1 + Makefile | 1 + src/About Dialog/main.vala | 2 -- src/Accessibility/main.vala | 2 -- src/Account/main.vala | 2 -- src/Action Bar/main.vala | 2 -- src/Actions/main.vala | 2 -- src/Animation/main.vala | 2 -- src/Audio/main.vala | 2 -- src/Avatar/main.vala | 2 -- src/Banner/main.vala | 2 -- src/Box/main.vala | 2 -- src/Breakpoints/main.vala | 2 -- src/Button/main.vala | 2 -- src/CSS Gradients/main.vala | 2 -- src/Calendar/main.vala | 2 -- src/Carousel/main.vala | 2 -- src/Checkboxes/main.vala | 2 -- src/Clamp/main.vala | 2 -- src/Color Dialog/main.vala | 2 -- src/Color Picker/main.vala | 2 -- src/Column View/main.vala | 2 -- src/Context Menu/main.vala | 2 -- src/Dialog/main.vala | 2 -- src/Drag and Drop/main.vala | 2 -- src/Drawing Area/main.vala | 2 -- src/Drop Down/main.vala | 2 -- src/Drop Zone/main.vala | 2 -- src/Email/main.vala | 2 -- src/Emoji Chooser/main.vala | 2 -- src/Event Controllers/main.vala | 2 -- src/File Monitor/main.vala | 2 -- src/Flow Box/main.vala | 2 -- src/Font Dialog/main.vala | 2 -- src/Frame/main.vala | 2 -- src/Grid View/main.vala | 2 -- src/Grid/main.vala | 2 -- src/HTTP Image/main.vala | 2 -- src/HTTP Request/main.vala | 2 -- src/HTTP Server/main.vala | 1 - src/Image/main.vala | 2 -- src/Label/main.vala | 2 -- src/Launcher/main.vala | 2 -- src/Level Bars/main.vala | 2 -- src/Link Button/main.vala | 2 -- src/List Model/main.vala | 2 -- src/List View/main.vala | 2 -- src/Location/main.vala | 2 -- src/Map/main.vala | 2 -- src/Memory Monitor/main.vala | 2 -- src/Menu Button/main.vala | 2 -- src/Menu/main.vala | 2 -- src/Message Dialogs/main.vala | 2 -- src/Navigation View/main.vala | 2 -- src/Network Monitor/main.vala | 2 -- src/Open File/main.vala | 2 -- src/Overlay Split View/main.vala | 2 -- src/Overlay/main.vala | 2 -- src/Picture/main.vala | 2 -- src/Popovers/main.vala | 2 -- src/Power Profile Monitor/main.vala | 2 -- src/Preferences Dialog/main.vala | 2 -- src/Progress Bar/main.vala | 2 -- src/Radio Buttons/main.vala | 2 -- src/Revealer/main.vala | 2 -- src/Save File/main.vala | 2 -- src/Scale/main.vala | 2 -- src/Screenshot/main.vala | 2 -- src/Scrolled Window/main.vala | 1 - src/Search/main.vala | 2 -- src/Select Folder/main.vala | 2 -- src/Separator/Separator.vala | 2 -- src/Session Monitor and Inhibit/main.vala | 1 - src/Snapshot/main.vala | 2 -- src/Source View/main.vala | 2 -- src/Spell Checker/main.vala | 2 -- src/Spin Button/main.vala | 2 -- src/Spinner/main.vala | 2 -- src/Stack/main.vala | 2 -- src/Styling with CSS/main.vala | 2 -- src/Switch/main.vala | 2 -- src/Tab View/main.vala | 2 -- src/Text Colors/main.vala | 2 -- src/Text Fields/main.vala | 2 -- src/Text View/main.vala | 2 -- src/Toasts/main.vala | 2 -- src/Toggle Button/main.vala | 2 -- src/Tooltip/main.vala | 2 -- src/Video/main.vala | 2 -- src/View Switcher/main.vala | 2 -- src/Wallpaper/main.vala | 2 -- src/Web View/main.vala | 2 -- src/WebSocket Client/main.vala | 2 -- src/Welcome/main.vala | 2 -- 94 files changed, 2 insertions(+), 181 deletions(-) diff --git a/.gitignore b/.gitignore index 705ee09b..fa1122a1 100644 --- a/.gitignore +++ b/.gitignore @@ -22,6 +22,7 @@ __pycache__ # Project files - sync with Makefile src/*/settings src/*/workbench.vala +src/*/meson.build src/*/main.ui src/*/libworkbenchcode.so src/*/__pycache__ diff --git a/Makefile b/Makefile index d3528cf7..2b62b4e6 100644 --- a/Makefile +++ b/Makefile @@ -32,6 +32,7 @@ ci: setup test clean: rm -f src/*/settings rm -f src/*/workbench.vala + rm -f src/*/meson.build rm -f src/*/main.ui rm -f src/*/libworkbenchcode.so rm -f src/*/Cargo.toml diff --git a/src/About Dialog/main.vala b/src/About Dialog/main.vala index f4787b16..13fdbf2c 100644 --- a/src/About Dialog/main.vala +++ b/src/About Dialog/main.vala @@ -1,5 +1,3 @@ -#! /usr/bin/env -S vala workbench.vala --pkg gtk4 --pkg libadwaita-1 - public void main () { Gtk.init (); diff --git a/src/Accessibility/main.vala b/src/Accessibility/main.vala index c70a40c1..0843d32e 100644 --- a/src/Accessibility/main.vala +++ b/src/Accessibility/main.vala @@ -1,5 +1,3 @@ -#! /usr/bin/env -S vala workbench.vala --pkg libadwaita-1 - private Adw.Bin custom_button; public void main () { diff --git a/src/Account/main.vala b/src/Account/main.vala index 29a43bd0..40cd16e7 100644 --- a/src/Account/main.vala +++ b/src/Account/main.vala @@ -1,5 +1,3 @@ -#! /usr/bin/env -S vala workbench.vala --pkg libadwaita-1 --pkg libportal-gtk4 - private Gtk.Revealer revealer; private Adw.EntryRow entry; private Adw.Avatar avatar; diff --git a/src/Action Bar/main.vala b/src/Action Bar/main.vala index d56cbb50..9e68fdb9 100644 --- a/src/Action Bar/main.vala +++ b/src/Action Bar/main.vala @@ -1,5 +1,3 @@ -#! /usr/bin/env -S vala workbench.vala --pkg libadwaita-1 - public void main () { var action_bar = (Gtk.ActionBar) workbench.builder.get_object ("action_bar"); var button = (Gtk.Button) workbench.builder.get_object ("button"); diff --git a/src/Actions/main.vala b/src/Actions/main.vala index 37541286..74e6baab 100644 --- a/src/Actions/main.vala +++ b/src/Actions/main.vala @@ -1,5 +1,3 @@ -#! /usr/bin/env -S vala workbench.vala --pkg libadwaita-1 - public void main () { var demo = (Adw.StatusPage) workbench.builder.get_object ("demo"); diff --git a/src/Animation/main.vala b/src/Animation/main.vala index 748f30b0..29a8c209 100644 --- a/src/Animation/main.vala +++ b/src/Animation/main.vala @@ -1,5 +1,3 @@ -#! /usr/bin/env -S vala workbench.vala --pkg libadwaita-1 - private Adw.Bin ball; public void main () { diff --git a/src/Audio/main.vala b/src/Audio/main.vala index f65f9a77..8a5da9ae 100644 --- a/src/Audio/main.vala +++ b/src/Audio/main.vala @@ -1,5 +1,3 @@ -#! /usr/bin/env -S vala workbench.vala --pkg libadwaita-1 - public void main () { var controls = (Gtk.MediaControls) workbench.builder.get_object ("controls"); diff --git a/src/Avatar/main.vala b/src/Avatar/main.vala index 74f770ae..87a2e181 100644 --- a/src/Avatar/main.vala +++ b/src/Avatar/main.vala @@ -1,5 +1,3 @@ -#! /usr/bin/env -S vala workbench.vala --pkg libadwaita-1 - private Adw.Avatar avatar_image; private Gtk.FileFilter file_filter; diff --git a/src/Banner/main.vala b/src/Banner/main.vala index 3ba3f213..f1993d70 100644 --- a/src/Banner/main.vala +++ b/src/Banner/main.vala @@ -1,5 +1,3 @@ -#! /usr/bin/env -S vala workbench.vala --pkg libadwaita-1 - public void main () { var banner = (Adw.Banner) workbench.builder.get_object ("banner"); var overlay = (Adw.ToastOverlay) workbench.builder.get_object ("overlay"); diff --git a/src/Box/main.vala b/src/Box/main.vala index e432e9c7..8c323f8b 100644 --- a/src/Box/main.vala +++ b/src/Box/main.vala @@ -1,5 +1,3 @@ -#! /usr/bin/env -S vala workbench.vala --pkg libadwaita-1 - private Gtk.Box interactive_box; private int count = 0; diff --git a/src/Breakpoints/main.vala b/src/Breakpoints/main.vala index 34fa8064..782fad7d 100644 --- a/src/Breakpoints/main.vala +++ b/src/Breakpoints/main.vala @@ -1,5 +1,3 @@ -#! /usr/bin/env -S vala workbench.vala --pkg libadwaita-1 - public void main () { var breakpoint = (Adw.Breakpoint) workbench.builder.get_object ("breakpoint"); diff --git a/src/Button/main.vala b/src/Button/main.vala index a957f625..52af20ea 100644 --- a/src/Button/main.vala +++ b/src/Button/main.vala @@ -1,5 +1,3 @@ -#! /usr/bin/env -S vala workbench.vala --pkg gtk4 --pkg libadwaita-1 - public void main () { string[] button_ids = { "regular", diff --git a/src/CSS Gradients/main.vala b/src/CSS Gradients/main.vala index 244b1958..b7fd1522 100644 --- a/src/CSS Gradients/main.vala +++ b/src/CSS Gradients/main.vala @@ -1,5 +1,3 @@ -#! /usr/bin/env -S vala workbench.vala --pkg libadwaita-1 --pkg gtksourceview-5 - private GtkSource.Buffer gtksource_buffer; private Adw.ComboRow combo_row_gradient_type; private Adw.SpinRow spin_row_angle; diff --git a/src/Calendar/main.vala b/src/Calendar/main.vala index a3ee6b18..87333866 100644 --- a/src/Calendar/main.vala +++ b/src/Calendar/main.vala @@ -1,5 +1,3 @@ -#! /usr/bin/env -S vala workbench.vala --pkg libadwaita-1 - public void main () { var calendar = (Gtk.Calendar) workbench.builder.get_object ("calendar"); calendar.notify["day"].connect (() => { diff --git a/src/Carousel/main.vala b/src/Carousel/main.vala index 95814e0d..eea68142 100644 --- a/src/Carousel/main.vala +++ b/src/Carousel/main.vala @@ -1,5 +1,3 @@ -#! /usr/bin/env -S vala workbench.vala --pkg gtk4 --pkg libadwaita-1 - public void main() { var root_box = workbench.builder.get_object("root_box") as Gtk.Box; var carousel = workbench.builder.get_object("carousel") as Adw.Carousel; diff --git a/src/Checkboxes/main.vala b/src/Checkboxes/main.vala index 0e4f3e62..c7424702 100644 --- a/src/Checkboxes/main.vala +++ b/src/Checkboxes/main.vala @@ -1,5 +1,3 @@ -#! /usr/bin/env -S vala workbench.vala --pkg libadwaita-1 - public void main () { var checkbox_1 = (Gtk.CheckButton) workbench.builder.get_object ("checkbox_1"); var checkbox_2 = (Gtk.CheckButton) workbench.builder.get_object ("checkbox_2"); diff --git a/src/Clamp/main.vala b/src/Clamp/main.vala index 7bd817e2..b83eb08f 100644 --- a/src/Clamp/main.vala +++ b/src/Clamp/main.vala @@ -1,5 +1,3 @@ -#! /usr/bin/env -S vala workbench.vala --pkg libadwaita-1 - private Gtk.Button button_increase; private Gtk.Button button_decrease; private Adw.Clamp clamp; diff --git a/src/Color Dialog/main.vala b/src/Color Dialog/main.vala index 7989abfd..0bada590 100644 --- a/src/Color Dialog/main.vala +++ b/src/Color Dialog/main.vala @@ -1,5 +1,3 @@ -#! /usr/bin/env -S vala workbench.vala --pkg libadwaita-1 - private Gtk.ColorDialogButton color_dialog_button; private Gtk.Button custom_button; private Gtk.ColorDialog dialog_custom; diff --git a/src/Color Picker/main.vala b/src/Color Picker/main.vala index 5e43900a..c310cad8 100644 --- a/src/Color Picker/main.vala +++ b/src/Color Picker/main.vala @@ -1,5 +1,3 @@ -#! /usr/bin/env -S vala workbench.vala --pkg libadwaita-1 --pkg libportal-gtk4 - private Xdp.Portal portal; private Xdp.Parent parent; diff --git a/src/Column View/main.vala b/src/Column View/main.vala index e49845b3..ae47feb4 100644 --- a/src/Column View/main.vala +++ b/src/Column View/main.vala @@ -1,5 +1,3 @@ -#! /usr/bin/env -S vala workbench.vala --pkg libadwaita-1 - // Define our class for our custom model public class Book : Object { public string title { get; set; } diff --git a/src/Context Menu/main.vala b/src/Context Menu/main.vala index 06c89e3e..36740a5a 100644 --- a/src/Context Menu/main.vala +++ b/src/Context Menu/main.vala @@ -1,5 +1,3 @@ -#! /usr/bin/env -S vala workbench.vala --pkg gtk4 --pkg libadwaita-1 - public void main() { var box_menu_parent = (Gtk.Box) workbench.builder.get_object( "box_menu_parent" diff --git a/src/Dialog/main.vala b/src/Dialog/main.vala index b618d980..3f8d93ec 100644 --- a/src/Dialog/main.vala +++ b/src/Dialog/main.vala @@ -1,5 +1,3 @@ -#! /usr/bin/env -S vala workbench.vala --pkg libadwaita-1 --pkg gio-2.0 - public void main () { var dialog = (Adw.Dialog) workbench.builder.get_object ("dialog"); var button = (Gtk.Button) workbench.builder.get_object ("button"); diff --git a/src/Drag and Drop/main.vala b/src/Drag and Drop/main.vala index 2333b094..e7e78e21 100644 --- a/src/Drag and Drop/main.vala +++ b/src/Drag and Drop/main.vala @@ -1,5 +1,3 @@ -#! /usr/bin/env -S vala workbench.vala --pkg gtk4 --pkg libadwaita-1 - public void main() { var list = workbench.builder.get_object("list") as Gtk.ListBox; var drop_target = new Gtk.DropTarget(typeof (Adw.ActionRow), Gdk.DragAction.MOVE); diff --git a/src/Drawing Area/main.vala b/src/Drawing Area/main.vala index 9dda7289..90fdc630 100644 --- a/src/Drawing Area/main.vala +++ b/src/Drawing Area/main.vala @@ -1,5 +1,3 @@ -#! /usr/bin/env -S vala workbench.vala --pkg gtk4 - double to_radians (double degrees) { return degrees * (Math.PI / 180); } diff --git a/src/Drop Down/main.vala b/src/Drop Down/main.vala index c1c08f6d..470bcde6 100644 --- a/src/Drop Down/main.vala +++ b/src/Drop Down/main.vala @@ -1,5 +1,3 @@ -#! /usr/bin/env -S vala workbench.vala --pkg gtk4 --pkg libadwaita-1 --pkg gio-2.0 - using Gtk; using GLib; diff --git a/src/Drop Zone/main.vala b/src/Drop Zone/main.vala index 6941de95..883e6a1f 100644 --- a/src/Drop Zone/main.vala +++ b/src/Drop Zone/main.vala @@ -1,5 +1,3 @@ -#! /usr/bin/env -S vala workbench.vala --pkg libadwaita-1 - public void main () { var bin = (Adw.Bin) workbench.builder.get_object ("bin"); diff --git a/src/Email/main.vala b/src/Email/main.vala index 972e13be..aa6fb0bc 100644 --- a/src/Email/main.vala +++ b/src/Email/main.vala @@ -1,5 +1,3 @@ -#! /usr/bin/env -S vala workbench.vala --pkg libadwaita-1 --pkg libportal-gtk4 - private Xdp.Portal portal; private Xdp.Parent parent; private Gtk.Entry entry; diff --git a/src/Emoji Chooser/main.vala b/src/Emoji Chooser/main.vala index b0055371..575a4d3e 100644 --- a/src/Emoji Chooser/main.vala +++ b/src/Emoji Chooser/main.vala @@ -1,5 +1,3 @@ -#! /usr/bin/env -S vala workbench.vala --pkg gtk4 - public void main () { var emoji_chooser = (Gtk.EmojiChooser) workbench.builder.get_object ("emoji_chooser"); var button = (Gtk.MenuButton) workbench.builder.get_object ("button"); diff --git a/src/Event Controllers/main.vala b/src/Event Controllers/main.vala index 0423a122..011919bf 100644 --- a/src/Event Controllers/main.vala +++ b/src/Event Controllers/main.vala @@ -1,5 +1,3 @@ -#! /usr/bin/env -S vala workbench.vala --pkg libadwaita-1 - private bool ctrl_pressed = false; public void main () { diff --git a/src/File Monitor/main.vala b/src/File Monitor/main.vala index 51aaf71b..8193b39f 100644 --- a/src/File Monitor/main.vala +++ b/src/File Monitor/main.vala @@ -1,5 +1,3 @@ -#! /usr/bin/env -S vala workbench.vala --pkg libadwaita-1 --pkg gio-2.0 - private FileMonitor monitor_for_dir; private FileMonitor monitor_for_file; public void main () { diff --git a/src/Flow Box/main.vala b/src/Flow Box/main.vala index fa9e44e2..cdd90169 100644 --- a/src/Flow Box/main.vala +++ b/src/Flow Box/main.vala @@ -1,5 +1,3 @@ -#! /usr/bin/env -S vala workbench.vala --pkg libadwaita-1 - private Gtk.FlowBox flowbox; public void main () { diff --git a/src/Font Dialog/main.vala b/src/Font Dialog/main.vala index 6c15369c..3b74bc34 100644 --- a/src/Font Dialog/main.vala +++ b/src/Font Dialog/main.vala @@ -1,5 +1,3 @@ -#! /usr/bin/env -S vala workbench.vala --pkg gtk4 - async void on_clicked (Gtk.FontDialog dialog_custom) { try { Pango.FontFamily family = yield dialog_custom.choose_family (workbench.window, null, null); diff --git a/src/Frame/main.vala b/src/Frame/main.vala index 0fa97249..e376747e 100644 --- a/src/Frame/main.vala +++ b/src/Frame/main.vala @@ -1,5 +1,3 @@ -#! /usr/bin/env -S vala workbench.vala --pkg libadwaita-1 - public void main () { var pic_with_frame = (Gtk.Picture) workbench.builder.get_object ("with_frame"); diff --git a/src/Grid View/main.vala b/src/Grid View/main.vala index f3b3666d..960d1abd 100644 --- a/src/Grid View/main.vala +++ b/src/Grid View/main.vala @@ -1,5 +1,3 @@ -#! /usr/bin/env -S vala workbench.vala --pkg libadwaita-1 - private Gtk.GridView grid_view; private Gtk.Button add; private Gtk.Button remove_button; diff --git a/src/Grid/main.vala b/src/Grid/main.vala index 8c45c273..f9af3568 100644 --- a/src/Grid/main.vala +++ b/src/Grid/main.vala @@ -1,5 +1,3 @@ -#! /usr/bin/env -S vala workbench.vala --pkg libadwaita-1 - private int step_count = 1; public void main () { diff --git a/src/HTTP Image/main.vala b/src/HTTP Image/main.vala index f397e693..88a4ca83 100644 --- a/src/HTTP Image/main.vala +++ b/src/HTTP Image/main.vala @@ -1,5 +1,3 @@ -#! /usr/bin/env -S vala workbench.vala --pkg libadwaita-1 --pkg libsoup-3.0 - public errordomain MessageError { FAILED; } diff --git a/src/HTTP Request/main.vala b/src/HTTP Request/main.vala index 314753c2..12efbf58 100644 --- a/src/HTTP Request/main.vala +++ b/src/HTTP Request/main.vala @@ -1,5 +1,3 @@ -#! /usr/bin/env -S vala workbench.vala --pkg libadwaita-1 --pkg libsoup-3.0 --pkg json-glib-1.0 - public errordomain FetchError { FAILED_REQUEST, FAILED_TO_PARSE diff --git a/src/HTTP Server/main.vala b/src/HTTP Server/main.vala index 0fedf3b6..23423768 100644 --- a/src/HTTP Server/main.vala +++ b/src/HTTP Server/main.vala @@ -1,4 +1,3 @@ -#! /usr/bin/env -S vala workbench.vala --pkg libadwaita-1 --pkg libsoup-3.0 private Gtk.Label label_greetings; private Gtk.ToggleButton button_server; private Gtk.LinkButton linkbutton; diff --git a/src/Image/main.vala b/src/Image/main.vala index 67bd2480..f19710e8 100644 --- a/src/Image/main.vala +++ b/src/Image/main.vala @@ -1,5 +1,3 @@ -#! /usr/bin/env -S vala workbench.vala --pkg libadwaita-1 - public void main () { var image_file = File.new_for_uri (workbench.resolve ("workbench.png")); string path = image_file.get_path (); diff --git a/src/Label/main.vala b/src/Label/main.vala index 1f2092cb..aeb76584 100644 --- a/src/Label/main.vala +++ b/src/Label/main.vala @@ -1,5 +1,3 @@ -#! /usr/bin/env -S vala workbench.vala --pkg libadwaita-1 - public void main () { var label = (Gtk.Label) workbench.builder.get_object ("label"); var justification_row = (Adw.ComboRow) workbench.builder.get_object ("justification_row"); diff --git a/src/Launcher/main.vala b/src/Launcher/main.vala index eb5131f5..fbb738f1 100644 --- a/src/Launcher/main.vala +++ b/src/Launcher/main.vala @@ -1,5 +1,3 @@ -#! /usr/bin/env -S vala workbench.vala --pkg libadwaita-1 - private Gtk.FileLauncher file_launcher; private Gtk.Entry uri_details; diff --git a/src/Level Bars/main.vala b/src/Level Bars/main.vala index 06430d50..3c9c7a2d 100644 --- a/src/Level Bars/main.vala +++ b/src/Level Bars/main.vala @@ -1,5 +1,3 @@ -#! /usr/bin/env -S vala workbench.vala --pkg gtk4 - Gtk.PasswordEntry entry; Gtk.LevelBar bar_discrete; Gtk.Label label_strength; diff --git a/src/Link Button/main.vala b/src/Link Button/main.vala index babd09a9..861f325a 100644 --- a/src/Link Button/main.vala +++ b/src/Link Button/main.vala @@ -1,5 +1,3 @@ -#! /usr/bin/env -S vala workbench.vala --pkg gtk4 - public void main () { var linkbutton = (Gtk.LinkButton) workbench.builder.get_object ("linkbutton"); linkbutton.notify["visited"].connect ((_) => message ("The link has been visited")); diff --git a/src/List Model/main.vala b/src/List Model/main.vala index cf754d42..ef882896 100644 --- a/src/List Model/main.vala +++ b/src/List Model/main.vala @@ -1,5 +1,3 @@ -#! /usr/bin/env -S vala workbench.vala --pkg libadwaita-1 - private Gtk.Stack stack; private Gtk.ListBox list_box; private Gtk.FlowBox flow_box; diff --git a/src/List View/main.vala b/src/List View/main.vala index addf8447..a5acdcf7 100644 --- a/src/List View/main.vala +++ b/src/List View/main.vala @@ -1,5 +1,3 @@ -#! /usr/bin/env -S vala workbench.vala --pkg libadwaita-1 - private Gtk.ListView list_view; private Gtk.Button add; private Gtk.Button remove_button; diff --git a/src/Location/main.vala b/src/Location/main.vala index b156242a..81eb4c76 100644 --- a/src/Location/main.vala +++ b/src/Location/main.vala @@ -1,5 +1,3 @@ -#! /usr/bin/env -S vala workbench.vala --pkg libadwaita-1 --pkg libportal-gtk4 - private Xdp.Portal portal; private Xdp.Parent parent; diff --git a/src/Map/main.vala b/src/Map/main.vala index 1f81b999..b6bf4fd5 100644 --- a/src/Map/main.vala +++ b/src/Map/main.vala @@ -1,5 +1,3 @@ -#! /usr/bin/env -S vala workbench.vala --pkg libadwaita-1 --pkg shumate-1.0 - private Shumate.SimpleMap map_widget; private Shumate.Viewport viewport; private Gtk.Entry entry_latitude; diff --git a/src/Memory Monitor/main.vala b/src/Memory Monitor/main.vala index e8de0179..0914305c 100644 --- a/src/Memory Monitor/main.vala +++ b/src/Memory Monitor/main.vala @@ -1,5 +1,3 @@ -#! /usr/bin/env -S vala workbench.vala --pkg libadwaita-1 - private HashTable cache; public void main () { diff --git a/src/Menu Button/main.vala b/src/Menu Button/main.vala index 1d1c45ba..0b5289d9 100644 --- a/src/Menu Button/main.vala +++ b/src/Menu Button/main.vala @@ -1,5 +1,3 @@ -#! /usr/bin/env -S vala workbench.vala --pkg libadwaita-1 - public void main () { var circular_switch = (Adw.SwitchRow) workbench.builder.get_object ("circular_switch"); var secondary_button = (Gtk.MenuButton) workbench.builder.get_object ("secondary"); diff --git a/src/Menu/main.vala b/src/Menu/main.vala index 3b1fe741..80a5a606 100644 --- a/src/Menu/main.vala +++ b/src/Menu/main.vala @@ -1,5 +1,3 @@ -#! /usr/bin/env -S vala workbench.vala --pkg libadwaita-1 - public void main () { var label = (Gtk.Label) workbench.builder.get_object ("label"); diff --git a/src/Message Dialogs/main.vala b/src/Message Dialogs/main.vala index 2772ac2a..10459450 100644 --- a/src/Message Dialogs/main.vala +++ b/src/Message Dialogs/main.vala @@ -1,5 +1,3 @@ -#! /usr/bin/env -S vala workbench.vala --pkg gtk4 --pkg libadwaita-1 - public void main () { var button_confirmation = (Gtk.Button) workbench.builder.get_object ("button_confirmation"); var button_error = (Gtk.Button) workbench.builder.get_object ("button_error"); diff --git a/src/Navigation View/main.vala b/src/Navigation View/main.vala index 29f2d9b1..3ecfbf84 100644 --- a/src/Navigation View/main.vala +++ b/src/Navigation View/main.vala @@ -1,5 +1,3 @@ -#! /usr/bin/env -S vala workbench.vala --pkg libadwaita-1 - public void main () { var nav_view = (Adw.NavigationView) workbench.builder.get_object ("nav_view"); var nav_pageone = (Adw.NavigationPage) workbench.builder.get_object ("nav_pageone"); diff --git a/src/Network Monitor/main.vala b/src/Network Monitor/main.vala index 49cc8484..27360477 100644 --- a/src/Network Monitor/main.vala +++ b/src/Network Monitor/main.vala @@ -1,5 +1,3 @@ -#! /usr/bin/env -S vala workbench.vala --pkg libadwaita-1 - void set_network_status (Adw.Banner banner, NetworkMonitor network_monitor, Gtk.LevelBar level_bar) { banner.revealed = network_monitor.network_metered; level_bar.value = (double) network_monitor.connectivity; diff --git a/src/Open File/main.vala b/src/Open File/main.vala index d991d2e3..fa092dc6 100644 --- a/src/Open File/main.vala +++ b/src/Open File/main.vala @@ -1,5 +1,3 @@ -#! /usr/bin/env -S vala workbench.vala --pkg libadwaita-1 - private Gtk.FileFilter file_filter_image; public void main () { diff --git a/src/Overlay Split View/main.vala b/src/Overlay Split View/main.vala index 9a4dd45d..b7798de3 100644 --- a/src/Overlay Split View/main.vala +++ b/src/Overlay Split View/main.vala @@ -1,5 +1,3 @@ -#! /usr/bin/env -S vala workbench.vala --pkg libadwaita-1 - public void main () { var split_view = (Adw.OverlaySplitView) workbench.builder.get_object ("split_view"); var start_toggle = (Gtk.ToggleButton) workbench.builder.get_object ("start_toggle"); diff --git a/src/Overlay/main.vala b/src/Overlay/main.vala index d61d545e..a14d01c5 100644 --- a/src/Overlay/main.vala +++ b/src/Overlay/main.vala @@ -1,5 +1,3 @@ -#! /usr/bin/env -S vala workbench.vala --pkg gio-2.0 --pkg gtk4 - public void main () { var file = File.new_for_uri (workbench.resolve ("./image.png")); diff --git a/src/Picture/main.vala b/src/Picture/main.vala index 99723aa0..1a2d5a76 100644 --- a/src/Picture/main.vala +++ b/src/Picture/main.vala @@ -1,5 +1,3 @@ -#! /usr/bin/env -S vala workbench.vala --pkg libadwaita-1 - public void main () { var picture_fill = (Gtk.Picture) workbench.builder.get_object ("picture_fill"); var picture_contain = (Gtk.Picture) workbench.builder.get_object ("picture_contain"); diff --git a/src/Popovers/main.vala b/src/Popovers/main.vala index 7d7f7f21..212ec644 100644 --- a/src/Popovers/main.vala +++ b/src/Popovers/main.vala @@ -1,5 +1,3 @@ -#! /usr/bin/env -S vala workbench.vala --pkg libadwaita-1 - void on_closed (Gtk.Popover popover) { message (@"$(popover.name) closed."); } diff --git a/src/Power Profile Monitor/main.vala b/src/Power Profile Monitor/main.vala index 4a2c0aeb..87e51300 100644 --- a/src/Power Profile Monitor/main.vala +++ b/src/Power Profile Monitor/main.vala @@ -1,5 +1,3 @@ -#! /usr/bin/env -S vala workbench.vala --pkg libadwaita-1 - public void main () { var overlay = (Adw.ToastOverlay) workbench.builder.get_object ("overlay"); var power_profile_monitor = PowerProfileMonitor.dup_default (); diff --git a/src/Preferences Dialog/main.vala b/src/Preferences Dialog/main.vala index f070d7bf..f683601d 100644 --- a/src/Preferences Dialog/main.vala +++ b/src/Preferences Dialog/main.vala @@ -1,5 +1,3 @@ -#! /usr/bin/env -S vala workbench.vala --pkg gtk4 --pkg libadwaita-1 - public void main () { var dialog = (Adw.PreferencesDialog) workbench.builder.get_object ("dialog"); var dm_switch = (Adw.SwitchRow) workbench.builder.get_object ("dm_switch"); diff --git a/src/Progress Bar/main.vala b/src/Progress Bar/main.vala index a2245894..85b566a8 100644 --- a/src/Progress Bar/main.vala +++ b/src/Progress Bar/main.vala @@ -1,5 +1,3 @@ -#! /usr/bin/env -S vala workbench.vala --pkg libadwaita-1 - public void main () { var first_bar = (Gtk.ProgressBar) workbench.builder.get_object ("first"); diff --git a/src/Radio Buttons/main.vala b/src/Radio Buttons/main.vala index d145aba9..c4dd3175 100644 --- a/src/Radio Buttons/main.vala +++ b/src/Radio Buttons/main.vala @@ -1,5 +1,3 @@ -#! /usr/bin/env -S vala workbench.vala --pkg gtk4 - public void main() { var radio_button_1 = (Gtk.CheckButton) workbench.builder.get_object("radio_button_1"); var radio_button_2 = (Gtk.CheckButton) workbench.builder.get_object("radio_button_2"); diff --git a/src/Revealer/main.vala b/src/Revealer/main.vala index 6efc9e11..ab4b48f2 100644 --- a/src/Revealer/main.vala +++ b/src/Revealer/main.vala @@ -1,5 +1,3 @@ -#! /usr/bin/env -S vala workbench.vala --pkg gtk4 - public void main () { var button_slide = (Gtk.ToggleButton) workbench.builder.get_object ("button_slide"); var button_crossfade = (Gtk.ToggleButton) workbench.builder.get_object ("button_crossfade"); diff --git a/src/Save File/main.vala b/src/Save File/main.vala index 781f395a..735b5910 100644 --- a/src/Save File/main.vala +++ b/src/Save File/main.vala @@ -1,5 +1,3 @@ -#! /usr/bin/env -S vala workbench.vala --pkg gtk4 - async void save_file () { var file_dialog = new Gtk.FileDialog () { initial_name = "Workbench.txt" diff --git a/src/Scale/main.vala b/src/Scale/main.vala index 45706112..dd2649ba 100644 --- a/src/Scale/main.vala +++ b/src/Scale/main.vala @@ -1,5 +1,3 @@ -#! /usr/bin/env -S vala workbench.vala --pkg gtk4 --pkg libadwaita-1 - private Gtk.Scale scale_one; private Gtk.Scale scale_two; private Gtk.ScaleButton scale_button; diff --git a/src/Screenshot/main.vala b/src/Screenshot/main.vala index 677bb5b4..ca3d06cf 100644 --- a/src/Screenshot/main.vala +++ b/src/Screenshot/main.vala @@ -1,5 +1,3 @@ -#! /usr/bin/env -S vala workbench.vala --pkg libadwaita-1 --pkg libportal-gtk4 - private Xdp.Portal portal; private Xdp.Parent parent; private Gtk.Picture picture; diff --git a/src/Scrolled Window/main.vala b/src/Scrolled Window/main.vala index 25b154bf..275b0832 100644 --- a/src/Scrolled Window/main.vala +++ b/src/Scrolled Window/main.vala @@ -1,4 +1,3 @@ -#! /usr/bin/env -S vala workbench.vala --pkg libadwaita-1 private bool auto_scrolling = false; public void main () { diff --git a/src/Search/main.vala b/src/Search/main.vala index b8e7dcef..8fa81fc5 100644 --- a/src/Search/main.vala +++ b/src/Search/main.vala @@ -1,5 +1,3 @@ -#! /usr/bin/env -S vala workbench.vala --pkg libadwaita-1 - private int results_count = 0; private Gtk.ListBox listbox; private Gtk.SearchEntry search_entry; diff --git a/src/Select Folder/main.vala b/src/Select Folder/main.vala index d996b0cf..9de9aae3 100644 --- a/src/Select Folder/main.vala +++ b/src/Select Folder/main.vala @@ -1,5 +1,3 @@ -#! /usr/bin/env -S vala workbench.vala --pkg libadwaita-1 - async void select_folder () { var dialog_for_folder = new Gtk.FileDialog (); try { diff --git a/src/Separator/Separator.vala b/src/Separator/Separator.vala index bd9fa9fa..ef384f7b 100644 --- a/src/Separator/Separator.vala +++ b/src/Separator/Separator.vala @@ -1,5 +1,3 @@ -#! /usr/bin/env -S vala workbench.vala --pkg gtk4 - public void main () { var picture_one = (Gtk.Picture) workbench.builder.get_object ("picture_one"); var picture_two = (Gtk.Picture) workbench.builder.get_object ("picture_two"); diff --git a/src/Session Monitor and Inhibit/main.vala b/src/Session Monitor and Inhibit/main.vala index bcb4af09..5a650c7c 100644 --- a/src/Session Monitor and Inhibit/main.vala +++ b/src/Session Monitor and Inhibit/main.vala @@ -1,4 +1,3 @@ -#! /usr/bin/env -S vala workbench.vala --pkg libadwaita-1 --pkg libportal-gtk4 private Xdp.Portal portal; private Gtk.Button button_start; private Gtk.Button button_stop; diff --git a/src/Snapshot/main.vala b/src/Snapshot/main.vala index 61efb299..11f47b92 100644 --- a/src/Snapshot/main.vala +++ b/src/Snapshot/main.vala @@ -1,5 +1,3 @@ -#! /usr/bin/env -S vala workbench.vala --pkg libadwaita-1 - private Chessboard chessboard; private Gtk.Box box; private Gtk.Label label; diff --git a/src/Source View/main.vala b/src/Source View/main.vala index 2621ca40..ca904744 100644 --- a/src/Source View/main.vala +++ b/src/Source View/main.vala @@ -1,5 +1,3 @@ -#! /usr/bin/env -S vala workbench.vala --pkg libadwaita-1 --pkg gtksourceview-5 - public void main () { /* * Strictly speaking we don't _have_ to do this here since WorkBench does this for us. diff --git a/src/Spell Checker/main.vala b/src/Spell Checker/main.vala index 23139b50..98eedf21 100644 --- a/src/Spell Checker/main.vala +++ b/src/Spell Checker/main.vala @@ -1,5 +1,3 @@ -#! /usr/bin/env -S vala workbench.vala --pkg libadwaita-1 --pkg gtksourceview-5 --pkg libspelling-1 - public void main () { GtkSource.init (); var buffer = (GtkSource.Buffer) workbench.builder.get_object ("buffer"); diff --git a/src/Spin Button/main.vala b/src/Spin Button/main.vala index 9ed95fc2..d53929a2 100644 --- a/src/Spin Button/main.vala +++ b/src/Spin Button/main.vala @@ -1,5 +1,3 @@ -#! /usr/bin/env -S vala workbench.vala --pkg libadwaita-1 - private Gtk.SpinButton hours; private Gtk.SpinButton minutes; diff --git a/src/Spinner/main.vala b/src/Spinner/main.vala index 18fd435b..9f5d1d7d 100644 --- a/src/Spinner/main.vala +++ b/src/Spinner/main.vala @@ -1,5 +1,3 @@ -#! /usr/bin/env -S vala workbench.vala --pkg gtk4 --pkg libadwaita-1 - public void main () { Gtk.init (); diff --git a/src/Stack/main.vala b/src/Stack/main.vala index 9dec9e97..2c9068d0 100644 --- a/src/Stack/main.vala +++ b/src/Stack/main.vala @@ -1,5 +1,3 @@ -#! /usr/bin/env -S vala workbench.vala --pkg gtk4 --pkg libadwaita-1 --pkg gio-2.0 - Gtk.Box root_box; Gtk.Stack stack; Adw.ComboRow navigation_row; diff --git a/src/Styling with CSS/main.vala b/src/Styling with CSS/main.vala index c90f8b23..dfa0afd9 100644 --- a/src/Styling with CSS/main.vala +++ b/src/Styling with CSS/main.vala @@ -1,5 +1,3 @@ -#! /usr/bin/env -S vala workbench.vala --pkg gtk4 - public void main () { var basic_label = (Gtk.Label) workbench.builder.get_object ("basic_label"); basic_label.add_css_class ("css_text"); diff --git a/src/Switch/main.vala b/src/Switch/main.vala index 4b8c2165..ed16b2d7 100644 --- a/src/Switch/main.vala +++ b/src/Switch/main.vala @@ -1,5 +1,3 @@ -#! /usr/bin/env -S vala workbench.vala --pkg gtk4 - public void main() { var switch_on = (Gtk.Switch) workbench.builder.get_object("switch_on"); var label_on = (Gtk.Label) workbench.builder.get_object("label_on"); diff --git a/src/Tab View/main.vala b/src/Tab View/main.vala index ba6c6ec5..c36958cc 100644 --- a/src/Tab View/main.vala +++ b/src/Tab View/main.vala @@ -1,5 +1,3 @@ -#! /usr/bin/env -S vala workbench.vala --pkg libadwaita-1 - private int tab_count = 1; private Adw.TabView tab_view; diff --git a/src/Text Colors/main.vala b/src/Text Colors/main.vala index 32ad8135..a33789e5 100644 --- a/src/Text Colors/main.vala +++ b/src/Text Colors/main.vala @@ -1,5 +1,3 @@ -#! /usr/bin/env -S vala workbench.vala --pkg libadwaita-1 - /* * Pango is a text layout library. It can e.g. be used for formatting text * https://valadoc.org/pango/Pango.html diff --git a/src/Text Fields/main.vala b/src/Text Fields/main.vala index 6d58ca13..e737c236 100644 --- a/src/Text Fields/main.vala +++ b/src/Text Fields/main.vala @@ -1,5 +1,3 @@ -#! /usr/bin/env -S vala workbench.vala --pkg gtk4 --pkg libadwaita-1 - private Gtk.Entry entry; private Gtk.Entry entry_placeholder; private Gtk.Entry entry_icon; diff --git a/src/Text View/main.vala b/src/Text View/main.vala index dd4729cf..913c8b6e 100644 --- a/src/Text View/main.vala +++ b/src/Text View/main.vala @@ -1,5 +1,3 @@ -#! /usr/bin/env -S vala workbench.vala --pkg gtk4 --pkg libadwaita-1 - void main () { var textview = (Gtk.TextView) workbench.builder.get_object ("textview"); var select = (Gtk.Button) workbench.builder.get_object ("select"); diff --git a/src/Toasts/main.vala b/src/Toasts/main.vala index c8141dc4..b25cd0c4 100644 --- a/src/Toasts/main.vala +++ b/src/Toasts/main.vala @@ -1,5 +1,3 @@ -#! /usr/bin/env -S vala workbench.vala --pkg gtk4 --pkg libadwaita-1 - public void main () { var overlay = workbench.builder.get_object ("overlay") as Adw.ToastOverlay; diff --git a/src/Toggle Button/main.vala b/src/Toggle Button/main.vala index d3835968..547f6b97 100644 --- a/src/Toggle Button/main.vala +++ b/src/Toggle Button/main.vala @@ -1,5 +1,3 @@ -#! /usr/bin/env -S vala workbench.vala --pkg libadwaita-1 - public void main () { string[] button_ids = { "button_no_look", "button_look", "button_camera", "button_flashlight", "button_console" }; diff --git a/src/Tooltip/main.vala b/src/Tooltip/main.vala index 5a229fc5..189d7270 100644 --- a/src/Tooltip/main.vala +++ b/src/Tooltip/main.vala @@ -1,5 +1,3 @@ -#! /usr/bin/env -S vala workbench.vala --pkg libadwaita-1 - public void main () { var button = (Gtk.Button) workbench.builder.get_object ("button"); diff --git a/src/Video/main.vala b/src/Video/main.vala index 9ab81eb5..276b3810 100644 --- a/src/Video/main.vala +++ b/src/Video/main.vala @@ -1,5 +1,3 @@ -#! /usr/bin/env -S vala workbench.vala --pkg libadwaita-1 - public void main () { var video = (Gtk.Video) workbench.builder.get_object ("video"); video.file = File.new_for_uri (workbench.resolve ("./workbench-video.mp4")); diff --git a/src/View Switcher/main.vala b/src/View Switcher/main.vala index d3a99a74..85514720 100644 --- a/src/View Switcher/main.vala +++ b/src/View Switcher/main.vala @@ -1,5 +1,3 @@ -#! /usr/bin/env -S vala workbench.vala --pkg gtk4 --pkg libadwaita-1 - public void main() { var notifications_page = workbench.builder.get_object("page3") as Adw.ViewStackPage; var notification_list = workbench.builder.get_object("notification_list") as Gtk.ListBox; diff --git a/src/Wallpaper/main.vala b/src/Wallpaper/main.vala index cd377492..d6fb9e82 100644 --- a/src/Wallpaper/main.vala +++ b/src/Wallpaper/main.vala @@ -1,5 +1,3 @@ -#! /usr/bin/env -S vala workbench.vala --pkg libadwaita-1 --pkg libportal-gtk4 - private Xdp.Portal portal; private Xdp.Parent parent; private string image_uri; diff --git a/src/Web View/main.vala b/src/Web View/main.vala index 33efb17e..b8955cbb 100644 --- a/src/Web View/main.vala +++ b/src/Web View/main.vala @@ -1,5 +1,3 @@ -#! /usr/bin/env -S vala workbench.vala --pkg gtk4 --pkg libadwaita-1 --pkg webkitgtk-6.0 - public void main () { var button_back = (Gtk.Button) workbench.builder.get_object ("button_back"); var button_forward = (Gtk.Button) workbench.builder.get_object ("button_forward"); diff --git a/src/WebSocket Client/main.vala b/src/WebSocket Client/main.vala index 69c1aa05..871a945b 100644 --- a/src/WebSocket Client/main.vala +++ b/src/WebSocket Client/main.vala @@ -1,5 +1,3 @@ -#! /usr/bin/env -S vala workbench.vala --pkg gtk4 --pkg libadwaita-1 --pkg libsoup-3.0 - private Gtk.Button button_connect; private Gtk.Button button_disconnect; private Gtk.Entry entry_url; diff --git a/src/Welcome/main.vala b/src/Welcome/main.vala index 8780de00..c0fb9789 100644 --- a/src/Welcome/main.vala +++ b/src/Welcome/main.vala @@ -1,5 +1,3 @@ -#! /usr/bin/env -S vala workbench.vala --pkg gtk4 --pkg libadwaita-1 - public void main () { var box = (Gtk.Box) workbench.builder.get_object ("subtitle");