Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rust: Enable GNOME 46 #910

Merged
merged 5 commits into from
Mar 20, 2024
Merged

rust: Enable GNOME 46 #910

merged 5 commits into from
Mar 20, 2024

Conversation

sonnyp
Copy link
Contributor

@sonnyp sonnyp commented Mar 17, 2024

Unfortunately running a Rust project fails with

   Compiling gtk4 v0.8.1
error[E0425]: cannot find function `gtk_popover_menu_new_from_model_full` in crate `ffi`
     --> /home/sonny/.cargo/registry/src/index.crates.io-6f17d22bba15001f/gtk4-0.8.1/src/auto/popover_menu.rs:46:41
      |
46    |             Widget::from_glib_none(ffi::gtk_popover_menu_new_from_model_full(
      |                                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: a function with a similar name exists: `gtk_popover_menu_new_from_model`
      |
     ::: /home/sonny/.cargo/registry/src/index.crates.io-6f17d22bba15001f/gtk4-sys-0.8.0/src/lib.rs:16066:5
      |
16066 |     pub fn gtk_popover_menu_new_from_model(model: *mut gio::GMenuModel) -> *mut GtkWidget;
      |     ------------------------------------------------------------------------------------- similarly named function `gtk_popover_menu_new_from_model` defined here

error[E0425]: cannot find function `gtk_popover_menu_flags_get_type` in crate `ffi`
     --> /home/sonny/.cargo/registry/src/index.crates.io-6f17d22bba15001f/gtk4-0.8.1/src/auto/flags.rs:1101:33
      |
1101  |         unsafe { from_glib(ffi::gtk_popover_menu_flags_get_type()) }
      |                                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: a function with a similar name exists: `gtk_popover_menu_bar_get_type`
      |
     ::: /home/sonny/.cargo/registry/src/index.crates.io-6f17d22bba15001f/gtk4-sys-0.8.0/src/lib.rs:16097:5
      |
16097 |     pub fn gtk_popover_menu_bar_get_type() -> GType;
      |     ----------------------------------------------- similarly named function `gtk_popover_menu_bar_get_type` defined here

    Building [=======================> ] 227/233: gtk4                                                                                                                                                                                                                   

@sonnyp sonnyp changed the title Pre 46 maintenance Enable GNOME 46 for Rust Mar 17, 2024
@sonnyp sonnyp changed the title Enable GNOME 46 for Rust rust: Enable GNOME 46 Mar 17, 2024
@sonnyp sonnyp added this to the 46 milestone Mar 20, 2024
@sonnyp sonnyp marked this pull request as ready for review March 20, 2024 13:10
@sonnyp sonnyp merged commit 984cc2c into main Mar 20, 2024
1 check passed
@sonnyp sonnyp deleted the maintenance-pre-46-rust branch March 20, 2024 13:11
Hofer-Julian pushed a commit that referenced this pull request Mar 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants