Skip to content

rust: Enable GNOME 46#910

Merged
sonnyp merged 5 commits intomainfrom
maintenance-pre-46-rust
Mar 20, 2024
Merged

rust: Enable GNOME 46#910
sonnyp merged 5 commits intomainfrom
maintenance-pre-46-rust

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 force-pushed the maintenance-pre-46-rust branch from 9d0bf13 to 1fb563d Compare March 17, 2024 12:59
@sonnyp sonnyp force-pushed the maintenance-pre-46-rust branch from 1fb563d to 11a7dbd Compare March 17, 2024 12:59
@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 requested a review from Hofer-Julian as a code owner March 20, 2024 13:10
@sonnyp sonnyp merged commit 984cc2c into main Mar 20, 2024
@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.

2 participants