Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
alexkdeveloper committed Jun 8, 2022
1 parent 6d989d4 commit 75bc1c6
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 7 deletions.
7 changes: 7 additions & 0 deletions data/com.github.alexkdeveloper.recorder.appdata.xml.in
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,13 @@
</categories>
<content_rating type="oars-1.1"/>
<releases>
<release version="1.0.3" date="2022-06-08">
<description>
<ul>
<li>Libadwaita is included in the application</li>
</ul>
</description>
</release>
<release version="1.0.2" date="2022-06-05">
<description>
<ul>
Expand Down
Binary file modified data/screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ vala_args = ['--target-glib=2.50', meson.source_root() + '/vapi/config.vapi']
dependencies = [
dependency ('gio-2.0'),
dependency ('gtk4'),
dependency ('libadwaita-1'),
dependency ('gstreamer-1.0'),
dependency('libpulse'),
dependency('libpulse-mainloop-glib')
Expand Down
2 changes: 1 addition & 1 deletion src/Application.vala
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@


namespace Recorder {
public class Application : Gtk.Application {
public class Application : Adw.Application {
public MainWindow app_window;

public Application() {
Expand Down
13 changes: 7 additions & 6 deletions src/MainWindow.vala
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ using Gst;

namespace Recorder {

public class MainWindow : Gtk.ApplicationWindow {
public class MainWindow : Adw.ApplicationWindow {

private Stack stack;
private Box vbox_list_page;
Expand All @@ -28,7 +28,7 @@ private string directory_path;
private string item;
Gst.Bus player_bus;

public MainWindow(Gtk.Application application) {
public MainWindow(Adw.Application application) {
GLib.Object(application: application,
title: "Recorder",
resizable: true,
Expand All @@ -42,9 +42,6 @@ Gst.Bus player_bus;
}

construct {
HeaderBar headerbar = new HeaderBar();
headerbar.get_style_context().add_class("flat");
set_titlebar(headerbar);
back_button = new Button ();
back_button.set_icon_name ("go-previous-symbolic");
back_button.vexpand = false;
Expand Down Expand Up @@ -85,6 +82,7 @@ Gst.Bus player_bus;
open_directory_button.clicked.connect(on_open_directory_clicked);
play_button.clicked.connect(on_play_clicked);
stop_button.clicked.connect(on_stop_clicked);
var headerbar = new Adw.HeaderBar();
headerbar.pack_start(back_button);
headerbar.pack_start(delete_button);
headerbar.pack_start(edit_button);
Expand All @@ -103,7 +101,10 @@ Gst.Bus player_bus;
stack.set_margin_top(10);
stack.set_margin_start(10);
stack.set_margin_bottom(10);
set_child(stack);
var main_box = new Box(Orientation.VERTICAL, 0);
main_box.append(headerbar);
main_box.append(stack);
set_content(main_box);
list_store = new Gtk.ListStore(Columns.N_COLUMNS, typeof(string));
tree_view = new TreeView.with_model(list_store);
var text = new CellRendererText ();
Expand Down

0 comments on commit 75bc1c6

Please sign in to comment.