Merge branch 'windows-fixes' into 'master'
Fix some Windows items See merge request GNOME/clutter!16
This commit is contained in:
commit
2779b9324d
|
@ -3795,8 +3795,8 @@ _clutter_stage_schedule_update (ClutterStage *stage)
|
|||
if (stage_window == NULL)
|
||||
return;
|
||||
|
||||
return _clutter_stage_window_schedule_update (stage_window,
|
||||
stage->priv->sync_delay);
|
||||
_clutter_stage_window_schedule_update (stage_window,
|
||||
stage->priv->sync_delay);
|
||||
}
|
||||
|
||||
/* Returns the earliest time the stage is ready to update */
|
||||
|
|
|
@ -365,6 +365,12 @@ if enabled_backends.contains('mir')
|
|||
'#define CLUTTER_INPUT_MIR "mir"',
|
||||
]
|
||||
endif
|
||||
if enabled_backends.contains('win32')
|
||||
clutter_config += [
|
||||
'#define CLUTTER_WINDOWING_WIN32 "win32"',
|
||||
'#define CLUTTER_INPUT_WIN32 "win32"',
|
||||
]
|
||||
endif
|
||||
clutter_config += '#define CLUTTER_INPUT_NULL "null"'
|
||||
|
||||
clutter_config_h = configuration_data()
|
||||
|
|
|
@ -493,7 +493,7 @@ clutter_win32_handle_event (const MSG *msg)
|
|||
break;
|
||||
|
||||
case WM_MBUTTONDBLCLK:
|
||||
make_button_event (msg, stage, CLUTER_BUTTON_MIDDLE, 2, FALSE, core_pointer);
|
||||
make_button_event (msg, stage, CLUTTER_BUTTON_MIDDLE , 2, FALSE, core_pointer);
|
||||
break;
|
||||
|
||||
case WM_RBUTTONDBLCLK:
|
||||
|
|
|
@ -32,10 +32,17 @@ if enable_pixbuf_tests
|
|||
]
|
||||
endif
|
||||
|
||||
examples_cargs = []
|
||||
|
||||
if cc.get_argument_syntax() == 'msvc'
|
||||
examples_cargs += '-D_USE_MATH_DEFINES'
|
||||
endif
|
||||
|
||||
foreach e: examples
|
||||
executable(
|
||||
e,
|
||||
e + '.c',
|
||||
dependencies: examples_deps,
|
||||
c_args: examples_cargs,
|
||||
)
|
||||
endforeach
|
||||
|
|
|
@ -28,7 +28,13 @@ clutter_libversion = '@0@.@1@.@2@'.format(clutter_so_age, clutter_binary_age, cl
|
|||
cc = meson.get_compiler('c')
|
||||
config_h = configuration_data()
|
||||
|
||||
add_project_arguments([ '-D_GNU_SOURCE', '-DHAVE_CONFIG_H' ], language: 'c')
|
||||
add_project_arguments(['-DHAVE_CONFIG_H' ], language: 'c')
|
||||
|
||||
if cc.get_id() == 'msvc'
|
||||
add_project_arguments([ '-FImsvc_recommended_pragmas.h' ], language: 'c')
|
||||
else
|
||||
add_project_arguments([ '-D_GNU_SOURCE' ], language: 'c')
|
||||
endif
|
||||
|
||||
# Paths
|
||||
clutter_prefix = get_option('prefix')
|
||||
|
|
|
@ -6,11 +6,14 @@ test_cflags = [
|
|||
test_env = [
|
||||
'G_ENABLE_DIAGNOSTIC=0',
|
||||
'CLUTTER_ENABLE_DIAGNOSTIC=0',
|
||||
'CLUTTER_BACKEND=x11',
|
||||
'G_TEST_SRCDIR=@0@'.format(meson.current_source_dir()),
|
||||
'G_TEST_BUILDDIR=@0@'.format(meson.current_build_dir()),
|
||||
]
|
||||
|
||||
if enabled_backends.contains('x11')
|
||||
test_env += 'CLUTTER_BACKEND=x11'
|
||||
endif
|
||||
|
||||
actor_tests = [
|
||||
'actor-anchors',
|
||||
'actor-destroy',
|
||||
|
|
Loading…
Reference in New Issue