-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
844 additions
and
39 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
mod preferences_window; | ||
use glib::subclass::prelude::*; | ||
use preferences_window as imp; | ||
|
||
glib::wrapper! { | ||
pub struct PreferencesWindow(ObjectSubclass<imp::PreferencesWindow>) | ||
@extends gtk::Widget, gtk::Window, adw::PreferencesWindow, | ||
@implements gio::ActionGroup, gio::ActionMap; //, gtk::Accessible, gtk::Buildable, gtk::ConstraintTarget, gtk::Native, gtk::Root, gtk::ShortcutManager; | ||
} | ||
|
||
impl PreferencesWindow {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
use adw::ffi::AdwPreferencesWindow; | ||
use adw::subclass::prelude::*; | ||
use glib::{clone, closure_local, RustClosure}; | ||
use gtk::prelude::*; | ||
use gtk::{gio, glib}; | ||
use panel::subclass::prelude::*; | ||
use std::cell::RefCell; | ||
|
||
use super::*; | ||
|
||
// var builder = new Gtk.Builder.from_resource ("/com/raggesilver/BlackBox/gtk/tab-menu.ui"); | ||
// this.tab_view.menu_model = builder.get_object ("tab-menu") as GLib.Menu; | ||
|
||
// this.layout_box.append (this.header_bar_revealer); | ||
// this.layout_box.append (this.tab_view); | ||
|
||
// this.overlay = new Gtk.Overlay (); | ||
// this.overlay.child = this.layout_box; | ||
|
||
// this.content = this.overlay; | ||
|
||
// this.set_name ("blackbox-main-window"); | ||
|
||
#[derive(Debug, Default, gtk::CompositeTemplate)] | ||
#[template(resource = "/io/github/vhdirk/Terms/gtk/preferences_window.ui")] | ||
pub struct PreferencesWindow {} | ||
|
||
#[glib::object_subclass] | ||
impl ObjectSubclass for PreferencesWindow { | ||
const NAME: &'static str = "TermsPreferencesWindow"; | ||
type Type = super::PreferencesWindow; | ||
type ParentType = adw::PreferencesWindow; | ||
|
||
fn class_init(klass: &mut Self::Class) { | ||
klass.bind_template(); | ||
} | ||
|
||
fn instance_init(obj: &glib::subclass::InitializingObject<Self>) { | ||
obj.init_template(); | ||
} | ||
} | ||
|
||
impl ObjectImpl for PreferencesWindow { | ||
fn constructed(&self) { | ||
self.parent_constructed(); | ||
|
||
self.setup_widgets(); | ||
} | ||
} | ||
|
||
impl WidgetImpl for PreferencesWindow {} | ||
impl WindowImpl for PreferencesWindow {} | ||
impl AdwWindowImpl for PreferencesWindow {} | ||
impl PreferencesWindowImpl for PreferencesWindow {} | ||
// impl WorkspaceImpl for PreferencesWindow {} | ||
|
||
impl PreferencesWindow { | ||
fn setup_widgets(&self) { | ||
self.connect_signals(); | ||
} | ||
|
||
fn connect_signals(&self) {} | ||
} |
Oops, something went wrong.