No Rust autocomplete in Visual Studio Code for external crates such as 'gtk-rs'

Maybe this question has been done before but I can not find anything. I would like to know what steps to follow so that Visual Studio Code can show the autocomplete window that shows Rust methods...

Gtk::SpinButton get_value_as_int gives step_increment as result

I'm struggling with a SpinButton in Rust using Relm. (Disclaimer, I'm a noob with Rust and GTK) #![feature(proc_macro)] extern crate gtk; use chrono::{NaiveTime, Duration}; use...

How do I add action buttons to a FileChooserDialog?

When I try to show a file chooser dialog, it is missing the action buttons: let dialog = FileChooserDialog::new(Some("Open File"), Some(&window), FileChooserAction::Open); dialog.run(); I found...

How to install WebkitGTK in MacOS?

brew install webkitgtk Not finding package, when installing from macports it doesn't finding by gtk-rs when compiling my project on rust with gtk-rs and webkit2gtk-rs

Bokeh Components function, embed through an API

Is it possible to build an API which can call bokeh's 'components' function to serve the and <div> tags to be served at the front end ?</p> <p>For ex the following code is <script> output of the...

How to move data into multiple Rust closures?

I have a two widgets in a simple GTK app: extern crate gdk; extern crate gtk; use super::desktop_entry::DesktopEntry; use gdk::enums::key; use gtk::prelude::*; pub fn...

How to connect Buttons to Actions in custom SimpleActionGroups in gtk-rs?

I'd like to use a SimpleActionGroup registered to a Widget that handles SimpleActions. But anyhow every Button that targets to Actions with my custom prefix are grayed out and can't be clicked....

How to send key-press events to an inactive Entry with GTK

I have a GTK window with two elements, an Entry that functions as a search input and a ListBox that displays search results. When the ListBox has focus (e.g. the user is navigating it with arrow...

I am getting an error while using the buildozer

I am trying to build an apk android with buildozer and I came across an error. I've followed the instructions in the Kivy documentation page but still getting this error. Any advice is must...

How to listen for the clipboard "owner-change" event in gtk-rs?

I am writing a application based on gtk::Clipboard in using the gtk-rs crate. I have already initialized a Clipboard like this: let clipboard = gtk::Clipboard::get(&gdk::SELECTION_PRIMARY); It is...

canvas for pixel drawing in GTK3 (gtk-rs)

I just started to use gtk3, and I overwhelmed. I want to draw a pixel rendering (a function graph, drawn in realtime) in a window. I was able to create a window, following some examples, but I...

Why does cloning data inside a closure not prevent the error "closure may outlive the current function"?

I built a GTK application with gtk-rs. When I build the main window, I want to use some dynamic parameters such as window height. I created a struct which contains all such settings and want to...

How to right justify numeric data in list store / tree view using gtk-rs

I have been recently learning making simple GUIs with gtk-rs but have run into an issue where numeric data is left justified in the list store / tree view and I want to have it right...

Display multiple overlaying widgets

I'm trying to display multiple cairo drawings overlapping each other: extern crate cairo; extern crate gio; extern crate gtk; use std::f64::consts::PI; use gio::prelude::*; use...

Gtk-rs application crashes at window.show_all() function

My Gtk-rs application crashes whenever I try calling the show_all() function. In a simple application window, I have added a headerbar and a label. If I compile without adding the headerbar, the...

Update drawing function of a DrawingArea

I want to update a cairo drawing inside a DrawingArea. I tried to achieve this by calling DrawingArea::connect_draw(...) with a new function as the parameter. My issue is that it does not replace...

How do I get information from an entry on button click?

I want to get an input from an entry on a button click and display that information when another button is clicked. This gives me an error because the closure takes ownership of my firstname...

gtk/cairo: Only show custom shaped drawing

I want to only display a cairo drawing inside a drawingArea, but for some reason there is always a colored rectangle shaped background around the drawing. How can I get rid of this? I especially...

Connect to custom GTK signals defined in Glade file

I want to connect a handler to a custom signal. In my glade file I have a window with some buttons. The window is loaded like this in Rust: let glade_src = include_str!("views/window.glade"); let...

Failed to read or create install properties file.ndroid Emulator sdk-pa

I am using buildozer to make Android-App from python-kivy file. After running the code: buildozer android debug deploy run I got the error: Warning: Failed to read or create install properties...

Error to generate apk through buildozer android debugger in terminal

I am stuck on this issue it takes a long time, I am following a tutorial video explaining how to install Kivy, Buildozer and compile apk file. Until now, I have installed the supposed...

Rust Gtk set GtkImage from pixbuf using glade file

I'm trying to load an image from a scaled pixbuf to an existing GtkImage widget from Glade with Rust. I've read all the Gtk-rs documentations regarding this topic, and it should work based on...

Seemingly nothing happens when attempting to add to a `gtk::ListBox` from within an event handler in GTK-RS application

I'm attempting to to add to a gtk::ListBox container from within the event handling closure of an unrelated widget. The list box in question is fetched via a gtk::Builder like so: let notes_list:...

Ret2LibC: system() argument "/bin/sh" throws error

I'm trying to perform a Ret2LibC attack. My buffer to return address offset is 24 bytes. Therefore the first 24 bytes of my "bad file" are AA, and I overwrite the return address in th next 4 bytes...

fatal error LNK1181: cannot open input file 'gtk-3.lib'

So I set up GTK-rs for rust and I must have done something wrong because when I try to run my code it returns this error and I have no idea how to fix it: fatal error LNK1181: cannot open input...

GtkFlowBox do NOT align in columns using horizontal orientation

In GTK I am trying to align widgets of different widths in a box such that they are next to each other in a line and flow into the next line if no more space is left. Basically I am trying to get...

gtk-rs: how to update view from another thread

I am creating a UI application with gtk-rs. In that application, I have to spawn a thread to continuously communicate with another process. Sometimes, I have to update the UI based on what happens...

How do we build GUI with glade, gtk-rs in rust?

I created a simple GUI with a window,entry box ,label and a button using glade and saved as example.glade in my src directory of my rust project. <?xml version="1.0" encoding="UTF-8"?> <!--...

Rust compilation error " failed to run custom build command for `freetype-sys v0.13.1' " win 10

I am trying to build a Rust program on Windows 10 having a GUI. When trying to compile a Rust file with gtk dependency on Windows 10 I keep getting the following error messages. warning: unused...

Rust GTK Hello World Example

I'm trying to follow along with this hello world application with gtk and Rust use gtk::prelude::*; use gtk::{Application, ApplicationWindow}; fn main() { let app = Application::builder() ...

Relevant tags