Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
gtk
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1,152
Issues
1,152
List
Boards
Labels
Service Desk
Milestones
Merge Requests
144
Merge Requests
144
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
GNOME
gtk
Commits
86b43475
Commit
86b43475
authored
Sep 25, 2003
by
cinamod
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
set delay on popdown menus
parent
944d730d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
11 deletions
+17
-11
modules/engines/ms-windows/wimp_style.c
modules/engines/ms-windows/wimp_style.c
+17
-11
No files found.
modules/engines/ms-windows/wimp_style.c
View file @
86b43475
...
...
@@ -205,6 +205,11 @@ sys_font_to_pango_font (SystemFontType type, char * buf)
return
NULL
;
}
/* missing from ms's header files */
#ifndef SPI_GETMENUSHOWDELAY
#define SPI_GETMENUSHOWDELAY 106
#endif
static
void
setup_system_settings
(
GtkStyle
*
style
)
{
...
...
@@ -231,14 +236,6 @@ setup_system_settings (GtkStyle * style)
g_object_set
(
G_OBJECT
(
settings
),
"gtk-dnd-drag-threshold"
,
GetSystemMetrics
(
SM_CXDRAG
),
NULL
);
#if 0
/* TODO: there's an ICONMETRICS struct that we should probably use instead */
g_object_set (G_OBJECT (settings), "gtk-toolbar-icon-size",
GTK_ICON_SIZE_SMALL_TOOLBAR, NULL);
g_object_set (G_OBJECT (settings), "gtk-icon-sizes",
"gtk-menu=10,10", NULL);
{
OSVERSIONINFOEX
osvi
;
...
...
@@ -250,21 +247,30 @@ setup_system_settings (GtkStyle * style)
if
(
osvi
.
dwPlatformId
==
VER_PLATFORM_WIN32_WINDOWS
)
if
(
osvi
.
dwMajorVersion
==
4
&&
osvi
.
dwMinorVersion
==
0
)
win95 = TRUE;
win95
=
TRUE
;
}
if
(
!
win95
)
{
if
(
SystemParametersInfo
(
SPI_GETMENUSHOWDELAY
,
0
,
&
menu_delay
,
0
))
{
g_object_set
(
G_OBJECT
(
settings
),
"gtk-menu-bar-popup-delay"
,
menu_delay
, NULL);
0
,
NULL
);
g_object_set
(
G_OBJECT
(
settings
),
"gtk-menu-popdown-delay"
,
menu_delay
,
NULL
);
g_object_set
(
G_OBJECT
(
settings
),
"gtk-menu-popup-delay"
,
menu_delay
,
NULL
);
}
}
#if 0
/* TODO: there's an ICONMETRICS struct that we should probably use instead */
g_object_set (G_OBJECT (settings), "gtk-toolbar-icon-size",
GTK_ICON_SIZE_SMALL_TOOLBAR, NULL);
#endif
g_object_set
(
G_OBJECT
(
settings
),
"gtk-icon-sizes"
,
"gtk-menu=10,10 : gtk-button=16,16 : gtk-small-toolbar=16,16 : gtk-large-toolbar=16,16 : gtk-dialog=32,32 : gtk-dnd=32,32"
,
NULL
);
/*
http://developer.gnome.org/doc/API/2.0/gtk/GtkSettings.html
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/sysinfo/base/systemparametersinfo.asp
...
...
@@ -649,7 +655,7 @@ draw_expander(GtkStyle *style,
if
(
expander_size
>
2
)
expander_size
-=
2
;
if
(
area
)
gdk_gc_set_clip_rectangle
(
style
->
fg_gc
[
state
],
area
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment