Comments (6)
Done!
from gtk4-rs.
Can you describe what exactly you were compiling and how? gtk4 = { git = "https://github.com/gtk-rs/gtk4-rs.git" }
would be correct for a crate outside this repository.
from gtk4-rs.
this is the main.rs
file:
//! # Basic Sample
//!
//! This sample demonstrates how to create a toplevel `window`, set its title, size and
//! position, how to add a `button` to this `window` and how to connect signals with
//! actions.
use gtk4::prelude::*;
use std::env::args;
fn build_ui(application: >k4::Application) {
let window = gtk4::ApplicationWindow::new(application);
window.set_title(Some("First GTK Program"));
window.set_default_size(350, 70);
let button = gtk4::Button::with_label("Click me!");
window.set_child(Some(&button));
window.show();
}
fn main() {
let application =
gtk4::Application::new(Some("com.github.gtk-rs.examples.basic"), Default::default())
.expect("Initialization failed...");
application.connect_activate(|app| {
build_ui(app);
});
application.run(&args().collect::<Vec<_>>());
}
and this is the Cargo.toml
file:
[package]
name = "basictest"
version = "0.1.0"
authors = ["jp"]
edition = "2018"
[dependencies]
gtk4 = { git = "https://github.com/gtk-rs/gtk4.git" }
just did the normal cargo new basictest and executed cargo run in the new directory.
from gtk4-rs.
Yes that looks correct but you should better use https://github.com/gtk-rs/gtk4-rs.git
instead of https://github.com/gtk-rs/gtk4.git
. You're currently using the old repository.
What exactly is the problem though?
from gtk4-rs.
Yes that looks correct but you should better use
https://github.com/gtk-rs/gtk4-rs.git
instead ofhttps://github.com/gtk-rs/gtk4.git
. You're currently using the old repository.
We should archive all the old gtk4 repositories as they are just very confusing and are not useful any more.
cc @GuillaumeGomez
from gtk4-rs.
Thank you !
from gtk4-rs.
Related Issues (20)
- [HELP]
- Invalid property: GtkApplicationWindow.window-position HOT 1
- glium_gl_area: Doesn't work with GTK 4.14
- [HELP] High memory HOT 1
- Chapter 9 missing derived_properties and subclassing
- Fuzzy font on Windows HOT 1
- gtk::DragIcon::for_drag returns Widget, not DragIcon HOT 5
- glib::Regex forced main thread to panic at the end of while loop HOT 1
- custom_orientable example emits critical warning when run
- No method named `dispose_template` found for reference `&custom_buildable::imp::CustomBuildable` in the current scope HOT 3
- The target object of type SqueezerBin has no writable property called 'keep-aspect-ratio' HOT 8
- Is it possible to improve compile times? HOT 1
- Compiler error when using `enum` subclasses of Object as properties HOT 1
- CSS opacity not respected for window HOT 1
- Accessing GtkWidget class methods HOT 1
- Support for dark mode HOT 1
- Book: Issue with glib::spawn_future_local in gtk-rs Chapter 6 HOT 5
- [BOOK] Chapter 15 should have adwaita-icon-theme included in macOS install command HOT 1
- Should connect_unrealize and connect_destroy be FnOnce() rather than Fn()? HOT 1
- Segfault if trying to use certain builders before GTK is initialized
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gtk4-rs.