KiCad PCB EDA Suite
Loading...
Searching...
No Matches
gtk/ui.cpp File Reference
#include <kiplatform/ui.h>
#include <wx/choice.h>
#include <wx/nonownedwnd.h>
#include <wx/settings.h>
#include <wx/window.h>
#include <wx/log.h>
#include <gtk/gtk.h>
#include <gdk/gdk.h>

Go to the source code of this file.

Functions

static void disable_area_apply_attributes_cb (GtkWidget *pItem, gpointer userdata)
 The following two functions are based on the "hack" contained in the attached patch at https://gitlab.gnome.org/GNOME/gtk/-/issues/1910 which is supposed to speed up creation of GTK choice boxes.
 

Variables

const wxString traceWayland = wxS( "KICAD_WAYLAND" )
 

Function Documentation

◆ disable_area_apply_attributes_cb()

static void disable_area_apply_attributes_cb ( GtkWidget *  pItem,
gpointer  userdata 
)
static

The following two functions are based on the "hack" contained in the attached patch at https://gitlab.gnome.org/GNOME/gtk/-/issues/1910 which is supposed to speed up creation of GTK choice boxes.

The basic idea is to disable some of the event handlers on the menus for the choice box to prevent them from running, which will speed up the creation of the choice box and its popup menu.

Definition at line 123 of file gtk/ui.cpp.

Referenced by KIPLATFORM::UI::LargeChoiceBoxHack().

Variable Documentation

◆ traceWayland

const wxString traceWayland = wxS( "KICAD_WAYLAND" )

Definition at line 45 of file gtk/ui.cpp.

Referenced by KIPLATFORM::UI::WarpPointer().