Skip to content

Commit

Permalink
feat(linux): add GTK prelude import for Linux platform support
Browse files Browse the repository at this point in the history
Included the `gtk::prelude::*` import conditionally for Linux
platforms to ensure compatibility with GTK-based UI components.
This change enhances the cross-platform functionality of the
application by properly handling Linux-specific dependencies.
  • Loading branch information
s00d committed Feb 27, 2025
1 parent 3241cae commit 90c8d44
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions examples/windows-common-controls-v6/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
// SPDX-License-Identifier: MIT

#![allow(unused)]
#[cfg(target_os = "linux")]
use gtk::prelude::*;
use muda::{
accelerator::{Accelerator, Code, Modifiers},
dpi::{PhysicalPosition, Position},
Expand All @@ -13,10 +15,6 @@ use muda::{
use tao::platform::macos::WindowExtMacOS;
#[cfg(target_os = "windows")]
use tao::platform::windows::{EventLoopBuilderExtWindows, WindowExtWindows};
#[cfg(target_os = "linux")]
use {
gtk::prelude::*,
};
use tao::{
event::{ElementState, Event, MouseButton, WindowEvent},
event_loop::{ControlFlow, EventLoopBuilder},
Expand Down

0 comments on commit 90c8d44

Please sign in to comment.